Hi,
I’m trying to use OpenOCD with the AT91EB55 from Atmel, witch is build around the AT91M55800A microcontroller. This board includes 2MB of flash.
I was writing a config file for this, since I dind’t find any, but I don’t’ know how to configure the flash (flash bank <chip_width> <bus_width> [driver_options …]), namely the and parameters.
Can anyone give me a hint?
Thanks,
LuÃs M. Costa
Hello Luis,
the AT91EB55 uses an AT49BV162A flash from Atmel. This flash uses the AMD/Spansion/Atmel/… command set (0x2), which isn’t supported by the OpenOCD at this time.
There are a few patches that add support for this type of flash, but none was ready for inclusion, and as I don’t have access to a board with such a flash myself I can’t work on this either.
If it was supported, the correct flash configuration would be:
flash bank cfi 0x200000 2 2 0
This would configure a CFI compatible flash of 2MB size with a single 16-bit chip on a 16-bit bus.
Regards,
Dominic
Thanks for the response Dominic!
Dominic:
There are a few patches that add support for this type of flash, but none was ready for inclusion, and as I don’t have access to a board with such a flash myself I can’t work on this either.
Do you have any idea where could I find such a patch?
Best regards,
LuÃs M. Costa
This patch is against an older version of the OpenOCD. Basically you have to reimplement all the intel_xxx functions, and add calls to your new versions in the switch statements.
https://developer.berlios.de/patch/inde … up_id=4148
Regards,
Dominic
Thanks, once again!
Dominic:
https://developer.berlios.de/patch/inde … up_id=4148
Just a quick note to say that the link only works if it is used plain HTTP, rather than HTTPS.
I’ll see what I can do, and if I succeed I’ll be glad to share my results with everyone. But I’ll start by debugging programs in RAM, using Olimex ARM-USB-OCD.