MM9Z1J638 Bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MM9Z1J638 Bootloader

2,340件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

2,326件の閲覧回数
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 件の賞賛
返信

2,288件の閲覧回数
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 件の賞賛
返信

2,227件の閲覧回数
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 件の賞賛
返信