Suggested boards for running uLisp?


#8

To compile under linux I just brutally ripped out all the arduino-specific code (I2C etc.), changed a few things like Serial.print to printf, strcpy_p to strcpy, etc. plus had to move a few declarations around. There are still a ton of compiler warning messages that I’ll try to look at, and the resulting binary exits with stack overflow as soon as I type anything to it. So I’ll try to fix it, and maybe parametrize the types to use specific word sizes like int16_t instead of int, etc. I know lots of ARM boards support the arduino api now, so it would be nice to have a version that works on both avr and arm.

The 16-bit MSP430 is another interesting possible target because of the cheap Launchpad boards, but it doesn’t implement the Arduino api that I know of.

Added: it looks like there are very cheap Arduino Mega (2560) clones available on places like Ali Express, making the Teensy++ somewhat less attractive unless the small size is needed.


#9

Yes; see the ones I’ve listed here:

http://www.ulisp.com/show?1D1S


#10

Here’s another cute little board: https://tinycircuits.com/collections/all/products/tinylily-mini-processor

It uses an Atmega328 and is a circular board just 14mm in diameter!


#11

It should definitely work on that.


#12

Would it be possible to put the source on github/bitbucket or something like that?
I’ve started to adapt ulisp for ARM (Adafruit Feather) but it feels a bit silly to do this without any chance of upstreaming the changes. (I plan to keep a single source that works for both archs)


#13

I’ve set up a repository here:

I look forward to your feedback!


#14

Hi there to all!

I think that MSP430 could be a good choice, using the Processing environment called Energia [http://energia.nu/], that is almost identical to Arduino IDE.
Probably it would be possible to recompile the whole thing on it with the necessary adjustments (I haven’t the deep knowledge that is mandatory about MSP430 chips to do this).
So, just a suggestion…


#15

Good suggestion - I’ll look into it.


#16

I’m looking forward to know something about it!
In the meantime, I’m currently using ulisp with my students on four old Arduino Diecimila (updated with 328) and two MEGA 2560. Everything is OK!
But my Lisp is fairly rusty, I tried to use (setq a 5) to produce a local variable, but it doesn’t work…


#17

Do you mean a global variable? Use defvar - see the language reference for more information.


#18

No, I mean a local variable: I yet used defvar to create a global variable, and everything is OK,but I liked to define a local one, and probably I don’t remember basic Lisp syntax correctly: sorry…I remebered (for that use) setq (that seems to work in CLISP 2.49).


#19

You can use let or let* to create and initialise local variables, then setq to change them.


#20

At the TI_Website I saw another interesting MSP430 Launchkit: MSP430FR5994 LaunchPad Development Kit
It has 256kB FRAM, 8kB RAM and a SD card slot. With this board really large project could be done; the images could be saved at the sd card freeing space for heap and stack (there may be 192k of free space for lisp programs giving ~40.000 cons cells).
It should be possible to write a simple file editor (maybe written in lisp?) and lisp-source-files could be saved on sd.
I think this would be a very good lisp-platform and with a keyboard and a graphic display it would be a great lisp-computer.
What do you think?


#21

Good suggestion - I didn’t know about the MSP430FR5994 LaunchPad.

One question is whether it can be supported by the Energia IDE. I’ll investigate.


#22

I think it is not supported by Energia-IDE, but maybe it is easy to add support for this board (add it to boards.txt; with arduino-ide this is often possible). I’ll try this as soon I have the board.
Maybe (I didn’t try) it is possible to import the project to TI’s ccs (at least there is a function to do this). Anyway, I haven’t tried this either…


#23

Let me know when you’ve got your board and tried a few experiments. Thanks!


#24

Sorry, but just adding the board to boards.txt is not enough. Trying to import ulisp to ccs leads to a compile error in ccs; for now I don’t know what’s the reason for this. I’ll try a few simpler examples to get more familiar with both systems.
It seems that the energia team plans to support the FR5994lp with their next release – I just didn’t find a release date for this…


#25

OK, thanks for the update.


#27

Have now added support for the FR5994 LaunchPad:

MSP430 FR5994 LaunchPad

SD card support should work when Energia adds an SD Card library to the core.


#28

What do you think about this board from T.I.? It’s seems to me inexpensive and very performing.

http://www.ti.com/tool/ek-tm4c1294xl?keyMatch=ek-tm4c1294xl&tisearch=Search-EN-Everything

I know that I’m boring, but when do you will release uLisp 2.2 for the ESP8266?

Best regards

Giancarlo