Jump to content
43oh

johnsondavies

Members
  • Content Count

    25
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by johnsondavies

  1. My Lisp interpreter for microcontrollers, uLisp, now supports the MSP430 FR6989 LaunchPad board, with the ability to write text to the LCD display from Lisp programs: For more information see uLisp for the MSP430 FR6989 LaunchPad.
  2. Thank you - I'll try it. It would be great if it could be made a standard part of the Arduino core, like on other platforms.
  3. Checking back through my notes I've realised that I never had my program working with an SD Card library, so you can close this thread. However, it would be very useful if Arduino-compatible SD card support could be added to the Arduino core for the MSP430 range at some stage.
  4. I was developing a program for the EXP430FR5994LP in June 2018, using version 1.0.3 of the Energia IDE, and I'm pretty sure I was successfully able to read/write an SD card. I recently upgraded my installation to the latest version, 1.0.5, and now when I try and compile the same program I get the error: SD.h: No such file or directory referring to the line: #include <SD.h> Has the SD card support been removed from the Energia core, or am I remembering incorrectly?
  5. 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.
  6. 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
  7. 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!
  8. 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.
  9. 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?
  10. 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?
  11. That's great news! I'll get myself a board so I'm ready for it.
  12. 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.
  13. Thanks. So there's no way I can use the watchdog in an Energia project (and use delay() etc)?
  14. 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() { Seri
  15. 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
  16. 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 wh
  17. 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.
  18. 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
  19. 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
  20. 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: http://rcarduino.blogspot.co.uk/2012/09/how-to-view-arduino-assembly.html Thank you, David
  21. 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 http://www.ulisp.com/.
×
×
  • Create New...