• Content count

  • Joined

  • Last visited

  • Days Won


johnsondavies last won the day on April 20

johnsondavies had the most liked content!

About johnsondavies

  • Rank

Contact Methods

  • Website URL
  1. That's great news! I'll get myself a board so I'm ready for it.
  2. 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.
  3. That's really useful - thank you.
  4. Thanks. So there's no way I can use the watchdog in an Energia project (and use delay() etc)?
  5. 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.
  6. 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?
  7. 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!
  8. 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.
  9. Thank you for your reply. The sketch is here: 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
  10. 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!
  11. Great! I'll try that first.
  12. Thank you.
  13. Is there any documentation about how to view the assembler code for the object file that the Energia IDE produces? On the Arduino you can do it by copying a line from the verbose compiler output, editing it, and then running it from the command prompt: Thank you, David
  14. My compact Lisp interpreter, uLisp, now supports the MSP430F5529 and MSP430FR5969 LaunchPads. As well as supporting a core set of Lisp functions, uLisp includes Arduino/Energia extensions, making it ideal as a control language for the MSP430. For more information see