Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


johnsondavies last won the day on April 20 2017

johnsondavies had the most liked content!

About johnsondavies

  • Rank

Contact Methods

  • Website URL

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. johnsondavies

    Is there an Energia-compatible SD library?

    Thanks - I've found those. Are there any plans to make an SD library part of the official Energia distribution? It would be especially useful for the MSP430FR5994 LaunchPad.
  2. I'm porting my compact Lisp interpreter, uLisp, to the MSP430FR5994 LaunchPad, and would like to provide SD card support. I've already got code working with AVR chips using the Arduino SD library. Is there a port of this to Energia, or something similar? Thanks, David
  3. johnsondavies

    Energia IDE fails with fatal error: MSpanList_Insert

    Thank you for that suggestion, and sorry I missed the earlier topic. The 1.3.21 version of arduino-builder you linked to didn't work for me, but I tried the latest version 1.3.25 from here: https://github.com/arduino/arduino-builder/releases (I copied the file arduino-builder into Energia.app/Contents/Java/ replacing the one that's already there.) That seems to work fine - thanks!
  4. johnsondavies

    Energia IDE fails with fatal error: MSpanList_Insert

    A bit more information: - The error occurs for the board MSP-EXP4305529LP, but seems to occur whatever board I have selected. - The error occurs for minimal sketches, eg Blink. - I think the last time it worked was before upgrading my Mac from El Capitan to High Sierra. - The Arduino IDE (version 1.8.5) works fine. I hope someone can help, as I am a bit stuck without the Energia IDE.
  5. I have a program that used to compile correctly under the Energia IDE, but it now gives the error: failed MSpanList_Insert 0x30d000 0x504f9a602be9 0x0 fatal error: MSpanList_Insert I'm running Energia 1.6.10E18 on Mac OS High Sierra 10.13.3, with version 1.0.3 of the Energia MSP430 boards. Any suggestions?
  6. johnsondavies

    Energia support for MSP430FR5994 LaunchPad?

    Thanks! I'll try it. David
  7. johnsondavies

    Energia support for MSP430FR5994 LaunchPad?

    Any progress on the MSP430FR5994 support in Energia? If it's a problem making it compatible with both msp430-elf-gcc and msp430-gcc, couldn't you release an initial version with reduced compatibility?
  8. johnsondavies

    Energia support for MSP430FR5994 LaunchPad?

    That's great news! I'll get myself a board so I'm ready for it.
  9. Are there any plans to add support to Energia for the new MSP430FR5994 LaunchPad? It has a really nice specification including 256 KB FRAM, 8 KB SRAM, a maths accelerator, and an on-board micro SD card. It looks like an ideal platform for my small Lisp interpreter, uLisp.
  10. johnsondavies

    Compiler warnings when using pgm_read_word()

    That's really useful - thank you.
  11. johnsondavies

    Help getting watchdog to work

    Thanks. So there's no way I can use the watchdog in an Energia project (and use delay() etc)?
  12. I am storing data in program memory using PROGMEM, and reading it using pgm_read_byte() and pgm_read_word(), to save RAM. However, the compiler gives warnings: In function 'int lookupnumber(int)': warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] I've read that it's not good practice to ignore these warnings, but I can't see how to eliminate them. A demonstration program is: const int numbers[] PROGMEM = { 2, 3, 5, 7, 11, 13, 17, 23 }; int lookupnumber (int i) { return pgm_read_word(&numbers[i]); } void setup() { Serial.begin(9600); } void loop() { Serial.println(lookupnumber(4)); for (;;); } Thank you.
  13. johnsondavies

    Help getting watchdog to work

    I am trying to set up a watchdog timer on the MSP430F5529 LaunchPad, and I can't seem to get it to work. My code is: void watchdogenable (int interval) { WDTCTL = WDTPW | WDTCNTCL | interval; } void watchdogreset () { WDTCTL = WDTPW | WDTCNTCL | (WDTCTL & 0x07); } void setup() { Serial.begin(9600); Serial.println("Start"); watchdogenable(1); } int count = 0; void loop() { Serial.println(count++); delay(1000); } It prints: Start 0 and then gets no further before being reset by the watchdog 8 seconds later. I would expect it to count up to 8. If I take out the delay() statement it seems to work properly. Any suggestions?
  14. johnsondavies

    Installing MSP432 broke MSP430

    I've figured out why I got confused: I'd been testing the same source file (uLisp Zero) on ATmega boards, under the Arduino IDE, and on MSP430 boards, under the Energia IDE. I have the Preferences set the same on both IDEs, in particular, Compiler warnings: All. On the Arduino IDE the source compiles fine with no errors or warnings. On Energia when you select a different board any source, even BareMinimum, compiles with about 60 warnings the first time you compile it, many of these trivial and relating to the core; for example: <command-line>:0:12: warning: missing whitespace after the macro name [enabled by default] Compiling the same source a second time seems to suppress these warnings, but my source file still gives some warnings related to "strict-aliasing rules", presumably due to differences between the C compilers on the two platforms. But it runs OK. I installed the Energia MSP432 boards by Energia" package from Boards Manager to try the same source on the MSP432P401R LaunchPad, and I think the reappearance of the warnings confused me, and I falsely attributed them to the newly installed package. I should have taken more care to figure out what was going on before posting on the forum, and thanks for your tolerance!
  15. johnsondavies

    Installing MSP432 broke MSP430

    I'm really sorry for wasting your time - I've worked out what the problem is and it's entirely my fault. Everything is working fine now.