Skip to content

How to recover an unflashable MSB A2

Oleg Hahm edited this page Nov 20, 2013 · 8 revisions

Overview

This HOWTO may help your bring a unflashable MSB-A2 flashable

Prerequisites

You need a tool to configure the FTDI chip (for Linux: http://rtr.ca/ft232r/, for Windows MProg from [http://www.ftdichip.com/Support/Utilities.htm]) and a terminal program like (HTerm)[http://www.der-hammer.info/terminal/] that lets you control the RTS/CTS lines.

Linuy: ft232r_prog

ft232r_prog --invert_rts

Windows: mProg

First step to reprogram the FTDI232R:

  • Tools->Read and parse
  • File->Save As bla.ept
  • File->Edit

to prevent the MSB-A2 from running user application your have to program the "Device Type" FT232R lowering the RTS line on poweron (uncheck the "Invert RTS#" box in the "Invert RS232 Signals" -Tab). If the checkbox "Load D2XX driver is not yet checked please download and install the D2XX-Driver . (if it does not work with the standard VCP driver) Device->Program

HTerm

Now connect the device (115200 8N1), try input something and watch the output. If the output corresponds with the input the baudrate is correct. If not, try lowering this value until the connection is correct. Then activate RTS. Let's speak a little bit "bootloader" (maybe a ASCII table is useful).

comand	              response	                         comment
================================================================================
"?"CRNL	             "Synchronized"CRNL	 
"Synchronized"CRNL   "Synchonized"CRNL"OK"CRNL	
"16000"CRNL          "16000"CRNL"OK"CRNL	
"J"CRNL	             "J"CRNL"0"CRNL"402716981"CRNL       LPC2387 (500k) 
"U 23130"CRNL        "U 23130"CRNL"0"CRNL                unlocked 
"P 0 0"CRNL          "P 0 0"CRNL"0"CRNL	                 prepare block 0 0 
"E 0 0"CRNL          "E 0 0"CRNL"0"CRNL	                 erase block 0 0 
"P 1 1"CRNL          "P 1 1"CRNL"0"CRNL	                 prepare block 1 1 
"E 1 1"CRNL          "E 1 1"CRNL"0"CRNL	                 erase block 1 1 

and so on. Usually, erasing the first block should be enough.

Finishing

Finally you should be able to flash the MSB-A2 node. It is important to program the FTDI232R with the initially saved settings, especially enable the "Invert RTS"-checkbox (or run ft232r_prog --invert_rts again)!

Clone this wiki locally