Hi all, I try to get my cfi external nor flash programmed with openocd.
I use en stm32 chip with the FSMC to talk to the CFI flash. Write now I can get the openocd reconised the cfi chip. cfi information: mfr: 0x0020, id:0x227e qry: 'QRY', pri_id: 0x0002, pri_addr: 0x0040, alt_id: 0x0000, alt_addr: 0x0000 Vcc min: 2.7, Vcc max: 3.6, Vpp min: b.5, Vpp max: c.5 typ. word write timeout: 16, typ. buf write timeout: 16, typ. block erase timeou t: 512, typ. chip erase timeout: 65536 max. word write timeout: 256, max. buf write timeout: 256, max. block erase time out: 4096, max. chip erase timeout: 1048576 size: 0x1000000, interface desc: 2, max buffer write size: 40 Spansion primary algorithm extend information: pri: 'PRI', version: 1.3 Silicon Rev.: 0x3, Address Sensitive unlock: 0x1 Erase Suspend: 0x2, Sector Protect: 0x1 VppMin: 11.5, VppMax: 12.5 I can erase sectors, I can unlock the sectors too, but I could not program to it. When I try the Flash write_image test.bin 0x64000000 bin , I got this error from openocd > flash protect 1 0 127 off protect: cfi primary command set 2 unsupported cleared protection for sectors 0 through 127 on flash bank 1 > flash erase_sector 1 0 127 erased sectors 0 through 127 on flash bank 1 in 49.546875s > flash write_image test.hex 0x64000000 bin current target isn't an ARMV7M target error writing to flash at address 0x64000000 at offset 0x00000000 (-902) Command handler execution failed in procedure 'flash' called at file "command.c", line 650 called at file "command.c", line 361 > I have no idea why ARMV7M is listed here... Any idea ?
openocd.log
Description: Binary data
openocd.cfg
Description: Binary data
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
