• Content count

  • Joined

  • Last visited

  1. I see mention of a heater, could that be turning on and causing a glitch?
  2. ID looks to be a lot longer than 8 bytes. Are you overrunning things?
  3. Must be some buffering going on somewhere, maybe in your terminal program.
  4. I was going to say the same thing. But I will add: You can simply import your energia sketch into CCS and it will run with no issues. You can get a full version of CCS 6 for free.
  5. One has attachments and the other does not.
  6. Well, somebody declared something: void dump_radio_status_to_serialport(uint8_t); just add: void pulseCounter(void); above setup(). Are you using Energia? because it should also generate the prototypes for you. There are some situations where the Arduino IDE gets it wrong, too.
  7. Thanks Rei! That did the trick. Are there plans to get the serial monitor in the IDE to listen to the right serial connection?
  8. Thanks, I kinda figured that I should do the ctrl-A ctrl-K thing from my perusal of the man page. It is just so much *easier* to hit the close button. 8^)
  9. Why are you forcing UARTA1_TX_ARRAY to be unsigned? Why not just a char? Then your problem will go away.
  10. So, Indeed YELLOW_LED controls the red LED on the board. 8^) But I still can't get serial on my Mac to work reliably. I have set the baud to 115200 (Launchpad and Energia Terminal). I have tried Serial and Serial1. I have tried both usbmodems that show up, I do have USB 3.0, but I have no control over that. I have also tried the macOSX screen command which turns a terminal session into a serial console. The kicker is, one time I *did* get serial output to show up using this method. I was printing to Serial and Serial1 at the time. So I modified it to do one or the other but never again got any joy. One frustrating thing is that once I try something, I have to unplug and re-plug the USB to prevent "resource already in use" errors. Any thoughts?
  11. How do you know it is not working? Try putting a delay(1000) and Serial.println("Hello, World!") at the end of setup.
  12. That is exactly what I did for the serial stuff. Did it work for you? Do you have a Mac and MSP432P401R?
  13. That pinout is obsolete. That is what I took LED1 from. It appears that "P1_0" is wrong, too. I thought 78 was a pin number on the board, not the chip.
  14. /* Blink without Delay Turns on and off a light emitting diode(LED) connected to a digital pin, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code. In MSP430 Launchpad, there is already an LED on the board that's attached to pin 14, so no hardware is needed for this example. created 2005 by David A. Mellis modified 8 Feb 2010 by Paul Stoffregen modified 27 Apr 2012 by Robert Wessels */ // Pin 14 has an LED connected on MSP430 boards, has a name 'GREEN_LED' in the code. // constants won't change. Used here to // set pin numbers: const int ledPin = GREEN_LED; // the number of the LED pin // Variables will change: int ledState = LOW; // ledState used to set the LED long previousMillis = 0; // will store last time LED was updated // the follow variables is a long because the time, measured in miliseconds, will quickly become a bigger // number than can be stored in an int. long interval = 1000; // interval at which to blink (milliseconds) void setup() { // set the digital pin as output: pinMode(ledPin, OUTPUT); } void loop() { // here is where you'd put code that needs to be running all the time. // check to see if it's time to blink the LED; that is, if the // difference between the current time and last time you blinked // the LED is bigger than the interval at which you want to // blink the LED. unsigned long currentMillis = millis(); if(currentMillis - previousMillis > interval) { // save the last time you blinked the LED previousMillis = currentMillis; // if the LED is off turn it on and vice-versa: if (ledState == LOW) ledState = HIGH; else ledState = LOW; // set the LED with the ledState of the variable: digitalWrite(ledPin, ledState); } } Here you go. RED1 caused an error. I guess I needed to use YELLOW_LED.
  15. It means that you might actually get a "hello\n" in the String which won't match "hello". If you do strlen() - or the String equivalent - you can see that the string you are comparing is 6 or 7 characters, not the 5 in "hello". I use straight C string functions, so I can't tell you how to strip control characters in a String.