eLua works on Stellaris Launchpad - was Re: eLua for the TI Stellaris Launchpad?

classic Classic list List threaded Threaded
4 messages Options
scdr scdr
Reply | Threaded
Open this post in threaded view
|

eLua works on Stellaris Launchpad - was Re: eLua for the TI Stellaris Launchpad?


Got eLua running on the Stellaris Launchpad

The code is up in the LM4 branch on my github repository.  
https://github.com/ecdr/elua

Build it without floating point support.
scons target=lualong cpu=LM4F120 toolchain=codesourcery prog
 
I have only done a little testing so far (hello world, got it to blink the LEDs).
It ran out of memory when trying to run the life example.
Some devices are turned off at the moment (no ADC, no CAN).

Also thank you to Andres Molina-Markham



> ----- Original Message -----
> From: Andres Molina-Markham
> Sent: 02/21/13 08:06 AM
> To: eLua Users and Development List (www.eluaproject.net)
> Subject: Re: [eLua-dev] eLua for the TI Stellaris Launchpad?
>
> Thanks scdr,
>
> I added an entry to the SConstruct file in order to use scons and fixed some typos in the building python script (changes at https://github.com/am-m/elua). However, it seems that there is at least one file missing in the driver lib folder:
>
> After running:
>
> $ scons cpu=LM4F120 toolchain=codesourcery
>
> I get the following compilation error (I am also attaching the full output to this email):
>
> src/platform/lm3s/usblib/usbmode.c:35:37: fatal error: driverlib/rtos_bindings.h: No such file or directory
>
> I compiled on:
> Linux ubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux
>
> Cheers,
>
> Andres
>
>
>
> On Feb 20, 2013, at 8:37 PM, [hidden email] wrote:
>
> >
> > My work on adapting eLua to the Stellaris Launchpad (LM4F120) is on github.
> >
> > https://github.com/ecdr/elua
> >
> > Almost all changes so far are in the lm3s platform directory.
> > Updated the Stellarisware and USB libraries to latest versions (friendlier license and LM4F compatible)
> > Added information about Stellaris Launchpad to the platform files
> > Tweaked the build files a bit to (hopefully) add the LM4F120 (Stellaris Launchpad)
> >
> > This is very much a rough draft
> >
> > I have run it through a compiler (not gcc), and it did compile.
> > Have not tried to link it.
> > Have not tried to run it.
> > Have not tried to build it with the regular build system.
> >
> > Some of the changes I made in order to regularize handling of pin MUXing may break the versions for some
> > of the other LM3S.
> >
> > So input, testing, suggestions, patches, etc. welcome, but use at your own risk.
> >
> > Have not done anything about reducing memory footprint.
> >
> >
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: eLua works on Stellaris Launchpad - was Re: eLua for the TI Stellaris Launchpad?

Very cool, thanks !!!!!!!!

Dado


On Mon, Mar 18, 2013 at 9:59 PM, <[hidden email]> wrote:

Got eLua running on the Stellaris Launchpad

The code is up in the LM4 branch on my github repository.  
https://github.com/ecdr/elua

Build it without floating point support.
scons target=lualong cpu=LM4F120 toolchain=codesourcery prog

I have only done a little testing so far (hello world, got it to blink the LEDs).
It ran out of memory when trying to run the life example.
Some devices are turned off at the moment (no ADC, no CAN).

Also thank you to Andres Molina-Markham



> ----- Original Message -----
> From: Andres Molina-Markham
> Sent: 02/21/13 08:06 AM
> To: eLua Users and Development List (www.eluaproject.net)
> Subject: Re: [eLua-dev] eLua for the TI Stellaris Launchpad?
>
> Thanks scdr,
>
> I added an entry to the SConstruct file in order to use scons and fixed some typos in the building python script (changes at https://github.com/am-m/elua). However, it seems that there is at least one file missing in the driver lib folder:
>
> After running:
>
> $ scons cpu=LM4F120 toolchain=codesourcery
>
> I get the following compilation error (I am also attaching the full output to this email):
>
> src/platform/lm3s/usblib/usbmode.c:35:37: fatal error: driverlib/rtos_bindings.h: No such file or directory
>
> I compiled on:
> Linux ubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux
>
> Cheers,
>
> Andres
>
>
>
> On Feb 20, 2013, at 8:37 PM, [hidden email] wrote:
>
> >
> > My work on adapting eLua to the Stellaris Launchpad (LM4F120) is on github.
> >
> > https://github.com/ecdr/elua
> >
> > Almost all changes so far are in the lm3s platform directory.
> > Updated the Stellarisware and USB libraries to latest versions (friendlier license and LM4F compatible)
> > Added information about Stellaris Launchpad to the platform files
> > Tweaked the build files a bit to (hopefully) add the LM4F120 (Stellaris Launchpad)
> >
> > This is very much a rough draft
> >
> > I have run it through a compiler (not gcc), and it did compile.
> > Have not tried to link it.
> > Have not tried to run it.
> > Have not tried to build it with the regular build system.
> >
> > Some of the changes I made in order to regularize handling of pin MUXing may break the versions for some
> > of the other LM3S.
> >
> > So input, testing, suggestions, patches, etc. welcome, but use at your own risk.
> >
> > Have not done anything about reducing memory footprint.
> >
> >
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Mauricio Henrique Bomfim Mauricio Henrique Bomfim
Reply | Threaded
Open this post in threaded view
|

Re: eLua works on Stellaris Launchpad - was Re: eLua for the TI Stellaris Launchpad?

In reply to this post by scdr
On Mon, Mar 18, 2013 at 9:59 PM, <[hidden email]> wrote:

Got eLua running on the Stellaris Launchpad

The code is up in the LM4 branch on my github repository.  
https://github.com/ecdr/elua

Great! Many thanks for the effort. 

I've tried to build your code, but I received the error below:

$ scons target=lualong cpu=LM4F120 toolchain=codesourcery prog
scons: Reading SConscript files ...

*********************************
Compiling eLua ...
CPU:             LM4F120
Board:           EK-LM4F120
Platform:        lm3s
Allocator:       newlib
Boot Mode:       standard
Target:          lualong
Toolchain:       codesourcery
ROMFS mode:      verbatim
Version:         dev-8e300a4
*********************************

Building ROM File System...
Done, total size is 1 bytes

scons: done reading SConscript files.
scons: Building targets ...
arm-none-eabi-gcc -o src/main.o -c -mcpu=cortex-m4 -mthumb -mlittle-endian -Os -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-strict-aliasing -Wall -DUSE_GIT_REVISION -DELUA_BOARD=EK-LM4F120 -DELUA_PLATFORM=LM3S -DELUA_CPU=LM4F120 -D__BUFSIZ__=128 -DELUA_CPU_LM4F120 -DELUA_BOARD_EKLM4F120 -DELUA_PLATFORM_LM3S -DLUA_NUMBER_INTEGRAL -DELUA_ENDIAN_LITTLE -DLUA_OPTIMIZE_MEMORY=2 -DFORLM4F120 -Dgcc -DCORTEX_M4 -Iinc -Iinc/newlib -Iinc/remotefs -Isrc/platform -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -Isrc/fatfs -Isrc/platform/lm3s/inc -Isrc/platform/lm3s/driverlib -Isrc/platform/lm3s/usblib -Isrc/platform/lm3s/usblib/device src/main.c

In file included from src/main.c:26:0:
inc/semifs.h:22:3: error: unknown type name 'uint8_t'
inc/semifs.h:23:3: error: unknown type name 'uint8_t'
inc/semifs.h:24:3: error: unknown type name 'uint8_t'
inc/semifs.h:25:3: error: unknown type name 'uint8_t'
inc/semifs.h:26:3: error: unknown type name 'uint8_t'
inc/semifs.h:27:3: error: unknown type name 'uint16_t'
inc/semifs.h:32:3: error: unknown type name 'uint32_t'
inc/semifs.h:33:3: error: unknown type name 'uint16_t'
scons: *** [src/main.o] Error 1
scons: building terminated because of errors.

Could you help me? 

Just for checking, have you pushed your last changes? I'm asking because your last commit on github was 21 days ago.

Thanks, again.

[]s

Mauricio

 


Build it without floating point support.
scons target=lualong cpu=LM4F120 toolchain=codesourcery prog

I have only done a little testing so far (hello world, got it to blink the LEDs).
It ran out of memory when trying to run the life example.
Some devices are turned off at the moment (no ADC, no CAN).

Also thank you to Andres Molina-Markham



> ----- Original Message -----
> From: Andres Molina-Markham
> Sent: 02/21/13 08:06 AM
> To: eLua Users and Development List (www.eluaproject.net)
> Subject: Re: [eLua-dev] eLua for the TI Stellaris Launchpad?
>
> Thanks scdr,
>
> I added an entry to the SConstruct file in order to use scons and fixed some typos in the building python script (changes at https://github.com/am-m/elua). However, it seems that there is at least one file missing in the driver lib folder:
>
> After running:
>
> $ scons cpu=LM4F120 toolchain=codesourcery
>
> I get the following compilation error (I am also attaching the full output to this email):
>
> src/platform/lm3s/usblib/usbmode.c:35:37: fatal error: driverlib/rtos_bindings.h: No such file or directory
>
> I compiled on:
> Linux ubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux
>
> Cheers,
>
> Andres
>
>
>
> On Feb 20, 2013, at 8:37 PM, [hidden email] wrote:
>
> >
> > My work on adapting eLua to the Stellaris Launchpad (LM4F120) is on github.
> >
> > https://github.com/ecdr/elua
> >
> > Almost all changes so far are in the lm3s platform directory.
> > Updated the Stellarisware and USB libraries to latest versions (friendlier license and LM4F compatible)
> > Added information about Stellaris Launchpad to the platform files
> > Tweaked the build files a bit to (hopefully) add the LM4F120 (Stellaris Launchpad)
> >
> > This is very much a rough draft
> >
> > I have run it through a compiler (not gcc), and it did compile.
> > Have not tried to link it.
> > Have not tried to run it.
> > Have not tried to build it with the regular build system.
> >
> > Some of the changes I made in order to regularize handling of pin MUXing may break the versions for some
> > of the other LM3S.
> >
> > So input, testing, suggestions, patches, etc. welcome, but use at your own risk.
> >
> > Have not done anything about reducing memory footprint.
> >
> >
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Mauricio Henrique Bomfim Mauricio Henrique Bomfim
Reply | Threaded
Open this post in threaded view
|

Re: eLua works on Stellaris Launchpad - was Re: eLua for the TI Stellaris Launchpad?



On Tue, Mar 19, 2013 at 6:27 AM, Mauricio Henrique Bomfim <[hidden email]> wrote:
On Mon, Mar 18, 2013 at 9:59 PM, <[hidden email]> wrote:

Got eLua running on the Stellaris Launchpad

The code is up in the LM4 branch on my github repository.  
https://github.com/ecdr/elua

Great! Many thanks for the effort. 

I've tried to build your code, but I received the error below:

$ scons target=lualong cpu=LM4F120 toolchain=codesourcery prog
scons: Reading SConscript files ...

*********************************
Compiling eLua ...
CPU:             LM4F120
Board:           EK-LM4F120
Platform:        lm3s
Allocator:       newlib
Boot Mode:       standard
Target:          lualong
Toolchain:       codesourcery
ROMFS mode:      verbatim
Version:         dev-8e300a4
*********************************

Building ROM File System...
Done, total size is 1 bytes

scons: done reading SConscript files.
scons: Building targets ...
arm-none-eabi-gcc -o src/main.o -c -mcpu=cortex-m4 -mthumb -mlittle-endian -Os -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-strict-aliasing -Wall -DUSE_GIT_REVISION -DELUA_BOARD=EK-LM4F120 -DELUA_PLATFORM=LM3S -DELUA_CPU=LM4F120 -D__BUFSIZ__=128 -DELUA_CPU_LM4F120 -DELUA_BOARD_EKLM4F120 -DELUA_PLATFORM_LM3S -DLUA_NUMBER_INTEGRAL -DELUA_ENDIAN_LITTLE -DLUA_OPTIMIZE_MEMORY=2 -DFORLM4F120 -Dgcc -DCORTEX_M4 -Iinc -Iinc/newlib -Iinc/remotefs -Isrc/platform -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -Isrc/fatfs -Isrc/platform/lm3s/inc -Isrc/platform/lm3s/driverlib -Isrc/platform/lm3s/usblib -Isrc/platform/lm3s/usblib/device src/main.c

In file included from src/main.c:26:0:
inc/semifs.h:22:3: error: unknown type name 'uint8_t'
inc/semifs.h:23:3: error: unknown type name 'uint8_t'
inc/semifs.h:24:3: error: unknown type name 'uint8_t'
inc/semifs.h:25:3: error: unknown type name 'uint8_t'
inc/semifs.h:26:3: error: unknown type name 'uint8_t'
inc/semifs.h:27:3: error: unknown type name 'uint16_t'
inc/semifs.h:32:3: error: unknown type name 'uint32_t'
inc/semifs.h:33:3: error: unknown type name 'uint16_t'
scons: *** [src/main.o] Error 1
scons: building terminated because of errors.

Could you help me? 

Just for checking, have you pushed your last changes? I'm asking because your last commit on github was 21 days ago.

Never mind. I just realized that I forgot to checkout the LM4 branch. It's working as well.

Sorry for the noise.

[]s

Mauricio
 

Thanks, again.

[]s

Mauricio

 


Build it without floating point support.
scons target=lualong cpu=LM4F120 toolchain=codesourcery prog

I have only done a little testing so far (hello world, got it to blink the LEDs).
It ran out of memory when trying to run the life example.
Some devices are turned off at the moment (no ADC, no CAN).

Also thank you to Andres Molina-Markham



> ----- Original Message -----
> From: Andres Molina-Markham
> Sent: 02/21/13 08:06 AM
> To: eLua Users and Development List (www.eluaproject.net)
> Subject: Re: [eLua-dev] eLua for the TI Stellaris Launchpad?
>
> Thanks scdr,
>
> I added an entry to the SConstruct file in order to use scons and fixed some typos in the building python script (changes at https://github.com/am-m/elua). However, it seems that there is at least one file missing in the driver lib folder:
>
> After running:
>
> $ scons cpu=LM4F120 toolchain=codesourcery
>
> I get the following compilation error (I am also attaching the full output to this email):
>
> src/platform/lm3s/usblib/usbmode.c:35:37: fatal error: driverlib/rtos_bindings.h: No such file or directory
>
> I compiled on:
> Linux ubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux
>
> Cheers,
>
> Andres
>
>
>
> On Feb 20, 2013, at 8:37 PM, [hidden email] wrote:
>
> >
> > My work on adapting eLua to the Stellaris Launchpad (LM4F120) is on github.
> >
> > https://github.com/ecdr/elua
> >
> > Almost all changes so far are in the lm3s platform directory.
> > Updated the Stellarisware and USB libraries to latest versions (friendlier license and LM4F compatible)
> > Added information about Stellaris Launchpad to the platform files
> > Tweaked the build files a bit to (hopefully) add the LM4F120 (Stellaris Launchpad)
> >
> > This is very much a rough draft
> >
> > I have run it through a compiler (not gcc), and it did compile.
> > Have not tried to link it.
> > Have not tried to run it.
> > Have not tried to build it with the regular build system.
> >
> > Some of the changes I made in order to regularize handling of pin MUXing may break the versions for some
> > of the other LM3S.
> >
> > So input, testing, suggestions, patches, etc. welcome, but use at your own risk.
> >
> > Have not done anything about reducing memory footprint.
> >
> >
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev