C2Prog Frequently Asked Questions
General
Why are the LF2401 and LF2402 not supported?
How do I create an RS-232 link between my MCU and the PC?
Does C2Prog work over half-duplex RS-485?
How do I reset my MCU into SCI bootmode?
Why is there no verify function?
Troubleshooting
My clock rate is not supported!
C2Prog gets stuck after kernel download!
Communication is not established with my 28x!
I get an “echo error” during bootload!
I get a sector violation error!
Launcher error on 64-bit Windows!
C2Prog is a tool for programming Texas Instruments (TI) C2000™ and MSP430™ MCUs. It offers an alternative to programming using a JTAG emulator and is well suited for use in noise environments or deployment in the field.
A Windows installer can be downloaded from CodeSkin.com. A Java JRE is also required; version 1.6 is recommended, but 1.5 is also supported.
C2Prog is Freeware and can be used freely, also for commercial applications.
No, C2Prog is closed-source.
Why are the LF2401 and LF2402 not supported?
They do not have enough internal RAM for the C2Prog kernel.
How do I create a RS-232 link between my MCU and the PC?
On the target side, you will need a driver chip such as a MAX232, which converts the SCI signals in to RS-232 levels. At the PC, you will need either a true COM port or an USB-RS232 converter.
Does C2Prog work over half-duplex RS-485?
Yes. Please contact us for custom settings.
How do reset my MCU into bootmode?
This depends on your MCU. You will have to read the appropriate manual.
Why is there no verify function?
We think that such a function is unnecessary since each line of the hex-file is being transmitted over RS-232 with a 16-bit cyclic redundancy code (CRC) and all flash writes are verified. The likelihood of a programming error is therefore extremely small. Nonetheless, C2Prog can be configured to automatically append a 32-bit CRC to the code being programmed into flash. This allows for the embedded application to verify the flash integrity at each powerup or even periodically during operation, thereby offering a much better protection than a one-time program verify operation.
Yes, we made a small change that was necessary for the DTR control. You can obtain the modified source from the following SVN link: http://svn.codeskin.com/pub/rxtx/tags/rxtx-2.1-7r2-DTR-patch
Here are step-by-step instructions on how to compile the code on a Windows machine:
- Install Eclipse with CDT
- Install MinGW
- In Eclipse, select “New Project > Checkout Projects from SVN” and choose this repository location: http://svn.codeskin.com/pub/rxtx/tags/rxtx-2.1-7r2-DTR-patch.
- Check out as a “project configured using the New Project Wizard” and choose “Java Project”.
- Once the project has been created, right-click on the project, select “new>other>Convert to a C/C++ Make Project”
- Right-click on project again and select “properties>C/C++Build” and change “Build command” to “C:Minmingw32-make”
- Finally, hit “Build All”, which should create RXTXcomm.jar and rxtxSerial.dll
Not officially, but if you contact us we can help you with installing C2Prog on Linux x86. Also, our Web Start applications should work on Linux.
My clock rate is not supported!
Contact us for a custom kernel.
C2Prog gets stuck after kernel download!
After the kernel has been downloaded, the RS-232 communication rate is increased to 115200 baud for the transmission of the flash-code. Make sure that your hardware (RS-232 driver) supports this elevated transmission rate.
Communication is not established with my 28x!
C2Prog uses the autobaud feature of the 28x to establish the initial communication; the default baud rate is 38400. For some hardware with a low clock frequency this rate is too high, and needs to be reduced by editing the target.xml file. Please contact us for support.
I get an “echo error” during bootload!
Most likely, your PC is communicating too fast resulting in bytes getting lost. The data transmission during bootload can be tweaked by editing the target.xml file. Please contact us for support.
I get a sector violation error!
This means that your hex-file contains data that does not fall into a valid flash sector. Please double-check you linker command file.
Launcher error on 64-bit Windows!
Please install a 32-bit version of the Java Runtime Environment (JRE).