about "flash_program_erase_mpc5748g"

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

about "flash_program_erase_mpc5748g"

571 次查看
gj3526
Contributor III

Hi,

  I want to program flash for the addr(0x01100000),so I changed the demo “flash_program_erase_mpc5748g”as fllow:

#define BLOCK_START_ADDRS 0x01100000
#define BLOCK_END_ADDRS 0x01107FFF

.........

blockSelect.lowBlockSelect = 0x0U;
blockSelect.midBlockSelect = 0x0U;
blockSelect.highBlockSelect = 0x0U;
blockSelect.first256KBlockSelect = 0x10U;
blockSelect.second256KBlockSelect = 0x0U;

but the program failed to run and reported an error:

IVOR1_Handler() at core0_intc_sw_handlers.S:108 0x1002dae

so is there anything else that needs attention?

标记 (1)
0 项奖励
2 回复数

495 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

where is your code running from? Notice that Read-While-Write is supported only between partitions. Flash block at 0x01100000 is located in partition 6, so the code must be executed from another partition or from RAM. Partition 6 is not accessible during program or erase operation.

pastedImage_1.png

pastedImage_2.png

Regards,

Lukas

0 项奖励

495 次查看
gj3526
Contributor III

Thank you very much for your help.

0 项奖励