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

Re Help Required: How to use onchip flash to store variables?

Hi devlopers,

I am usign LPC 2138 ARM controller right now. It has only 32 Kb of SRAM, I have one array say
" char Table[300][300] " of approx. 100 Kb.

I want to store this table in on chip flash memory which is 512 Kb, can anyone guide me how to accomplish this task.

I am using Keil u vision3 compioler and MCB 2138 board [having LPC2138 controller], and using flash programming with LPC flash utility [COM].

Thanks in advance,
Saurabh Pandya

Parents
  • You can locate the array at an address in flash. See the linker manual for directives to locate a segment, or the "at" keyword, if that's supported on the ARM compiler.

    However, the compiler will not automatically generate a sequence of flash programming commands. You won't be able to store values the array simply by using an assignment statement.

Reply
  • You can locate the array at an address in flash. See the linker manual for directives to locate a segment, or the "at" keyword, if that's supported on the ARM compiler.

    However, the compiler will not automatically generate a sequence of flash programming commands. You won't be able to store values the array simply by using an assignment statement.

Children