> On Thu, May 31, 2012 at 6:43 PM, Vaclav Peroutka <[email protected]> wrote: > > for one new device I want to use OpenOCD debugger. I changed the > > script and got following message: > > You can probably talk about more details of this new device and maybe > people can help you better. You may have to write a new flash driver > (by modifying existing ones) if it is different from existing ones. > http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=tree;f=src/flash/nor;hb=HEAD >
Currently I have standard ARM Cortex M3 core with some custom IP blocks in our FPGA emulator board with 2 external FLASH - S29WS512P - datasheet is here http://www.spansion.com/Support/Datasheets/S29WS-P.pdf . It runs in legacy mode. EMC controller data bus inside ASIC is 32 bit wide (therefore two FLASH chips in parallel). The flash is correctly detected but cfi.c functionality does not (probably because of magic number) allow to write anything into it. I assumed that if FLASH chip supports CFI, I should have no problem with reading-writing the data. If I change flash description as it is described in OpenOCD guide (flash bank $_FLASHNAME cfi 0x70000000 0x0000000 2 4 $_TARGETNAME ), I get following: #0 : newcm3.flash (cfi) at 0x70000000, size 0x04000000, buswidth 4, chipwidth 2 Info : Flash Manufacturer/Device: 0x0001 0x227e Warn : configuration specifies 0x4000000 size, but a 0x4000000 size flash was found Info : Flash Manufacturer/Device: 0x0001 0x227e Warn : configuration specifies 0x4000000 size, but a 0x4000000 size flash was found flash 'cfi' found at 0x70000000 Error: Unknown ARM architecture Error: error writing to flash at address 0x70000000 at offset 0x00000000 Debug log is attached to the first question. If it is still not enough, you can ask me about any deeper info. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
