USB enumeration 


USB enumeration raises issues with OS X, especially with the programmer/debugger of the LaunchPad MSP430G2. 


For example, using the serial console —Serial.print()— on a sketch requires 

  • either ending the Serial port by Serial.end() 
  • or disconnecting and reconnecting the LaunchPad 

to reset the USB port, otherwise the next upload of the sketch may fail.


As an alternative, unplug and plug again the LaunchPad from and into the USB port.



Single task only, no serial console


The programmer/debugger of the LaunchPad MSP430G2 can't handle serial console and debugging at the same time. 


The USB can only perform one task at a time, programmer or debugger or serial port.

 

Remove any Serial.print() from the sketch.



Avoid USB hubs

 

USB hubs are very confusing for port management. I recommend avoiding them.

 

 

False positive error message


At launch, the debugger terminal displays the error message crt0.S: No such file or directory


GNU gdb (GDB) 7.2

Copyright (C) 2010 Free Software Foundation, Inc.

[...]

Pause 2 s_reset_vector__ () at ../../../gcc/gcc/config/msp430/crt0.S:105

105 ../../../gcc/gcc/config/msp430/crt0.S: No such file or directory.

in ../../../gcc/gcc/config/msp430/crt0.S


This error message has no impact on the debugging session.


Just proceed on normally.



Always quit a debugging session


Always quit the debugging session by closing it in a clean way. 


To do so,

  • first type Q = quit and
  • then confirm by Y = yes

on the GDB client session.


This is critical for the next session of debugging.