Thanks for answering CrasyCat
Actually, I do have two flash memory on my board, but I only use one. Should i define both of them in the *.lcf file, or only the one that i want to use?
From what i understand using Uboot, my flash memories are : CS0 start at 0xFF000000 and CS1 starts at 0xFE000000.
=> bdinfo
memstart = 0x00000000
memsize = 0x10000000
flashstart = 0xFF000000
flashsize = 0x02000000
flashoffset = 0x00000000
sramstart = 0x00000000
sramsize = 0x00000000
bootflags = 0x00000001
intfreq = 396 MHz
busfreq = 99 MHz
ethaddr = FF:FF:FF:FF:FF:FF
IP addr = 0.0.0.0
baudrate = 115200 bps
=> flinfo
Bank # 1: AMD Unknown Chip Type
Size: 16 MB in 128 Sectors
Sector Start Addresses:
FF000000 FF020000 FF040000 FF060000 FF080000
FF0A0000 FF0C0000 FF0E0000 FF100000 ...
Bank # 2: AMD Unknown Chip Type
Size: 16 MB in 128 Sectors
Sector Start Addresses:
FE000000 FE020000 FE040000 FE060000 FE080000
FE0A0000 FE0C0000 FE0E0000 FE100000 ...
I modified my *.lcf file to define these two banks (see attachement). I also removed boot_rom sections and copied the associated data it at the beginning of the cs0_rom and I redefined the address for the vector_rom at 0xff000000 (i don't understand why these two sections where defined at 0x0). Also, why is the entry point at 0x00000100 (.entry_point BIND(0x00000100) : {}).
It seems that i was able to debug from the flash a few times, but it seems really intermittent (content of ram?). I don't know what my mistake is. Any idea is welcome !
Thank you
Message Edited by DavidFournier on
2009-01-12 07:32 PMMessage Edited by DavidFournier on
2009-01-12 07:33 PM