MM9Z1J638 Bootloader

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MM9Z1J638 Bootloader

2,367 次查看
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,353 次查看
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,315 次查看
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,254 次查看
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 项奖励
回复