JTAG-DP Sticky errors when programming flash on LM3S101

I kept getting sticky errors when programming the flash on a Luminary Micro LM3S101 except when programming blinky.bin (412 bytes). A junk file with same length worked as well.

Longer files kept giving sticky errors.
In Stellaris.cfg, changing the frequency from 500kHz to 50kHz or 1000kHz didn’t change anything.

In the end, I took another binary, splitted it into 256-byte chunks and programmed them individually one after another into the flash. Each 256-byte chunks programmed successfully, and when the CPU was reset, the application ran fine.

My setup:
OpenOCD 0.5.0 (did exactly the same as 0.4.0)
Programmer: Amontek Jtagkey-tiny
Platform: homemade PCB with LM3S101
Ubuntu 11.04

Advertisements
This entry was posted in Electronics and tagged , , , . Bookmark the permalink.

One Response to JTAG-DP Sticky errors when programming flash on LM3S101

  1. physnoct says:

    Thanks to the guys in OpenOCD forum, I solved the problem. In my config, I added this line:
    set WORKAREASIZE=0x800

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s