Line 1... |
Line 1... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
<html><head>
|
<html><head><title>openMSP430 Software Development Tools</title></head><body>
|
<title>openMSP430 Software Development Tools</title>
|
|
|
|
|
|
</head><body>
|
|
<h3>Table of content</h3>
|
<h3>Table of content</h3>
|
|
|
<ul>
|
<ul>
|
|
|
<li><a href="#1.%20Introduction"> 1. Introduction</a></li>
|
<li><a href="#1.%20Introduction"> 1. Introduction</a></li>
|
Line 47... |
Line 43... |
needs to be installed on your system.<br>
|
needs to be installed on your system.<br>
|
|
|
<br>
|
<br>
|
|
|
In order to connect the host PC to the openMSP430 serial debug
|
In order to connect the host PC to the openMSP430 serial debug
|
interface, a serial cable is required.<br>
|
interface, a UART or I2C serial cable/adapter is required.<br>
|
|
|
Typically, the following solutions will suit any kind of development
|
Typically, the following solutions will suit any kind of development
|
board:<br>
|
board:<br><br>
|
|
<table style="text-align: left; width: 50%; margin-left: auto; margin-right: auto;" border="1" cellpadding="2" cellspacing="2">
|
|
<tbody>
|
|
|
<ul>
|
<tr>
|
|
<td style="vertical-align: top; text-align: center;"><strong>UART</strong><br>
|
|
</td>
|
|
<td style="vertical-align: top; text-align: center;"><strong>I<sup>2</sup>C</strong><br>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="vertical-align: top; text-align: left;">
|
|
<span style="font-weight: bold;"><br><a href="http://www.ftdichip.com/Products/Cables/USBRS232.htm">
|
|
USB to RS232 converter:</a></span><br>
|
|
<br>
|
|
<div style="text-align: center;"><img src="http://opencores.org/usercontent,img,1353274537" alt="USB to RS232" title="USB to RS232" width="25%">
|
|
<br>
|
|
</div>
|
|
|
<li><a href="http://www.ftdichip.com/Products/Cables/USBRS232.htm">USB
|
<a href="http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm"><span style="font-weight: bold;">
|
to RS232 converter</a></li>
|
USB to Serial TTL converter:</span></a><br><br>
|
<li><a href="http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm">USB
|
<div style="text-align: center;"><img src="http://opencores.org/usercontent,img,1353274560" alt="USB to Serial TTL" title="USB to Serial TTL" width="25%">
|
to Serial TTL converter</a><br>
|
<br>
|
</li>
|
|
</ul>
|
</div>
|
|
</td>
|
|
<td style="vertical-align: top; text-align: left;"><br>
|
|
<a href="http://www.robot-electronics.co.uk/htm/usb_iss_tech.htm"><span style="font-weight: bold;">Devantech USB-ISS adapter:</span></a><br><br>
|
|
<div style="text-align: center;"><img src="http://opencores.org/usercontent,img,1353274507" alt="USB to I2C adapter" title="USB to I2C adapter" width="75%">
|
|
<br>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<ul></ul>
|
|
|
<a name="2. openmsp430-loader"></a>
|
<a name="2. openmsp430-loader"></a>
|
<h1>2. openmsp430-loader</h1>
|
<h1>2. openmsp430-loader</h1>
|
|
|
This simple program allows the user to load the openMSP430 program
|
This simple program allows the user to load the openMSP430 program
|
Line 87... |
Line 110... |
</td>
|
</td>
|
<td bgcolor="#d0d0d0" width="3"><br>
|
<td bgcolor="#d0d0d0" width="3"><br>
|
</td>
|
</td>
|
<td width="15"><br>
|
<td width="15"><br>
|
</td>
|
</td>
|
<td> <code>openmsp430-loader.tcl [-device <communication
|
<td> <code><br>
|
device>] [-baudrate <communication speed>]
|
USAGE : openmsp430-loader.tcl [-device <communication port>]<br>
|
<elf/ihex-file>
|
|
<br>
|
[-adaptor <adaptor type>]<br>
|
|
|
|
[-speed <communication speed>]<br>
|
|
|
|
[-i2c_addr <cpu
|
|
address>]
|
|
<elf/ihex-file><br>
|
|
<br>
|
|
DEFAULT : <communication port> = /dev/ttyUSB0<br>
|
|
<adaptor
|
|
type> = uart_generic<br>
|
|
<communication speed> = 115200 (for UART) / I2C_S_100KHZ (for I2C)<br>
|
|
<core address> = 42<br>
|
|
<br>
|
|
EXAMPLES: openmsp430-loader.tcl -device /dev/ttyUSB0 -adaptor uart_generic -speed 9600 leds.elf<br>
|
|
|
|
openmsp430-loader.tcl -device
|
|
COM2: -adaptor
|
|
i2c_usb-iss -speed I2C_S_100KHZ -i2c_addr 75 ta_uart.ihex<br>
|
<br>
|
<br>
|
Examples: openmsp430-loader.tcl -device /dev/ttyUSB0 -baudrate 9600
|
</code>
|
leds.elf<br>
|
|
openmsp430-loader.tcl
|
|
-device COM2: -baudrate 38400 ta_uart.ihex </code>
|
|
</td>
|
</td>
|
</tr>
|
</tr>
|
</tbody>
|
</tbody>
|
</table>
|
</table>
|
|
|
Line 107... |
Line 145... |
|
|
These screenshots show the script in action under Linux and Windows:
|
These screenshots show the script in action under Linux and Windows:
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
<img src="http://opencores.org/usercontent,img,1353618648" alt="openmsp430-loader Linux" title="openmsp430-loader Linux" width="100%">
|
<img src="usercontent,img,1306525377" alt="openmsp430-loader Linux" title="openmsp430-loader Linux" width="75%">
|
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
<img src="usercontent,img,1249244501" alt="openmsp430-loader Windows" title="openmsp430-loader Windows" width="75%">
|
<img src="http://opencores.org/usercontent,img,1249244501" alt="openmsp430-loader Windows" title="openmsp430-loader Windows" width="75%">
|
<br>
|
<br>
|
|
|
<a name="3. openmsp430-minidebug"></a>
|
<a name="3. openmsp430-minidebug"></a>
|
<h1>3. openmsp430-minidebug</h1>
|
<h1>3. openmsp430-minidebug</h1>
|
|
|
This small program provides a minimalistic graphical interface enabling
|
This small program provides a minimalistic graphical interface enabling
|
simple interaction with the openMSP430:
|
simple interaction with the openMSP430:
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
<img src="http://opencores.org/usercontent,img,1353618607" alt="openmsp430-minidebug" title="openmsp430-minidebug" width="75%">
|
<img src="usercontent,img,1306665243" alt="openmsp430-minidebug" title="openmsp430-minidebug" width="75%">
|
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
As you can see from the screenshot, it allows the following actions:
|
As you can see from the screenshot, it allows the following actions:
|
Line 168... |
Line 204... |
Schematically the communication flow looks as following:
|
Schematically the communication flow looks as following:
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
<img src="usercontent,img,1248897690" alt="GDB Proxy flow" title="GDB Proxy flow" width="40%">
|
<img src="http://opencores.org/usercontent,img,1248897690" alt="GDB Proxy flow" title="GDB Proxy flow" width="40%">
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
Like the original '<b><i>msp430-gdbproxy</i></b>' program, '<b><i>openmsp430-gdbproxy</i></b>'
|
Like the original '<b><i>msp430-gdbproxy</i></b>' program, '<b><i>openmsp430-gdbproxy</i></b>'
|
can be controlled from the command line. However, it also provides a
|
can be controlled from the command line. However, it also provides a
|
simple graphical interface:
|
simple graphical interface:
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
<img src="http://opencores.org/usercontent,img,1353618690" alt="gdbproxy" title="gdbproxy" width="60%">
|
<img src="usercontent,img,1306525816" alt="gdbproxy" title="gdbproxy" width="60%">
|
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
These two additional screenshots show the script in action together
|
These two additional screenshots show the script in action together
|
with the Eclipse and DDD graphical frontends: <br>
|
with the Eclipse and DDD graphical frontends: <br>
|
|
|
<br>
|
<br>
|
|
|
<img src="usercontent,img,1320787180" alt="gdbproxy-Eclipse" title="gdbproxy-Eclipse" width="100%">
|
<img src="http://opencores.org/usercontent,img,1320787180" alt="gdbproxy-Eclipse" title="gdbproxy-Eclipse" width="100%">
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
<img src="usercontent,img,1306526049" alt="gdbproxy-DDD" title="gdbproxy-DDD" width="100%">
|
<img src="http://opencores.org/usercontent,img,1306526049" alt="gdbproxy-DDD" title="gdbproxy-DDD" width="100%">
|
<br>
|
<br>
|
|
|
<br>
|
<br>
|
|
|
<b>Tip 1:</b> There are several tutorials on Internet explaining how to
|
<b>Tip 1:</b> There are several tutorials on Internet explaining how to
|
Line 1230... |
Line 1265... |
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
</tr>
|
</tr>
|
<tr>
|
<tr>
|
<td style="vertical-align: top; text-align: center;">msp430x1491<br>
|
<td style="vertical-align: top; text-align: center;">msp430x1491<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;">59 kB<br>
|
<td style="vertical-align: top; text-align: center;">60 kB<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;">2048 B<br>
|
<td style="vertical-align: top; text-align: center;">2048 B<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
</tr>
|
</tr>
|
<tr>
|
<tr>
|
<td style="vertical-align: top; text-align: center;">msp430x149<br>
|
<td style="vertical-align: top; text-align: center;">msp430x149<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;">59 kB<br>
|
<td style="vertical-align: top; text-align: center;">60 kB<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;">2048 B<br>
|
<td style="vertical-align: top; text-align: center;">2048 B<br>
|
</td>
|
</td>
|
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
<td style="vertical-align: top; text-align: center;"><span style="font-weight: bold;">Yes</span> </td>
|
</tr>
|
</tr>
|