Jump to content


  • Content Count

  • Joined

  • Last visited

About danielhuber

  • Rank
    Noob Class

Recent Profile Visitors

446 profile views
  1. Hi abecedarian, for now, I just work with an external terminal. I am tired to find work arounds and prefere to work on more interesting problems. cheers, Daniel
  2. I have a MSP-EXP430G v1.5 launchpad with a M430G2553 I wanted to try my hands on Bluetooth and bought a module with a HC-05 chip. This can be bought in china for less than $4. Info about HC-05 can be found e.g.: www.linotux.ch/arduino/HC-0305_serial_module_AT_commamd_set_201104_revised.pdf http://www.rcscomponents.kiev.ua/datasheets/hc_hc-05-user-instructions-bluetooth.pdf Then I banged my head for a full day to make it work. The Bluetooth connection posed no problems, but the serial communication with the launchpad gave me a headache. My idea was, to set up a software serial connection for the HC-05 and use the HW UART for debugging. Now I have to tell a bit about the(strange) power up of CH-05. If the ENA(able) pin (also called KEY) is connected to LOW, the HC-05 starts in data mode, 9600 baud, the mode you use for data transmission. If the ENA pin is held HIGH during power up, the HC-05 starts in AT command mode1 with 38400 baud. I tried this for a long time, but I could never get a connection. If you hold ENA LOW during power up , and subsequently pull it HIGH the HC-05 starts in AT mode2 with 9600 baud. With this setting I got a very unstable connection with characters garbled and missing. After I long search I finally found: https://ssihla.wordpress.com/2013/01/04/adding-bluetooth-to-the-msp430-launchpad/ Well, the baud rate of the energia library "SoftwareSerial" is not accurate enough (5% error) for the HC-05!!! I then connected the HC-05 to the HW UART. Note that the HW UART is 9600 baud and so must the HC-05 be. For this, you remove the RDX/TDX jumpers on the launchpad and connect theTDX pin of HC-05 to P1.1 (pin 3) on the launchpad and the RDX pin of HC-05 to P1.2 (pin 4). This worked fine. But now debugging is difficult because you do not have a serial monitor. To fix this you can connect the serial monitor to a software UART. The serial monitor seems less picky about accurate baud rate. The procedure for this: First, choose which pins you want to use for the RDX/TDX of the software UART. Then look at the launchpad, component side, USB plug at top. From the 4 emtpy jumper pins, we connect the pin at upper right to the RDX software UART pin. The jumper pin at lower left is connected to the TXD software UART pin. On the pictures I chose P1.6/P1.7 as RDX/TDX for the software serial port. The HW UART is connected to the HC-05 module. I powered the HC-05 directly from the launchpad with 3.3V. This seems to work, even when the minimal Voltage is specified as 3.6V With this setting it works quit reliable. cheers, Daniel
  3. Hi abecedarian, of course I want Energia to work with all MPU's I have, not only G2553. Corncerning "Devices and Printers", your are barking up the wrong tree. As I already told, you must search for the "Control Panel", it is hidden in Win10, but it is there.
  4. Hi Robert, this is nice of you that you want look into it, your effort is really appreciated. But let me tell what happend. I was really fed up with Energia on Windows 10. I decided to install VirtualBox with Windows 7. Here, everything worked as it should! The only small problem was that is not always clear which OS gets the USB ports. Having smelt blood, I went to a LINUX machine (Ubuntu) and tried my luck. After some newbie problems I succeeded in uploading to an MSP430 MPU. But it did still did not work for MSP432. However, on Ubuntu I did start Energia from a terminal (I still do not know how to do it otherwise) and got much more output than from Energia itself. And what you could read in a big heap of messages was, that the following file could not bee executed: ...\energia-0101E0017\tools\common\DSLite\DebugServer\bin\DSLite.exe could not be executed. I checked and saw that this file had no execute permission. Changing this, hurra, it worked!!!! Why this permission was missing is beyond me. Still not satisfied, I went back to the Windows 10 machine, installed Energia again, and it worked for 430 but not 432. Of course I checked the above file and found the missing execution permission. Fixed that and now it runs on Windows 10! Unfortunately on Windows 10 the trick with starting from a terminal to get more info does not work. So, without Ubuntu I would never have found the permission problem. My only worry now is, that everything is stable. Thank's a lot for your effort and I greatly appreciate that you bother for orther peoples problems, Daniel
  5. Many thank's for the replies! But it goes from bad to worse. I tried the TI driver, but now I can no more upload to the Launchpad at all. I get the message: tilib: MSP430_Initialize: Could not find MSP-FET430UIF on specified COM port (error = 57) tilib: device initialization failed I deleted the driver, but this did not help. Interestingly, there is now a driver, Windows seems to have installed its own drivers The Launchpad seems to be o.k. On another machine with Windows 7 everything works just fine. any help is appreciated, Daniel
  6. I am running an MSP-EXP430G2 Lauchpad with an MSP430G2553 on Windows 7. The following code: ============================ #include <IRremote.h> String st; void setup() { Serial.begin(9600); st=String(); } void loop() { st=st+'2'; Serial.println(st); delay(200); } =============== produces following output: 2 22 222 2222 22222 222222 2222222 22222222 222222222 2222222222 22222222222 222222222222 2222222222222 22222222222222 222222222222222 2222222222222222 22222222222222222 222222222222222222 2222222222222222222 2 22 222 2222 ..... After a string length of 19 the string is cleared. Why? When exactly this happens depends also on additional code. With a MPU with lesser RAM I would guess that the RAM overflows, but 0.5kB of the MSP430G2553 should be large enough. Has anybody an explanation? cheers, Daniel
  7. If I try to read the "micros()" function, I only get multiples of 512. I run a MSP430G2553 that, according to specs, should run with 16MHz. here is a minimalistic code: void setup() { Serial.begin(9600); } void loop() { Serial.println(micros()); } Any ideas why I can not get higher resolution than 512 uSec? cheers, Daniel
  • Create New...