get error ADDR_NOT_MAPPED (#14) with IAP:copy ram to flash (#51)

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

get error ADDR_NOT_MAPPED (#14) with IAP:copy ram to flash (#51)

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dill on Tue Oct 07 08:35:43 MST 2014
What does this error mean?

destination is 0x1B070000, source is 0x2000BE40,I want to write 512 bytes.
MCU is a 1837.

Labels (1)
0 Kudos
Reply
4 Replies

541 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dill on Tue Oct 07 13:46:56 MST 2014
I just figured out that this is the problem.
I was told, that there is no practical difference between AHB SRAM and local SRAM.
And: I could not find any information about AHB SRAM. How to handle it?

Anyway there are four 16k blocks of AHB SRAM.
When the 512 bytes I want to copy to flash are located fully in one block, it works:

// ---- OK, this is completely in the third of four blocks
flash_storage           0x2000be00   0x200  Data  Lc  IAP.o [1] 

// ---- NOT OK, this is in the third and fourth block
flash_storage           0x2000be04   0x200  Data  Lc  IAP.o [1]


Thanks for your help!
0 Kudos
Reply

541 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Oct 07 12:39:37 MST 2014
Looks like you are trying to copy from AHB RAM. Don't you need to copy from local SRAM (0x10000000)?
0 Kudos
Reply

541 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dill on Tue Oct 07 11:14:19 MST 2014
> Param2: Number of bytes to be written. Should be 512 | 1024 | 4096.

    uint32_t command[6];
    uint32_t result[5];

    IAP iap_entry = *((IAP *)0x10400100);

    command[0] = 51;
    command[1] = 0x1B070000;
    command[2] = 0x2000BE40;
    command[3] = 512;
    command[4] = 72000;
    command[5] = 0;

    iap_entry(command, result);

0 Kudos
Reply

541 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Oct 07 08:51:47 MST 2014
check the sector size. I think it is larger than 512 bytes.
0 Kudos
Reply