Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:mspdebug [2022/10/20 12:42] darrontools:mspdebug [2023/11/09 23:26] (current) – [Version 0.25] darron
Line 3: Line 3:
 MSP DEBUG is used to program and debug MSP430 devices on Linux. MSP DEBUG is used to program and debug MSP430 devices on Linux.
  
-=== Pre-built ===+===Version 0.22===
  
-==Install mspdebug==+==Install==
  
 <code> <code>
Line 60: Line 60:
 </code> </code>
  
-=== Build ===+=== Version 0.25 ===
  
-==Install libmsp430.so==+First install [[https://wiki.kewl.org/dokuwiki/tools:mspds|libmsp430.so]].
  
-Fetch code and install libraries +==Install==
-<code> +
-cd /opt/src +
-mkdir slac460y +
-cd slac460y +
-wget http://www.ti.com/lit/sw/slac460y/slac460y.zip +
-unzip slac460y.zip +
-apt-get install libboost-all-dev libhidapi-dev libusb-1.0-0-dev +
-</code> +
- +
-Patch for Linux +
-<code> +
-wget https://dlbeer.co.nz/articles/slac460y/slac460y-linux.patch +
-patch -p1 < slac460y-linux.patch +
-</code> +
- +
-Fixes for modern boost +
-<code> +
-find -iname "*.cpp" -exec sed -i 's/(chrono/(std::chrono/g' {} \; +
-find -iname "*.cpp" -exec sed -i 's/boost::asio::io_service/boost::asio::io_context/g' {} \; +
-find -iname "*.h" -exec sed -i 's/boost::asio::io_service/boost::asio::io_context/g' {} \; +
-</code> +
- +
-Build and install +
-<code> +
-make +
-make install +
-ldconfig +
-</code> +
- +
- +
-==Install mspdebug==+
  
 <code> <code>
Line 105: Line 74:
 make install make install
 </code> </code>
- 
  
 ==Test== ==Test==
Line 176: Line 144:
  
 __ezfet__ __ezfet__
 +
 +Whilst eZ-FET mode works with this example, tilib is preferred since mspdebug
 +eZ-FET support can be unreliable.
  
 <code> <code>
Line 240: Line 211:
 Press Ctrl+D to quit. Press Ctrl+D to quit.
  
 +(mspdebug)
 +</code>
 +
 +__tilib__
 +
 +<code>
 +mspdebug tilib
 +MSPDebug version 0.25 - debugging tool for MSP430 MCUs
 +Copyright (C) 2009-2017 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.
 +Chip info database from MSP430.dll v3.15.0.1 Copyright (C) 2013 TI, Inc.
 +
 +Using new (SLAC460L+) API
 +MSP430_GetNumberOfUsbIfs
 +MSP430_GetNameOfUsbIf
 +Found FET: ttyACM0
 +MSP430_Initialize: ttyACM0
 +Firmware version is 31300601
 +MSP430_VCC: 3000 mV
 +MSP430_OpenDevice
 +MSP430_GetFoundDevice
 +Device: MSP430F5438 (id = 0x003f)
 +8 breakpoints available
 +MSP430_EEM_Init
 +Chip ID data:
 +  ver_id:         3854
 +  ver_sub_id:     0000
 +  revision:       10
 +  fab:            55
 +  self:           5555
 +  config:         10
 +  fuses:          55
 +Device: MSP430F5438
 (mspdebug) (mspdebug)
 </code> </code>