Jump to content

BRey

Members
  • Content Count

    60
  • Joined

  • Last visited

About BRey

  • Rank
    Level 1

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

388 profile views
  1. BRey

    Best LP for WSN

    Rei Vilo has an article describing using a FET with EnergyTrace to analyze a launchpad which doesn't have it, could you use this to optimize the F5529?: http://embeddedcomputing.weebly.com/ultra-low-power-with-msp430.html B
  2. BRey

    Interfacing MODBUS RTU HMI with MSP432 Launchpad

    I recall a documented issue (on e2e.ti.com) regarding overheating after touching or shorting the capacitor right next to the USB connector. Here it is: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/490273 B
  3. I don't know if this is better, but In the AIR430Boost... library, they create a task that waits on a semaphore, the HWI sends the semaphore to waken the task. https://github.com/energia/Energia/blob/master/hardware/msp432/libraries/AIR430BoostUSAFCC/utility/A110x2500Radio.cpp B
  4. I am slowly learning about RTOS with Energia MT. In working out some issues with libraries, I found this in the SPI transfer() function: /* wait for transfer to complete (ie for callback to be called) */ while (transferComplete == 0) { ; } Lines 191-194 here: https://github.com/energia/emt/blob/a350116673c64a5ba71a034b3baaa384b888776e/src/ti/runtime/wiring/SPI.cpp (Energia MT uses DMA for the SPI transfer and an interrupt callback routine sets transferComplete=1) Other RTOS reading leads to me believe this is not the best way to do this, or is this so fast that using an RTOS wait doesn't make sense? (The AIR430boost library uses a semaphore) B
  5. BRey

    Adafruit Bluefruit LE SPI friend with MSP432

    I had to add an "SPI.setDataMode(SPI_Mode0);" call to make the MSP432 SPI work using the Reaper's UIPEthernet library. Also, it defaults to LaunchPad Pin 18 for CS and the SPI library manages the CS. If you want a different CS you use SPI.begin(SS); where SS is the PIN number you are using. Most of the code I have seen manipulates the CS outside the library so specifying the CS in the SPI.begin may not matter although I think the SPI library will mess with Pin 18 if you don't which may cause other problems. I am planning to continue testing tonight trying to clarify some of the MSP432 issues I am seeing. B
  6. Thanks for this. In the details link I found: Enjoy free UPS 2-Day shipping (up to 10lbs) for all orders placed on products.avnet.com. Use promocode: WELCOME416 B
  7. BRey

    MSP430 and CC110L communication

    This from RobG may be useful also; http://forum.43oh.com/topic/5691-cc2500-anaren-code-example/#entry49659
  8. BRey

    MSP430 and CC110L communication

    There are several good examples here that probably will help. Several members have written of using "Larsie's LarsRF" library: http://forum.43oh.com/topic/1433-anaren-ti-cc110l-rf-air-booster-pack/page-4#entry17770 . Try searching for "CC1101" as well as "Anaren" (all compatible products). Energia has the AIR library with examples; I have tested them on the MSP430G2553 as well as the LM4F and MSP432 launchpads. If you use SMARTRF studio you need to adjust the base frequency to 27mhz for the A110LR09A modules (26Mhz is the default) The Energia library includes a set of working values: https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/AIR430BoostUSAFCC/utility/A110LR09.c (it is a bit tedious to decypher). B
  9. For testing UART connected modules I modified the Energia "Examples->04.Communication->MultiSerial" to this bidirectional Serial Passthru program: /* Multple serial test Receives from the main serial port, sends to the others. Receives from serial port 1, sends to the main serial (Serial 0). The circuit: * Any serial device attached to Serial port 1 * Serial monitor open on Serial port 0: created 30 Dec. 2008 by Tom Igoe This example code is in the public domain. */ void setup() { // initialize both serial ports: Serial.begin(115200); Serial1.begin(115200); } uint8_t inByte; void loop() { // read from port 1, send to port 0: if (Serial1.available()) { inByte = Serial1.read(); Serial.write(inByte); } if (Serial.available()) { inByte = Serial.read(); Serial1.write(inByte); } } which makes the Launchpad a simple TTL-Serial converter, Serial is the USB port "/dev/ttyACM0" on my Linux box, Serial1 is the hardware pins 3 (RX) & 4(TX) The USB Serial connection on the MSP432 launchpad seems to be limited to 115200 baud max. Also, the launchpad will only output 3.3v and will be damaged by more than that coming in, is that compatible with your module? B
  10. BRey

    WiFiThing

    It worked when I posted. I updated the link with one that is working now. Also they have website listed on the kickstarter page. B
  11. BRey

    WiFiThing

    Introduced himself over here: http://forum.43oh.com/topic/9281-hello-from-wifithing-rapid-iot-creation/ But really didn't highlight that they are using Energia on both the Master and Remote devices. The Kickstarter page: https://www.kickstarter.com/projects/180874809/wifithing (Only 4 days left and few dollars short). Fraunchpad, boosterpack compatible, Anaren booster. Welcome! B
  12. BRey

    Pine A64

    I was excited about the Pine, but then I found this: http://forum.armbian.com/index.php/topic/491-need-help-on-pine-a64-15-64bit-quad-core-12ghz-single-board-computer/ It looks like a pretty good board, esp. as a headless server, but I want Linux support. There has been noise on other sites about the Allwinner A64, but I decided to wait until a quality Linux is available for it. The Android based Remix PC uses the A64, Jive is getting press and looks interesting: http://www.jide.com/en/mini B
  13. BRey

    Energia 17 is available!

    I can only find reference to MT support for the MSP432 on Energia.nu, what are the 5 other boards? OK, I found some references here on 43oh to CC3200 and CC2650. Are there any plans for the Tiva based boards?
  14. BRey

    Two SPI 2 for nrf24l01 and 3 for enc28j60 bad function

    I think the UIPEthernet/enc28j60 library is very time sensitive and the wireless module interrupt processing causes problems. I think the LP Connected Ethernet is DMA driven and probably more interrupt friendly.
  15. I haven't worked with the Radiohead library, but when I have ported Arduino code to Energia I have found interrupts and AVR specific code to be the biggest problems. The interrupt code is usually easy to address-Arduino has a pretty simple interrupt model: dedicated interrupt pins that can be linked to the ISRs (attachInterrupt() sets everything up) . The Energia model is total flexibility: almost any pin can be linked to an ISR. To port, you have to define the Energia pin that the interrupt will be connected to; use pinMode() to set it for input and then link the pin to your ISR with attachInterrupt(). If you have AVR specific code (direct register references usually) you have to rewrite it since the registers don't exist in the MSP or Tiva processors. Often, the direct access is used in the Arduino code for performance or timing issues so the porting is problematic. HTH B
×