Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Rickta59

  1. Post a picture of your board so we can see it. @@yyrkoon
  2. If the target board actually works, wouldn't it have had those already?
  3. Why don't you just expose the SBW pins and gnd on your board? I don't see the problem? Or you could just solder 3 wires directly to the chip and connect those to the launchpad SBW?
  4. TIMERA can take a variety of clock sources. Normally people use the internal SMCLK or ACLK but you can also feed it an external clock. See the code below even though it is written for an msp430g2553 (TimerA are mostly the same on all chips) Take note how the clock source is set: TACTL = TASSEL_0; http://forum.43oh.com/topic/1913-frequency-counter-using-launchpad-nokia-5110-lcd/ -rick
  5. Why don't you just use the DS3232 as the TimerA clock source?
  6. That fails in a different way: untar-unzip-download: [get] Getting: http://energia.nu/files/msp430-gcc-4.6.3-i386-x86_64-pc-linux-gnu.tar.bz2 [get] To: /mnt/vbox/shared/github/EnergiaNG/build/linux/msp430-gcc-4.6.3-i386-x86_64-pc-linux-gnu.tar.bz2 [get] Error opening connection java.io.FileNotFoundException: http://energia.nu/files/msp430-gcc-4.6.3-i386-x86_64-pc-linux-gnu.tar.bz2 [get] Error opening connection java.io.FileNotFoundException: http://energia.nu/files/msp430-gcc-4.6.3-i386-x86_64-pc-linux-gnu.tar.bz2 [get] Error opening connection java.io.FileNotF
  7. Have the build instructions changed? I tried this: $ git clone --recursive https://github.com/robertinant/EnergiaNG.git $ git submodule update --init --recursive $ cd EnergiaNG/build $ ant clean build failed here: .... untar-unzip-download: [get] Getting: https://github.com/arduino-libraries/Firmata/archive/2.5.2.zip [get] To: /mnt/vbox/shared/github/EnergiaNG/build/Firmata-2.5.2.zip [get] https://github.com/arduino-libraries/Firmata/archive/2.5.2.zip moved to https://codeload.github.com/arduino-libraries/Firmata/zip/2.5.2 [get] ......................................
  8. When are you going to spin another build with the fixes so far?
  9. The most glaring problem with using Energia with an msp430f5529 is that it uses msp430-gcc version 4.6.3. That version of gcc doesn't really allow you to take full advantage of the larger flash size. You are limited to using the flash memory in the address range less than 64k (16 bit mode). For the msp430f5529 that means you only get access to 48000 bytes of the 128k of flash available. If you use CCS you can use 20bit compiler mode and access all the flash. -rick See my issue about another board. The problem is also applicable to the msp430f5529: https://github.com/energia/Ene
  10. http://forum.43oh.com/topic/1220-saving-flash-space-by-making-use-of-infomem/?p=54004
  11. It doesn't appear on the pin map so you will have to dig around yourself. http://energia.nu/wordpress/wp-content/uploads/2015/03/MSP432-LaunchPad-%E2%80%94-Pins-Maps.jpg Maybe @@Rei Vilo knows
  12. cdecl.org is your friend here: http://cdecl.ridiculousfish.com/?q=const+char+*+const+command%5B%5D
  13. It looks like all that stuff is now hidden in a binary blob that doesn't come with source code. $ arm-none-eabi-nm -C hardware/emt/ti/runtime/wiring/msp432/lib/wiring_msp432.m4fg.lib | grep Serial HardwareSerial.om4fg: 00000000 t _GLOBAL__sub_I__ZN14HardwareSerialC2Ev 00000000 B Serial 00000000 B Serial1 00000000 T HardwareSerial::readCallback(UART_Config*, void*, unsigned int) 00000000 T HardwareSerial::end() 00000000 T HardwareSerial::init(unsigned long) 00000000 T HardwareSerial::peek() 00000000 T HardwareSerial::read() 00000000 T HardwareSerial::begin(unsigned long) 00000000 T HardwareS
  14. Seems like it supports at least Serial and Serial1. This compiles: /* 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(9600); Serial1.begin(9600); } void loop() { // read from port 1, send to port 0: if (Serial1.available
  15. The msp432 has up to 4 hardware UARTS, I don't know what Energia supports. Do you really need SoftwareSerial?
  16. It seems like you are trying to use this AVR only version ... https://github.com/battosai30/Energia/blob/c4df0d2b7974540b39bb61d4a90ba5d0add8194b/libraries/SoftwareSerial/SoftwareSerial.cpp#L181 This isn't going to work for any TI chip.
  17. I think this is still broken for the g2452 and g2231 https://github.com/energia/Energia/issues/874 http://forum.43oh.com/topic/9562-please-help-serial-port-issue/?p=72207 -rick
  18. I modified the example to show what I meant.
  19. you need the __delay_cycle() to let the pins settle so they are quiet. I wasn't doing anything to try and modify the timing. I'm using: while (ADC10CTL1 & ADC10BUSY) { // sleep and wait for completion asm("nop"); } To wait for the adc sample to finish. The better way to do it would be to have an ADC ISR wake up the chip. Just start the ADC capture and then sleep. Have the ISR do an LPM_EXIT. When it comes out of sleep just read the sample. Of course you would have to disable the TIMER while waiting for the ADC to finish.
  20. Here is a fabooh version of your code: https://github.com/RickKimball/fabooh/tree/master/examples/serial/feed_the_dog Note: I set this up so you can try all the different serial implementations. Because you said your uart was broken I compiled it for software only right now. You can change that be modifying the #if that selects which serial implementation It only needs 466 bytes. /** * feed_the_dog.cpp - an msp430g2xxx specific watchdog timer example * * msp430-size msp430g2553in20_release/feed_the_dog.elf * text data bss dec hex filename * 432 0
  21. To be honest I don't think it is that useful anymore. TI has little interest in the smaller chips. Their approach is go big or go home. Their recent marketing approach seem to be, let us force feed TI-RTOS to everyone. People using the smaller chips probably already have their favorite mode of coding. I threw this code out there to show what is possible and also to give some context to how you arrived at your simple and small implementation. Fabooh has had little interest so it isn't worth documenting other than providing the example folder. That is enough for people interested in trying
  22. His implementation is very simple but not so flexible. You can find a more complete c++ template implementation here: https://github.com/RickKimball/fabooh/blob/master/examples/serial/ascii_table_iostream/ascii_table_iostream.cpp - ascii table dump using operator insertion or standard function calls https://github.com/RickKimball/fabooh/tree/master/examples/math .. sine table prints using cordic, fixed math and floats fabooh support eusci, usci, software only (on any pin) with multiple instances and finally timer based serial.
  23. Last time I checked Energia repurposes the WDT for its own purposes. * It has been a while though so who knows *
  24. They made the decision early on. It seems at some point they actually told people instead of keeping it quiet. I guess they hadn't decided. Back in 2012 it was a miracle to even have linux support. At that time all they said was: "The LaunchPad is not supported on Linux at this time." To me the implication was they might in the future. https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/171173/688729#688729 I can't find the thread where they finally said they would never support it but they did say it at one point. [edit] I found the post .. from 2015 [/edit
  • Create New...