Is there any chance TI will release the source for SBDemo.exe or at least the parts that deal with the serial interface?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there any chance TI will release the source for SBDemo.exe or at least the parts that deal with the serial interface?
We reverse engineered the protocol and wrote our own app. Unfortunately it seems to be slower than sbdemo. I am curious what techniques the sbdemo app used to speed up the process. PLEASE PLEASE PLEASE TI, could you just release the source code!!!!
For every one interested here are my findings of my reverse engineering effort. Enter bootloader by sending 0xF8.
SBL protocol:
SOF - LEN - CMD1 - CMD2 - DATA – FCS
SOF: Start of frame : 0xFE
LEN: Length of DATA field, at least 1, max. 127
CMD1: 0x4D
CMD2: 0x01: Write CMD
0x02: Read CMD
0x03: Enable CMD
0x04: Handshake CMD
DATA: First 2 bytes: memory page to read/write, then data to flash
FCS: XOR of all field except SOF
Answer to a command is always the same but with CMD2 |= 0x80 and without data for write and with data for read.
Write command:
The first 2 DATA bytes are the flash page number (example: flash page 16 = 0x1000). Every flash page is 4 bytes. TIs SBL tool always sends 64 bytes and therefore flash page number increases every time (+16).
Read command:
Sends 64 bytes following the flash page number. The first data byte of the answer is the status of the operation (0x00 = Success).
Hi,
sorry for the delay of this answer. Please contact a TI sales representative, who will evaluate this business case, if you would like to get access to SBL code.
Thansk,
TheDarkSide