Monday, January 26, 2009

How to install a bootloader on a STR912 without CAPS or Raisonance

ST recommends CAPS (their GUI) to install the STR912. However, that requires a Raisonance JTAG adapter. You can do it with just IAR EWARM and Segger tools.

  1. Download the JLINK software from Segger.com
  2. Run "J-LINK STR9 Commander" tool (it's under Segger-> JLink ARM 3.95a -> Processor Specific Utilities).
  3. Type "?" to get a list of commands
  4. Type "erase all" to fully erase the chip.
  5. Type "setb 1" to set the boot bit to bank 1.
  6. Type "q" to quit.
  7. Now you can use the flash loader of EWARM to install the code.
You can also use the "secure" command to secure the JTAG port, but that makes debugging via JTAG impossible. :)

No comments: