SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By kees
#77182
Hi All,

I have a bit of a problem with the SST flash programming. This used to work in OpenOCD version 0.1.0, but since 0.2.0 it is no longer working.

Main problem is that the flash is not correctly detected. OpenOCD is able to find the manufacturer ID (which is 0x00BF), but the device ID is wrong.

I went through the code to find out what can be the cause, and it seems that the device id is read from the wrong address.

I use an SST flash, connected via a 16-bit databus to an ARM7 processor.
In cfi.c, line 2175, the device id is read from address 0x02. According to the data sheet, this should be read from address 0x01. Of course I tried address 1 as well, and now it is working.

Question is of course: Can somebody check if this is something odd for SST flashes, or is this problem more common. In any case, I think it is a good idea when future versions of OpenOCD again have support for SST devices, so perhaps someone can change the cfi.c file and check it in svn.

--Kees.
User avatar
By ntfreak
#77327
No you have found a bug with the cfi driver - a patch has been submitted and should be in svn trunk today.

Cheers
Spen