Hi Chris, On 04/21/2013 12:47 PM, Chris Kilgour wrote: > > > On 04/19/2013 11:47 AM, Steve McKown wrote: >> 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. [snip]
> The difficulty lies in determining the amount of FlexRAM available > in the Kinetis part. > > Ideally we would identify the amount of FlexRAM by inspecting some > definitive register field(s). I've attached a patch that assumes the > FlexNVM size is the same as half the FlexRAM size (which is logical, but > not yet verified by Freescale). This seems to be true for this K20 as well, per the relevant reference manual. Its FlexNVM sector size is 1/2 the FlexRAM total size. > This seems to only make a difference on > the "SF1" parts so it should cover your case. I don't have any K20 > Kinetis parts, but if you care to try the patch, I can confirm it does > not break my "SF2" and "SF3" K60 parts, and then push the solution > through Gerrit. The patch works great here, applied to this morning's openocd trunk. The solution looks clean, and it is certainly nice to get flash programming speeds up! Thanks for working on this, 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
