Search the Community
Showing results for tags 'eLua'.
Found 2 results
I am porting eLua to the Atmel SAM3/4 processors, in particular the SAM3X8E used in the Arduino Due. Port is running, with support for the serial console and several devices. PIO - works UART - works, except for buffering (xmodem does not work on serial console). Hardware flow control written, but not tested. USB CDC - works, except for buffering (although attached build does not use it). Timers - works PWM - works, but has some issues (sometimes the drivers return wrong values to eLua, but it does work). Have not tested for accuracy of frequency or duty cycle. So far just uses the hardware pwms, use of timers as PWM (e.g., so can use more pins for PWM) is in the works. spi - written, but not tested (if you try it out, let me know). rand (generate numbers at random) - works rtc - works (but not sure about using external crystal) i2c (twi) - not finished adc - not finished can - not finished cnt (counter) - not finished dac - not written Source code available on github - https://github.com/ecdr/eluain the SAM branch To talk to the console, use the programming port on the Arduino Due Usual settings 115200 baud, N, 8, 1You may need to set your terminal program to send a CR and LF as end of line. You can program the attached bin file to an Arduino Due using the Arduino boot loader (bossac).e.g., if the programming port is connected as COM8 (on windows) bossac.exe -Ufalse -pCOM8 -e -w -v -b elua_lua_arduinodue.bin -R Thank you to Sergio at simplemachines.it For my eLua port for the Stellaris launchpad, see http://forum.stellarisiti.com/topic/552-elua-for-stellaris-launchpad elua_lua_arduinodue.zip
I am working on porting eLua to the Stellaris and Tiva Launchpad. eLua is a version of Lua (a scripting language) for microcontrollers. Main eLua web site http://www.eluaproject.net/ eLua works as an interpreter running on the virtual serial port. eLua already runs on several of the Stellaris LM3 development kits. Source code for my port is available on Github https://github.com/ecdr/elua in the LM4 branch Current status: It compiles (using codesourcery) and runs (i.e. hello world and blinking led work). Undergoing testing. It is integer only (may not be enough memory for floating point). Several peripherals are turned off (no CAN, no I2C). [Edit: CAN now turned on]