Jump to content

johnsondavies

Members
  • Content count

    19
  • Joined

  • Last visited

  • Days Won

    3

johnsondavies last won the day on April 20 2017

johnsondavies had the most liked content!

About johnsondavies

  • Rank
    Member

Contact Methods

  • Website URL
    www.technoblogy.com
  1. 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!
  2. 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.
  3. 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?
  4. Energia support for MSP430FR5994 LaunchPad?

    Thanks! I'll try it. David
  5. 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?
  6. Energia support for MSP430FR5994 LaunchPad?

    That's great news! I'll get myself a board so I'm ready for it.
  7. 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.
  8. Compiler warnings when using pgm_read_word()

    That's really useful - thank you.
  9. Help getting watchdog to work

    Thanks. So there's no way I can use the watchdog in an Energia project (and use delay() etc)?
  10. 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.
  11. 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?
  12. 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!
  13. 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.
  14. Installing MSP432 broke MSP430

    Thank you for your reply. The sketch is here: https://github.com/technoblogy/ulisp-msp430/blob/master/ulisp.ino There are several warnings, but the error when compiling for MSP430FR5969 is: Lisp102:442: error: return-statement with no value, in function returning 'boolean {aka unsigned char}' [-fpermissive] I have previously successfully uploaded and run this. (Note that I have also recently installed CCS7.1.0 in case this might have had an effect) Thank you, David
  15. Installing MSP432 broke MSP430

    I've been using Energia successfully (on Mac) with several programs and the MSP430FR5969 and MSP430F5529 LaunchPad boards for a couple of weeks now. Today I acquired an MSP432P401R LaunchPad and so installed the "Energia MSP432 boards by Energia" package from Boards Manager, version 3.8.0. After that all my MSP430 sources compile with large numbers of errors, and I can't get them to work. Is there some way I can undo the effect of installing the MSP432 update and get back to how things were before? I've tried downloading a fresh copy of the Energia application, and deleting the Energia15 folder in my Library folder, but I still get the errors and nothing works. Help!
×