This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil Linker & CM3 Memory [SOLVED]

Hi, I'm working with the LPC1768 and I'm trying to use a reserved memory area to enumerate the address of some variabile that are stored on an external spi flash.

I've made with success the same thing on an LPC2376 (ARM7) but with the cortex I've got an error when I try to enter in debug mode:

"Error: Could not load file project.axf Debugger Aborted!"

I've tested that if I move my vars from the 'off-chip' area to the internal one everything is working.

In the target option I set:

ROM1: 0x80000000 SIZE: 0x100

And in the code I use this code:

const  uint32_t ee_test     __attribute__((at(0x80000000)));

When I start debugging session I got on the console:

Load "L:\\PROGETTI\\project.AXF"

Full Chip Erase Done.

No Algorithm found for: 80000000H - 8000001FH

Partial Programming Done (areas with no algorithms skipped!)

Application running ...

But then keil gives me an error and abort the debug session.

Maybe there is another way to map some variabile in off-chip rom sections?

Thanks to all!

Parents
  • Hi Christopher,

    I don't want to access to the external memory directly from the LPC, but only to use the compiler to create the link for some constant vars to that address range.

    This is useful because it's not necessary to specify manually the addresses of these variables, considering size, etc.

    I've successfully used this method with the LPC2368 (ARM7), but now with the LPC1768 I can't enter in the debug session. I suppose it's related to the Cortex architecture.

    Now I'll also contact the keil support.

    Thank you!

    Samuele


Reply
  • Hi Christopher,

    I don't want to access to the external memory directly from the LPC, but only to use the compiler to create the link for some constant vars to that address range.

    This is useful because it's not necessary to specify manually the addresses of these variables, considering size, etc.

    I've successfully used this method with the LPC2368 (ARM7), but now with the LPC1768 I can't enter in the debug session. I suppose it's related to the Cortex architecture.

    Now I'll also contact the keil support.

    Thank you!

    Samuele


Children
No data