>>> I cant upload an image into internal SRAM (AT91SAM9). >>> it can really write only 20 bytes. >>> load_image into internal flash area works fine.
>> But why it doesn't fail if it writes the other regions? >> It crashes only if it writes into internal SRAM. > Could it be that the load_image command uses working area which overlaps with > the address you're trying to write, thus corrupting the algorithm? No, I've tested writing area address:0x300000-0x300040 (SRAM start address). > I used openocd to program internal flash using algorithm like: > 1. write 512 bytes (load_image) into flash > 2. touch flash registers to start writting > 3. repeat 1 with the other 512-block I use the same algorithm. It works fine. It can write into flash area (0x200000-...) and can't write into sram area. > Tedious. Isn't there a flash driver for your target? Unfortunately no :( (I'm trying to program AT91SAM9XE.. targets) > Maybe write one? may be :) -- . ''`. Dmitry E. Oboukhov : :’ : email: [email protected] jabber://[email protected] `. `~’ GPGKey: 1024D / F8E26537 2006-11-21 `- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
signature.asc
Description: Digital signature
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
