about "flash_program_erase_mpc5748g"

cancel
Showing results for 
Search instead for 
Did you mean: 

about "flash_program_erase_mpc5748g"

79 Views
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?

Tags (1)
0 Kudos
2 Replies

3 Views
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 Kudos

3 Views
Contributor III

Thank you very much for your help.

0 Kudos