DSPRelated.com
Forums

Writing to / Reading from / Booting from FLASH memory on 5509a

Started by victorashu June 10, 2010
Hi,
I am trying to get familiar with the DSK5509a for a project.
My first task was to write and read something(an integer, a string..) from the RAM memory, which i successfully did. Next, I have to do the same, but on the flash memory. Lately i have read a lot of articles, data manuals, and posts, about flashburn, EMIF, bootloaders, DMA ...etc and to be honest my head is mixed up right now. I would appreciate very much if someone would post or send me some sample code for writing or reading from the flash memory, or at list point me the steps i have to follow to do this right.
I have to mention that i am trying to "load" a program that digitally processes audio data from the line input on the AIC23 codec and plays the result on the line output and headphone output.
This program works ok when run through Code Composer and the built-in USB JTAG emulator.

thanks,
Victor
On Jun 9, 2010, at 02:11, victorashu wrote:
> I am trying to get familiar with the DSK5509a for a project.
> My first task was to write and read something(an integer, a
> string..) from the RAM memory, which i successfully did. Next, I
> have to do the same, but on the flash memory. Lately i have read a
> lot of articles, data manuals, and posts, about flashburn, EMIF,
> bootloaders, DMA ...etc and to be honest my head is mixed up right
> now. I would appreciate very much if someone would post or send me
> some sample code for writing or reading from the flash memory, or
> at list point me the steps i have to follow to do this right.

Hello Victor,

Do you have documentation for the DSK? I have some older
documentation for the 5509 (not 5509A), and there are a few
interesting points. First of all, there is both an 8K SPI Flash and
a 1Mx16-bit Flash. The 16-bit Flash is mapped into the CE1 or CE3
address space, depending upon the setting of a jumper. Further, the
EMIF address is only 12-bit, so an on-board CPLD provides the upper 8-
bit section of the address. The Extended Address Latch is at address
0x401000. That means the 1M Flash appears as 256 pages of 4K each.
I'm not sure why the address space is so limited, but the
documentation mentions the limited pins on the VC5509 144-pin PGE.
It's entirely possible that any of these things could have changed
when they revised for the 5509A.

I'm working with the C5506 on a custom board with 2 Mbit SPI Flash,
so I cannot offer any direct assistance. However, you should be able
to make some headway with a logic analyzer.

Brian Willoughby

Sound Consulting