CFI flash with small working area?

Hi, I’m using a LPC 2212 with 8Mb external flash and 2Mb external ram.

I’m able to erase the external flash without problem.

I’m trying to flash a program in the internal flash (the init code) and the external flash (the data and code)

I’ve defined a working_area like this:

working_area 0 0x40000000 0x4000 nobackup
``` which is the maximum amount of internal ram available in a lpc2212

When I try to flash the program, I get the following warning:

not enough working area available(requested 32768, free 11996)


Is this only a warning and everything should be alright or it's fatal?

I've tried to define the working area like this:

working_area 0 0x820000000 0x8000 nobackup

But the flash process don't function at all. Is this because the working area is too far away?

Thanks for your help

This is just a warning, openocd would let you know if it could not allocate a working area.

Before you use any external ram for a working area, it may need registers configuring.

Cheers

Spen

Ok thanks for the answer.

Yes, my external memory is correctly configured (registers) and I’m able to read and write it with openocd