This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RW memory range over lap problem when compiling for nrf52840

Hello, I got this error:

Error: L6221E: Execution region RW_IRAM1 with Execution range [0x20003120,0x200046a8) overlaps with Execution region ER$$.ARM.__AT_0x20003000 with Execution range [0x20003000,0x20003800).

I assume ER$$.ARM is something CM4 related that better left unchanged , but I duplicated the RW_IRAM1 settings from an example project by nordicsemi.

The thing is, I wanna be 100% sure about what I'm doing so I'm not going to straight up modify the IRAM1 range in the "magic wand" setup into something less overlap-ish.

So what can and should I do?

Parents
  • I'm not sure why it says Options for Target 'nrf52822 xxAA' in your picture, but ok. What version of the S140 are you using? It will decide if your IROM1 start is correct or not.

    Anyhow the IROM1 size is incorrect. It should be 0x100000-0x24000 = 0xDC000.

    What if you try to use 0x20002620 for IRAM1 start and 0x3D9E0 for size?

    I also see that you have 0x4000 in RAM for Algorithm size (0x2000 normal). Reset and Run is also unchecked (normally checked). Not that these should matter on compilation.

Reply
  • I'm not sure why it says Options for Target 'nrf52822 xxAA' in your picture, but ok. What version of the S140 are you using? It will decide if your IROM1 start is correct or not.

    Anyhow the IROM1 size is incorrect. It should be 0x100000-0x24000 = 0xDC000.

    What if you try to use 0x20002620 for IRAM1 start and 0x3D9E0 for size?

    I also see that you have 0x4000 in RAM for Algorithm size (0x2000 normal). Reset and Run is also unchecked (normally checked). Not that these should matter on compilation.

Children
No Data
Related