MM9Z1J638 Bootloader

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MM9Z1J638 Bootloader

2,365 Views
vivek_sri
Contributor II

Is there any bootloader sample code available for MM9Z1J638?

When I'm going to erase the ROM sector using the following api.

ret = EraseSector(&ssdConfigPFlash, ROM_APP_START_ADDRESS,10,FlashCommandSequence);

my code is getting crashed with following message.

No source available for "0xAB40A7 (0xAB40A7)() "

 

Thanks!

Vivek Srivastava

0 Kudos
Reply
3 Replies

2,351 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vivek_sri,

Please refer to this thread:

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-CAN-Bootloader/m-p/481382

All MagniV app noteas can be foundhere:

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-of-MagniV-and-S12-X-Application-notes/...

 

Regarding the error message, where is the code that launches the flash commands located?

As you can see in AN4723_SW, the Flash program / erase fundtions are moved to SRAM.

Because the flash cannot be programmed and read at the same time.

 

Regards,

Daniel

0 Kudos
Reply

2,313 Views
vivek_sri
Contributor II

Hi @danielmartynek 

Thank you for the reply.

I moved the flash related functions to RAM similarly as done in the sample code "AN4723_SW".

But still when I'm calling the function to erase the flash. It is showing the same error in RAM location.

No source available for "0x001000 (0x001000)() ".

0 Kudos
Reply

2,252 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vivek_sri,

Which sector do you erase there?

At which point it fails? When the execution branches to the function in SRAM or when the flash command gets launched.

Can you please implement all of these ISRs with while(1) loops in them?

danielmartynek_0-1650465549922.png

 

Thanks,

BR, Daniel

0 Kudos
Reply