I managed to get USBDM to communicate with MC9S12DP512. now I need to understand which areas I need to insert to read all of flash. I looked at the whole forum but I didn't understand much. in the memory dump I only have 20 lines but the page blocks are 24 in total who helps me?
已解决! 转到解答。
Please reply by clicking on the button below the posting you are replying to. This discussion is becoming hard to follow.
The only reason I can think for you to be getting multiple pages containing the same data is if the PPAGE register address is not set correctly on the memory dump program.
According to the data for the mc9s12dp512 the PPAGE address is 30.
I no longer have a mc9s12dp512 for testing but trying with a smaller MC9S12DG128, which has similar paging, it works fine. I can create an image using memory dump and verify it with the programmer. I can also program it and read it back and get the same image. This is using an original image file containing random data fully filling the memory ranges.
Please post the original bin file and the converted file for reference.
Note: There appears to be a bug in the Memory Dump program where it doesn't load the PPAGE value correctly from a config file if a value has already be set. Please make sure the PPAGE value is 30.
bye
Hi,
Based on the data sheet the I would expect the default memory map to be:
I do not understand where you got some of your numbers.
I have attached a config file (rename it to .cfg to use) for the memory dump program that will read all of the FLASH memory (32 pages).
If you need the EEPROM you will need to read it separately and you may need to set up INITEE as part of it is hidden by the registers.
bye
PS. It is a long time since I sued HCS12 chips. You might get a more informed answer on another forum e.g. https://community.nxp.com/t5/S12-MagniV-Microcontrollers/bd-p/16-bit
I am unclear what you mean by 'file bin'
The HCS12 programmer should be able to write the '.s19 file' produced from MemoryDump.
It would really help if you described what you are doing rather than fragmented questions. You are more likely to get an informed answer.
It occurs to me that you may be doing two things - I have no idea which:
If you are trying to make an backup image of a chip it is a good idea to load that image into the HCS12 programmer and do a verify operation. The programmer has more information about the target chip than the Memory Dump program. Doing verify will help to detect some incorrect memory mapping problems. This will not detect information missing from the image. When doing this verify process select the 'Keep Empty SRECs' option when making the image so that checks on blank segments will also be done.
bye
Ok tnx
I have a original firmware but It Is bin.. i want make a backup tò mc9s12.
I use Memory dump With Ur file With area, but i have 1 Page Memory i all area repeat for 32 Page the same information.
I transform With winhex firmware.bin in s19 and i use hcs12 programmer i write a mc9s12 and i dont have errore.. i check with verify and dont have error.
Now i have mc9s12 With original firmware open Memory dump and i read all chip..now i expect the file out side tò Memory dump and my firmware are egualy but It Is not true. In this case file out side tò Memory dum have 1 Page repeted for all 32.
I use windows 7 and usbdm With 4.12.295
Please reply by clicking on the button below the posting you are replying to. This discussion is becoming hard to follow.
The only reason I can think for you to be getting multiple pages containing the same data is if the PPAGE register address is not set correctly on the memory dump program.
According to the data for the mc9s12dp512 the PPAGE address is 30.
I no longer have a mc9s12dp512 for testing but trying with a smaller MC9S12DG128, which has similar paging, it works fine. I can create an image using memory dump and verify it with the programmer. I can also program it and read it back and get the same image. This is using an original image file containing random data fully filling the memory ranges.
Please post the original bin file and the converted file for reference.
Note: There appears to be a bug in the Memory Dump program where it doesn't load the PPAGE value correctly from a config file if a value has already be set. Please make sure the PPAGE value is 30.
bye