XDP512 issues

Started by bitjockey1 August 10, 2007
Hello,
I have another question on XDP512 programming if anyone has
any ideas. On the hardware I am using I am trying to program a flat
memory model, ie $4000-$FFFF, I have a bootloader & vectors @$F000-
$FFFF. I copy the bootloader into ram to program. I have the PPage
register left at its' default page ($FE). The *.s19 I am sending is
using 16 bit addresses. I can write in the $4000-$7FFF block, I can
also write in the paged area $8000-$BFFF. I can also write in $C000-
$F000 (b4 bootloader)except for areas above $EC00. I have set the
IVBR register to put the interrupt vectors @$EE00. I have a 32 bit
checksum of the code located @$EFFC-$EFFF. I am using P&E multilink
with the CW debugger. When I run the bootloader and my application
code programs, I stop the debugger to check to see if all areas
programmed. If I look @$EFFC in the memory window it is not
programmed ($FFs). If I switch the ppage register so that the last
page $C000-$FFFF is in the page window ($8000-$BFFF) I can see the
data programmed. If I set the memory window to look at global
addresses and I look @$7F_EFFC I see the data programmed?!?!?!?!?!?
What is going on????? I have the FPROT register set to $FF to disable
flash protection, so I don't really understand why it is doing this.

If anyone could pleeeeeease! help I would appreciate it....
Thanks,
"bitjockey1" wrote:

>
> Hello,
> I have another question on XDP512 programming if anyone has
> any ideas. On the hardware I am using I am trying to program a flat
> memory model, ie $4000-$FFFF, I have a bootloader & vectors @$F000-
> $FFFF. I copy the bootloader into ram to program. I have the PPage
> register left at its' default page ($FE). The *.s19 I am sending is
> using 16 bit addresses. I can write in the $4000-$7FFF block, I can
> also write in the paged area $8000-$BFFF. I can also write in $C000-
> $F000 (b4 bootloader)except for areas above $EC00. I have set the
> IVBR register to put the interrupt vectors @$EE00. I have a 32 bit

You copied bootloader to the RAM but left vectors not in RAM? Are you
disabling interrupts for program/erase time?

> checksum of the code located @$EFFC-$EFFF. I am using P&E multilink
> with the CW debugger. When I run the bootloader and my application
> code programs, I stop the debugger to check to see if all areas
> programmed. If I look @$EFFC in the memory window it is not
> programmed ($FFs). If I switch the ppage register so that the last
> page $C000-$FFFF is in the page window ($8000-$BFFF) I can see the
> data programmed. If I set the memory window to look at global
> addresses and I look @$7F_EFFC I see the data programmed?!?!?!?!?!?
> What is going on????? I have the FPROT register set to $FF to disable
> flash protection, so I don't really understand why it is doing this.

It could be just CW debugger caching program memory for faster response. If
you see c000-ffff in page window or global memory programmed then it must be
programmed. Debugger is fooling you.

Edward

>
> If anyone could pleeeeeease! help I would appreciate it....
> Thanks,
> Yahoo! Groups Links