Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:msp430 [2020/10/10 14:48]
darron
boards:msp430 [2020/12/27 00:46]
darron
Line 1: Line 1:
-==== MSP430 Launchpad ====+==== MSP-EXP430G2 Launchpad ====
 <wrap right> <wrap right>
 {{:boards:msp430.jpg?200}} {{:boards:msp430.jpg?200}}
 </wrap> </wrap>
  
-The MSP430 Launchpad from TI is an inexpensive development board that comes with two processors, a 32K crystal, two headers sockets, a usb lead and two stickers.+The MSP-EXP430G2 Launchpad from TI is an inexpensive development board that comes with two processors, a 32K crystal, two headers sockets, a usb lead and two stickers.
  
 The latest boards come with the MSP430G2553 and the MSP430G2452 processors but the first revision came with the MSP430G2231 and MSP430G2211. The latest boards come with the MSP430G2553 and the MSP430G2452 processors but the first revision came with the MSP430G2231 and MSP430G2211.
Line 19: Line 19:
 USB USB
  
-VCC                     GND  +VCC         3V3                                GND  
-P1.0 (LED1)             XIN +P1.0 (LED1) A0                 P2.6            XIN 
-P1.1 (UART)            XOUT +P1.1 (UART) A1 TXD             P2.7           XOUT 
-P1.2 (UART)            TEST +P1.2 (UART) A2 RXD                            TEST 
-P1.3 (S2)          (S1) RST +P1.3 (S2)   A3                           (S1)  RST 
-P1.4                   P1.7 +P1.4        A4             SDA MISO A7        P1.7 
-P1.5            (LED2) P1.6 +P1.5        A5 SCK         SCL MOSI A6 (LED2) P1.6 
-P2.0                   P2.5 +P2.0           CS                             P2.5 
-P2.1                   P2.4 +P2.1                                          P2.4 
-P2.2                   P2.3+P2.2                                          P2.3
  
-P1.3  P1.0     RESET    GND +                                               GND 
-S2    P1.6     S1       GND+P1.3   P1.0 P1.6                   RESET       GND 
 +S2     LED1 LED2                   S1          VCC 
 +       RED  GREEN
 </code> </code>
  
-=== LED demo ===+=== Launchpad demo ===
  
-First install the required development tools.+First install the [[tools:msp430gcc|development]] and [[tools:mspdebug|programming]] tools. 
 + 
 +Demo
  
 <code> <code>
-apt-get install binutils-msp430 gcc-msp430 msp430-libc mspdebug msp430mcu+hg clone http://hg.kewl.org/pub/msp430-launchpad/ 
 +cd msp430-launchpad 
 +make 
 +make program
 </code> </code>
  
-TODO+The board will flash the LEDs until the button is pressed to 
 +enter probe mode.
  
 +Probe mode sends the binary encoded value of the chip
 +temperature over the communications port.
 +
 +Communication can be tested with picocom
 <code> <code>
-mspdebug rf2500 +picocom -b 2400 /dev/ttyACM0 
-MSPDebug version 0.22 debugging tool for MSP430 MCUs +</code>
-Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com> +
-This is free software; see the source for copying conditions.  There is NO +
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +
- +
-Trying to open interface 1 on 036 +
-Initializing FET... +
-FET protocol version is 30394216 +
-Set Vcc: 3000 mV +
-Configured for Spy-Bi-Wire +
-Device ID: 0x2553 +
-  Code start address: 0xc000 +
-  Code size         : 16384 byte = 16 kb +
-  RAM  start address: 0x200 +
-  RAM  end   address: 0x3ff +
-  RAM  size         : 512 byte = 0 kb +
-Device: MSP430G2553/G2403 +
-Number of breakpoints:+
-fet: FET returned NAK +
-warning: device does not support power profiling +
-Chip ID data: 25 53 +
- +
-Available commands: +
-    =           erase       isearch     power       save_raw    simio        +
-    alias       exit        load        prog        set         step         +
-    break       fill        load_raw    read        setbreak    sym          +
-    cgraph      gdb         md          regs        setwatch    verify       +
-    delbreak    help        mw          reset       setwatch_r  verify_raw   +
-    dis         hexout      opt         run         setwatch_w  +
  
-Available options: +Or, 
-    color                       gdb_loop                     +<code
-    enable_bsl_access           gdbc_xfer_size               +linux-serial-test -s -R -t -p /dev/ttyACM0
-    enable_locked_flash_access  iradix                       +
-    fet_block_size              quiet                        +
-    gdb_default_port             +
- +
-Type "help <topic>" for more information. +
-Use the "opt" command ("help opt") to set options. +
-Press Ctrl+D to quit. +
- +
-(mspdebug)+
 </code> </code>
  
 +It should be noticed that the TI demo was written for devices without a hardware UART.
 === Resources === === Resources ===
  
Line 98: Line 74:
 [[https://www.ti.com/product/MSP430G2553|MSP430G2553 product page]] [[https://www.ti.com/product/MSP430G2553|MSP430G2553 product page]]
  
 +[[https://www.argenox.com/library/msp430/|Tutorial]]
 +
 +[[https://github.com/msp430club|Examples]]