I actually have an LM3S9B92 around as well, and I thought I had added support for CAN on this platform, but I don't currently see it in SVN. I'll look around this evening to see if I either have the code lurking somewhere that didn't get merged, or I will add an implementation. I don't think it should take me more than a half an hour to implement it if I still have enough transceivers around to do some testing. The CAN module only has 3 functions and most of the heavy lifting is done in hardware :-)
On Mon, Nov 22, 2010 at 4:45 PM, Dado Sutter
<[hidden email]> wrote:
On Mon, Nov 22, 2010 at 16:18, Owen Woollaston
<[hidden email]> wrote:
Thanks Bogdan
I doubt it. How do I do that? Sorry - this is probably really basic, but I have googled with no luck.
I'm afraid CAN is not yet available for LM3Ss :( as James (who has implemented CAN) only has an LM3S6965.
It works well on STM32 though.
And yes, we expect to extend it to other platforms too. (as long as we can get our hands to some kits ....)
Best
Dado
Owen Woollaston PMP CSMLean Systems Ltd.
On 23 November 2010 00:00,
<[hidden email]> wrote:
Send eLua-dev mailing list submissions to
[hidden email]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.berlios.de/mailman/listinfo/elua-dev
or, via email, send a message with subject or body 'help' to
[hidden email]
You can reach the person managing the list at
[hidden email]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of eLua-dev digest..."
Today's Topics:
1. require('can') fails (Owen Woollaston)
2. Re: require('can') fails (Bogdan Marinescu)
----------------------------------------------------------------------
Message: 1
Date: Mon, 22 Nov 2010 23:42:22 +1300
From: Owen Woollaston <[hidden email]>
To: [hidden email]
Subject: [eLua-dev] require('can') fails
Message-ID:
<[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"
Hi - can someone tell me what I'm missing? I've spent a few hours poking
around in the source (mostly platform) and cant do a require('can'). I'm
using:
scons board=ek-lm3s8962 toolchain=codesourcery prog
All builds and downloads fine. Added an X after PUC-Rio to test for idiot
factor. This is what I get:
eLua trunk pos0.7 Copyright (C) 2007-2010 www.eluaproject.org
eLua# lua
Press CTRL+Z to exit Lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio X
> require ('can')
stdin:1: module 'can' not found:
no field package.preload['can']
no file '/mmc/can.lua'
no file '/mmc/can.lc'
no file '/rom/can.lua'
no file '/rom/can.lc'
no file './can.so'
no file '/usr/local/lib/lua/5.1/can.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
Similar result with eLua 0.7 release.
Thanks, Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/elua-dev/attachments/20101122/4b376a6e/attachment-0001.html>
------------------------------
Message: 2
Date: Mon, 22 Nov 2010 12:45:46 +0200
From: Bogdan Marinescu <[hidden email]>
To: "eLua Users and Development List (www.eluaproject.net)"
<[hidden email]>
Subject: Re: [eLua-dev] require('can') fails
Message-ID:
<AANLkTi=Dpgca7tqOw6odaEH38p3tFpejov=+3++OWts=@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
On Mon, Nov 22, 2010 at 12:42 PM, Owen Woollaston
<[hidden email]> wrote:
> Hi - can someone tell me what I'm missing? ?I've spent a few hours poking
> around in the source (mostly platform) and cant do a require('can'). ?I'm
> using:
> scons board=ek-lm3s8962 toolchain=codesourcery prog
> All builds and downloads fine. ?Added an X after PUC-Rio to test for idiot
> factor. ?This is what I get:
> eLua trunk pos0.7 ?Copyright (C) 2007-2010 www.eluaproject.org
> eLua# lua
> Press CTRL+Z to exit Lua
> Lua 5.1.4 ?Copyright (C) 1994-2008 Lua.org, PUC-Rio X
>> require ('can')
> stdin:1: module 'can' not found:
> ?? ? ? ?no field package.preload['can']
> ?? ? ? ?no file '/mmc/can.lua'
> ?? ? ? ?no file '/mmc/can.lc'
> ?? ? ? ?no file '/rom/can.lua'
> ?? ? ? ?no file '/rom/can.lc'
> ?? ? ? ?no file './can.so'
> ?? ? ? ?no file '/usr/local/lib/lua/5.1/can.so'
> ?? ? ? ?no file '/usr/local/lib/lua/5.1/loadall.so'
> stack traceback:
> ?? ? ? ?[C]: in function 'require'
> ?? ? ? ?stdin:1: in main chunk
> ?? ? ? ?[C]: ?
> Similar result with eLua 0.7 release.
Currently eLua doesn't have binary modules support, and since CAN is a
binary (C code) module you need to enable it at build time, then you
can use it directly (without 'require'). Is CAN support enabled in
your build?
Best,
Bogdan
------------------------------
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
End of eLua-dev Digest, Vol 28, Issue 11
****************************************
_______________________________________________
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
--
James Snyder
Biomedical Engineering
Northwestern University
[hidden email]PGP:
http://fanplastic.org/key.txt
Phone: (847) 448-0386
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev