AnsweredAssumed Answered

BF506: boot from internal flash and code mapping to internal flash at the same time

Question asked by K.I.Utkin on Jul 19, 2010
Latest reply on Jul 25, 2010 by K.I.Utkin

Hi!

 

When i build program mapped in L1 and boot it from internal flash, it works.

When i build program mapped in FLASH and execute it under VDSP debug session, it works.

But when i build program mapped in FLASH and boot it from internal flash, it does not work.

 

I think that the cause of the problem is the intersection of addresses:

- flash programmer puts compiled image to internal flash memory starting from 0 offset

(and there is no option to place image to other memory sector, only erase any sector)

- linker puts functions to MEM_FLASH starting from 0 offset too

 

So i have changed start address of MEM_FLASH in *.ldf like that:

MEM_FLASH               { TYPE(ASYNC0_MEMTYPE) START(0x200FFFFF) END(0x203FFFFF) WIDTH(8) }

Thus, the boot image and functions mapped in FLASH no longer intersect.

 

But program still does not work...

 

So how should I configure project in VDSP in that case?

Outcomes