Hello, > The user manual for my MCU indicates that it has 4 blocks (512 KB each) of > program flash consisting of 4 KB sectors. I set my board config file up > like this: > > flash bank pflash.0 kinetis 0x00000000 0x80000 0 4 $_TARGETNAME > flash bank pflash.1 kinetis 0x00080000 0x80000 0 4 $_TARGETNAME > flash bank pflash.2 kinetis 0x00100000 0x80000 0 4 $_TARGETNAME > flash bank pflash.3 kinetis 0x00180000 0x80000 0 4 $_TARGETNAME > > If I connect to the board and probe the flash banks, it indicates that a > 'kinetis' flash is found at 0x40000, 0x80000, and 0xc0000. This action > causes the flash banks command to stop printing my original bank setup and > prints a new setup with 0x40000 sized chips. > > If I try to flash my ELF through gdb, it errors before it is able to finish > flashing and openocd indicates that:
Freescale's KDS comes with a patched openocd that's working with K6x MCUs (I tried with K64), they also provide the patch p. > ftfx command failed FSTAT: A0 FCCOB: 0B000000 01000000 00000000 > error writing to flash at address 0 offset 0 > > Why does this fail (even after "autocorrecting")? Why does it > autocorrect? Is there a way to force it to 512k blocks? > -- Peter Meerwald +43-664-2444418 (mobile) ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
