Dear Mark,
According to the P128 data sheet the chip has unpaged Dflash from 0x400 to 0x13FF.
The stationary provided with Codewarrior 'thinks' the chip has paged DFlash from 0x010400 to 0x113FF. I believe this is incorrect.
To test this I created a C program using codewarrior that used the Dflash segment as supplied. It failed to program the DFlash when using the debugger.
I then changed the segment description in the .prm file to what I believe is the correct range. The debugger then correctly programmed the DFlash. Checking the memory description in the debugger also confirms the above expectations about where the DFlash is.
Note that the debugger accesses USBDM directly so my having different memory maps in my software has no bearing on the above.
I haven't used absolute assembly with paging with these chips so I'm unclear what is the equivalent way of informing the software where the DFlash is apart from using ORG statement. The following correctly placed some numbers in the DFlash when using the debugger. The resulting S19 file could also be programmed with the USBDM HCS12 programmer.
ORG $0400 dc.b 1,2,3,4,5,6
If you are doing a relocatable assembly project or a C project I suggest modifying the .prm file so that the DFlash is located at the correct location.
If the above isn't helpful or clear could you describe what kind of project you are using in Codewarrior and what options are used to create the project.
bye