Hi, i have a .s19 file that is possible load on a 9S12XDT512 using Prog12Z and Pemicro Multilink, but the same .s19 file if i try upload it with USBDM, i get error " program data not within target flash memory".
It seems, that there may be problem with address format.
I suppose that you try to load code through CodeWarrior IDE and USBDM interface. Correct?
The CW accepts only addresses in 64kB memory map (16bit) and banked (logical) format (24bit, PPAGE + address in 0x8000~0xBFFF memory window).
The PEmicro tools typically accept only addresses in 64kB memory map (16bit) and linear (global) format (24bit).
See attached memory map in Excel file for your reference.
The .s19 files may be simply converted.
The NXP offers SRecCvt tool:
The PEmicro offers Log2Phy tool. However, this tool convert .s19 files only from banked to the linear address format.
I hope it helps you.
If i read the xdt512 with memory dump, and after i try program the same file, i receive the same error.¿?
I am not 100% sure but of this explanation
In a developement of a program in GCC GNU for 9s12xep100. I yet use it with PPAGE on IFLASH and it works ok. (Adresses of memory.x on GCC 70_0000 to 7F_FFFF). But now i want use EPAGE on DFLASH.(Adresses of memory.x on GCC 10_0000 to 10_FFFF), but Noice12 debugger can´t program in this range.
What happened? How can i do to program DFLASH with Noice12???
It occurs the same https://community.nxp.com/message/973723?commentID=973723#comment-973723
It is independent of the programmer which uses!!!!! the same error with USBDM AND PEMICRO
Are you really sure that you use S12XDT512 MCU?
Range 70_0000 to 7F_FFFF refers to 1MB Flash and range 10_0000 to 10_FFFF has 64kB.
The S12XDT512 have only 512kB P-Flash and 4KB EEPROM at address 0x13F000 instead of D-Flash.
If you use S12XEP100 device, the P-Flash range is OK(70_0000 to 7F_FFFF), however size of D-Flash is still incorrect (only 32kB). It should be 10_0000 to 10_7FFF instead of 10_0000 to 10_FFFF.
Address ranges 70_0000 to 7F_FFFF and 10_0000 to 10_FFFF are in global(linear) address format.
Did you try converting your *.s19 file into banked address format by the SRecCvt tool?
In your initial post, you reported an issue with USBDM. Now, the USBDM and PEmicro tools works, but Noice12 not. Could you please clarify your MCU device, memory ranges from linker file and used environment?
Unfortunately, I don’t have any experience with the Noice12 tool. Please, contact also Noice12 technical support for more details…
Yes, i am sure, i test it on XDT512 and XEP100.
Using PROG12Z with pemicro&multilink you have to select one algorithm.
For xdt512 it had two algorithms:
in xep100 it have three algorithms:
In summary, if you have a .s19 or .elf or .abs file with linear addresses, you must be select the appropriate algorithm to program the flash.
For example, is you srecord file have data on EEPROM and IFLASH, you must be select first the eeprom algorithm, program the device, and then select the other algorithm and program the flash.
With USBDM you only can program the IFLASH.
With NoICE12 you have the same problem, independently, if you use pemicro multilink or USBDM.
Retrieving data ...