Hello to everybody. I’m working on STR710, that supports external memory (EMI). My board has 4 MB of external RAM memory (located in Bank1) and 4 MB of Flash memory (located in Bank0). How can I use this FLASH memory? About RAM, I can load my programs in external RAM adding some lines to my gdb file:
monitor mww 0xE0005000 0x000F
monitor mww 0xE0005004 0x000F
monitor mww 0xE0005008 0x000F
monitor mww 0x6C000004 0x8001
monitor mdw 0x6C000004
With the first 3 lines I set the registers PC0, PC1 and PC2 of IOPORT2 (I don’t know why but it’s the only way to make it work) and with the 4th line I set Bank1 register to allow RAM writing.
How can I obtain this with external FLASH? I suppose I have to flash the program in this memory, but it seems that OpenOCD supports only a flash bank in its cfg file, in my case it’s
flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0
that is the principal embedded flash bank.
Is it possible to add information about another flash bank?
Thanks in advance,
l3golas