Hi,
I am trying to create build, debug environment for MC9S12G128 - Memory model (Small). Just created and when t rying to flash with Debug tool, always getting error @FF80.
Please suggest.
Seems strange that it attempts to download 512 bytes to that address. 512 happens to be the flash erase segment size on the S12, so that seems related to the issue. What does the vector table implementation look like and what does your .prm file look like?
If you are using some function pointer table implementation, you may have to declare the pointers as "near". Here is a better implementation in pure ISO C:
https://community.freescale.com/message/59586#59586
Also... did you try to unsecure the MCU just in case?
You point on unsecuring is giving some catch.....
After unsecuring successfully, when we try to flash *. abs file, it fails
-----------------------------------------
FP: No Programming voltage
-----------------------------------------
This is actually after executing VPPON command. Please help with your suggestions.
There's no memory at 0x10000. I guess you used #pragma DATA_SEG <vectors_segment> directive to put vectors table somewhere at 0xFFxx. Vectors table should end at 0xFFFF. Below your table you should add #pragma DATA_SEG defualt to restore default constants placement. If you didn't do this and added some constants or strings below vectors table, then linker probably went above 0xFFFF and debugger is unable to flash that to nonexisting flash locations.
Hi,
Actually there is no code after the address 0xFFFF, pls find the last few lines of the generated map file.
main C006 5 5 1 .text
MCU_init C00B 2C 44 1 .text
MCU_init_reset C037 12 18 3 NON_BANKED
isr_default C049 1 1 61 NON_BANKED
_InterruptVectorTable FF80 7A 122 0 .abs_section_ff80
_ResetVectorTable FFFA 6 6 0 .abs_section_fffa
i am getting error while downloading application to debugger. Any other information could also be helpful.