Hi,

openocd cannot program the PK20DX256VLL7 uC on the Freescale Kinetis 
TWR-K20D72M eval board via its onboard OSBDM JTAG interface.  I'm using 
openocd trunk at commit 2cb4862, and OSBDM firmware version 31.32.  Host 
system is Ubuntu 12.04 32-bit.

As mentioned in a prior msg to the list, this newer firmware presents a 
different USB VID:PID.  I tested with the necessary patch to work around 
this issue.

The openocd error on flash_write is:

Error: ftfx command failed FSTAT: A0 FCCOB: 0B000000 01000000 00000000
Error: error writing to flash at address 0x00000000 at offset 0x00000000

The K20P100M72SF1RM data sheet (Rev 1.1, Dec 2012), in the FTFL section 
documenting the Program Section command (28.4.11.8) indicates that only 
the lower half of available FlexRAM is usable for programming flash. 
With some extra debug in kinetis_write(), it looks like openocd is 
trying to write a 2 KB section, violating this limit.  I think the data 
sheet means that on this processor only 1 KB of FlexRAM is usable for 
Program Section operations.

I don't actually know if this hypothesis is true.  I can program this 
part if I hack kinetis_write() to force the longword programming method, 
however.  I'm hoping this report might be useful for someone else with 
more knowledge in this area.

Thanks,
Steve

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to