eLua on floss weekly, requested topics

classic Classic list List threaded Threaded
25 messages Options
12
Patrick-11 Patrick-11
Reply | Threaded
Open this post in threaded view
|

eLua on floss weekly, requested topics

I can't wait for James Snyder's interview on floss weekly. It looks like
the date was pushed back till April 7th.

Would it be a good idea to list topics that might be good to touch on?

I am trying to make my way around the eLua site but here are a few
things that are not obvious to this noob.

1)I have no background in C/assembly programming of microcontrollers, I
am not really understanding how pins are grouped into buses and how chip
features are used, more information for the utter beginner would be nice.

2)I know many chips will be different but what is the general hardware
that is needed for this, is everything done via Jtag?

3)Is this project at production level?

Thanks for reading-Patrick
_______________________________________________
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 on floss weekly, requested topics



On Tue, Mar 16, 2010 at 17:44, Patrick <[hidden email]> wrote:
I can't wait for James Snyder's interview on floss weekly. It looks like the date was pushed back till April 7th.

Would it be a good idea to list topics that might be good to touch on?

I am trying to make my way around the eLua site but here are a few things that are not obvious to this noob.

1)I have no background in C/assembly programming of microcontrollers, I am not really understanding how pins are grouped into buses and how chip features are used, more information for the utter beginner would be nice.

Many thanks for this. We're traversing a very busy period of eLua but we will take care of this asap. I also hope that the next coming announcements will help with this too.

2)I know many chips will be different but what is the general hardware that is needed for this, is everything done via Jtag?

There are several different ways of storing code in the MCU flash memories and this actually does not depend on eLua but on the kit's characteristics/features. Maybe we can include another table somewhere on the site, with the main characteristics of the most known platforms.
 
3)Is this project at production level?

We are definitely not "finished" yet :) We may be able to launch our v1.0 sometime this year and I think we will consider this a very "polished" release. You can consider we are still Beta (but hey, everything @Google also is :).
Our officially released versions have been very stable. What lacks here is some more visibility of eLua uses, both in small user projects and at "production level". Again I expect our new (really-soon-to-come) announcements will help with this too.

On the other hand, yes, we are actually using eLua more and more at "production level", for real-world projects here in Brazil and we are glad the customers share this feeling that it is "ready enough" to be used and it is evolving fast enough so they can expect more functionality, more features and more ports along the road.

Thanks for reading-Patrick

Thanks a lot for the comments.

Best
Dado
 
_______________________________________________
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
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

Hello guys,
   Maybe something in this line (below) could help as an introductory tutorial ?
   This is a sketch that can be greatly improved. We want to make eLua development more and more collaborative so help is always welcome. We'll (very) soon have a space/tool to help a lot with this too.

A quick introduction on using eLua on your Lua programs

So you know a bit of Lua and want to know how to use the eLua extensions to access and control your microcontroller's peripherals. eLua offers support for MCU peripherals control in regular Lua tables called "eLua modules". Most of this modules are already available (pré-loaded) when you run your program or the Lua Interpreter on a platform with eLua. Some others are more specialized and, to save space until they are needed, have to be dynamically loaded as regular Lua modules. The Lua command to require a module to be loaded is:

yourvarname = require( "modulename" )

vfd = require( "eluavfd" )

The module you are requiring is a .lua file and has to be stored in one of the file systems supported by eLua (currently in rom/flash, sd/mmc card or remote file system).

Each module, pré-loaded or loaded by you, behaves as a Lua table containing functions related to the module. Thus, PIO contains functions related to the Paralell Input/Output MCU peripheral, PWM contains functions to setup and output Pulse Width Modulation signals, TMR has Timer related facilities, eLuaMIDI has functions to use the MIDI protocol and so on. To familiarize yourself with the already implemented eLua modules, take a look at the following links:

  • Generic platform-independent eLua modules

  • Specific platform-dependent eLua modules

  • Other extensions and eLua users libraries

To use an eLua module in your program you use the regular table.field Lua notation. For example, to read a value from a PIO port you use:

value = pio.port.getvalue( P3 )

To read a value from a PIO pin

value = pio.pin.getvalue( P3_5 )

The syntax of the port and pin symbols vary according to the platform you are using. eLua uses the closest possible (usually identical) notation to the MCU manufacturer. But this is info specific to the PIO module and you can read about this and the others on the links above.

We suggest you browse through the code examples found in this wiki and you will soon be familiar with all the eLua functions and usages. eLua also has a very active and friendly Discussion List, where you are welcome to ask for help and give us your feedback on using eLua.














On Tue, Mar 16, 2010 at 23:15, Dado Sutter <[hidden email]> wrote:


On Tue, Mar 16, 2010 at 17:44, Patrick <[hidden email]> wrote:
I can't wait for James Snyder's interview on floss weekly. It looks like the date was pushed back till April 7th.

Would it be a good idea to list topics that might be good to touch on?

I am trying to make my way around the eLua site but here are a few things that are not obvious to this noob.

1)I have no background in C/assembly programming of microcontrollers, I am not really understanding how pins are grouped into buses and how chip features are used, more information for the utter beginner would be nice.

Many thanks for this. We're traversing a very busy period of eLua but we will take care of this asap. I also hope that the next coming announcements will help with this too.

2)I know many chips will be different but what is the general hardware that is needed for this, is everything done via Jtag?

There are several different ways of storing code in the MCU flash memories and this actually does not depend on eLua but on the kit's characteristics/features. Maybe we can include another table somewhere on the site, with the main characteristics of the most known platforms.
 
3)Is this project at production level?

We are definitely not "finished" yet :) We may be able to launch our v1.0 sometime this year and I think we will consider this a very "polished" release. You can consider we are still Beta (but hey, everything @Google also is :).
Our officially released versions have been very stable. What lacks here is some more visibility of eLua uses, both in small user projects and at "production level". Again I expect our new (really-soon-to-come) announcements will help with this too.

On the other hand, yes, we are actually using eLua more and more at "production level", for real-world projects here in Brazil and we are glad the customers share this feeling that it is "ready enough" to be used and it is evolving fast enough so they can expect more functionality, more features and more ports along the road.

Thanks for reading-Patrick

Thanks a lot for the comments.

Best
Dado
 
_______________________________________________
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
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

   About James@FLOSS, I can't think of a full list of topics now but I'm sure he'll do great :)

   Maybe:

- A brief history of the project life and it's current fast growing pace, even though the lack of official support
- The general current status of the project

- The collaborative nature of the development, as well as the main aspects like being Open Source, free, ...

- It's (MIT) licence, that allows it to be freely used and also embedded in proprietary products by companies

- The total independence of an Operating System "below" and some OS-like features, like multitasking (coroutines), file systems, sockets (the NET module), .......

- Advanced features like Remote Procedure Calls, Remote File System, ......

- The new types added to extend Lua (Light/Romable Functions and Light/Romable Tables) for embedded apps

- The high level of abstraction from the hardware layer, offering unprecedent portability in the embedded world and still having as much control over what is needed, when it is really needed.

- The ability to offer an embedded development framework for programmers with no deep knowledge of the hardware architectures. To form a good embedded programmer today takes a lot of time....

- The result embedded language being the full version of the language (and even it's official variants) and not a sub-sub-sub-sub-set of the original language, like some similar initiatives.
- Some nice numbers like it's actual footprint, it's performance, it's memory consumption, .....
- The tools and services offered to the community by the project (the list, the site and the new ones to be announced before James @FLOSS)

  

This is what I can remember for a first pass in my very sleepy state :)


Best

Dado











On Wed, Mar 17, 2010 at 01:53, Dado Sutter <[hidden email]> wrote:
Hello guys,
   Maybe something in this line (below) could help as an introductory tutorial ?
   This is a sketch that can be greatly improved. We want to make eLua development more and more collaborative so help is always welcome. We'll (very) soon have a space/tool to help a lot with this too.

A quick introduction on using eLua on your Lua programs

So you know a bit of Lua and want to know how to use the eLua extensions to access and control your microcontroller's peripherals. eLua offers support for MCU peripherals control in regular Lua tables called "eLua modules". Most of this modules are already available (pré-loaded) when you run your program or the Lua Interpreter on a platform with eLua. Some others are more specialized and, to save space until they are needed, have to be dynamically loaded as regular Lua modules. The Lua command to require a module to be loaded is:

yourvarname = require( "modulename" )

vfd = require( "eluavfd" )

The module you are requiring is a .lua file and has to be stored in one of the file systems supported by eLua (currently in rom/flash, sd/mmc card or remote file system).

Each module, pré-loaded or loaded by you, behaves as a Lua table containing functions related to the module. Thus, PIO contains functions related to the Paralell Input/Output MCU peripheral, PWM contains functions to setup and output Pulse Width Modulation signals, TMR has Timer related facilities, eLuaMIDI has functions to use the MIDI protocol and so on. To familiarize yourself with the already implemented eLua modules, take a look at the following links:

  • Generic platform-independent eLua modules

  • Specific platform-dependent eLua modules

  • Other extensions and eLua users libraries

To use an eLua module in your program you use the regular table.field Lua notation. For example, to read a value from a PIO port you use:

value = pio.port.getvalue( P3 )

To read a value from a PIO pin

value = pio.pin.getvalue( P3_5 )

The syntax of the port and pin symbols vary according to the platform you are using. eLua uses the closest possible (usually identical) notation to the MCU manufacturer. But this is info specific to the PIO module and you can read about this and the others on the links above.

We suggest you browse through the code examples found in this wiki and you will soon be familiar with all the eLua functions and usages. eLua also has a very active and friendly Discussion List, where you are welcome to ask for help and give us your feedback on using eLua.














On Tue, Mar 16, 2010 at 23:15, Dado Sutter <[hidden email]> wrote:


On Tue, Mar 16, 2010 at 17:44, Patrick <[hidden email]> wrote:
I can't wait for James Snyder's interview on floss weekly. It looks like the date was pushed back till April 7th.

Would it be a good idea to list topics that might be good to touch on?

I am trying to make my way around the eLua site but here are a few things that are not obvious to this noob.

1)I have no background in C/assembly programming of microcontrollers, I am not really understanding how pins are grouped into buses and how chip features are used, more information for the utter beginner would be nice.

Many thanks for this. We're traversing a very busy period of eLua but we will take care of this asap. I also hope that the next coming announcements will help with this too.

2)I know many chips will be different but what is the general hardware that is needed for this, is everything done via Jtag?

There are several different ways of storing code in the MCU flash memories and this actually does not depend on eLua but on the kit's characteristics/features. Maybe we can include another table somewhere on the site, with the main characteristics of the most known platforms.
 
3)Is this project at production level?

We are definitely not "finished" yet :) We may be able to launch our v1.0 sometime this year and I think we will consider this a very "polished" release. You can consider we are still Beta (but hey, everything @Google also is :).
Our officially released versions have been very stable. What lacks here is some more visibility of eLua uses, both in small user projects and at "production level". Again I expect our new (really-soon-to-come) announcements will help with this too.

On the other hand, yes, we are actually using eLua more and more at "production level", for real-world projects here in Brazil and we are glad the customers share this feeling that it is "ready enough" to be used and it is evolving fast enough so they can expect more functionality, more features and more ports along the road.

Thanks for reading-Patrick

Thanks a lot for the comments.

Best
Dado
 
_______________________________________________
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
Patrick-11 Patrick-11
Reply | Threaded
Open this post in threaded view
|

How can I help?

Thanks very much to Dado for the introduction to eLua.

I am just getting more and more excited about this, how can I help?

Here is a little background about me:
1)I have been repairing scientific instruments for a little over 10
years now but in this time I have not designed anything of my own, I
plan to change this soon.

2)I have standard shop supplies Logic Analyzer, Oscilloscope, SMD solder
station, Eprom programmer ETC...

3) Financially I am mess right now(Autism therapy bills for my Son, he
is getting better) however I might be able to help in a few months.

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

Re: eLua on floss weekly, requested topics

In reply to this post by Patrick-11
On Tue, Mar 16, 2010 at 3:44 PM, Patrick
<[hidden email]> wrote:
> I can't wait for James Snyder's interview on floss weekly. It looks like the
> date was pushed back till April 7th.
>
> Would it be a good idea to list topics that might be good to touch on?

I think that's a great idea :-)  I certainly have more than enough
that I could ramble on about during the interview.  The hosts will be
directing the questions, but  , from my recollection, many are general
enough where there's some latitude possible in the answers, and
suggestions would be good.  As such, here's a google moderator series
for suggestions:

http://goo.gl/mod/1HSL

I certainly can't guarantee that I'll get to things posted there
during the interview, but I'll definitely keep an eye on it as April
7th draws close :-)

>
> I am trying to make my way around the eLua site but here are a few things
> that are not obvious to this noob.
>
> 1)I have no background in C/assembly programming of microcontrollers, I am
> not really understanding how pins are grouped into buses and how chip
> features are used, more information for the utter beginner would be nice.

I suppose there are two parts to this question, one is on the side of
general conventions in microcontrollers, and the other is how one
would use these through eLua.  Generally, though we're abstracting
things, we do so in a way that's still rather similar to the
underlying hardware model, so, hopefully, a general description of how
GPIO works (general logic control related to pins) would be applicable
to eLua's model.  I think we have some decent coverage for translating
general microcontroller knowledge to how that could be applied with
eLua, but we don't bridge the gap as much from less microcontroller
familiarity.

I think we could certainly benefit from having some more guides on
that level, and while I suspect it's possible to generate quite a
large volume of documentation (medium sized tome :-) from doing
something like this thoroughly, we might be able to get away with some
tutorial basics and then point to a more extensive description of the
details elsewhere plus our API docs.  I suspect it might be easier to
put together some off-the-cuff screencasts on certain topics, maybe I
could make one on the question you've asked above as a test, if I get
some time for it this week/weekend?  I make no guarantees that this
will become a series, but I am more likely to do things when there
people interested and pinging me about it :-)

If I understand correctly, is what you're wondering about how to use
GPIO (using pins for digital input/output, and how one can control
them as groups?) or is this a more general question that includes
things like how pins can be used for Serial, ADC, CAN, etc...?

> 2)I know many chips will be different but what is the general hardware that
> is needed for this, is everything done via Jtag?

As Dado was saying, it depends :-)   We have guides for many of them.
Some platforms like STM32 have a serial bootloader that makes it
really easy to load firmware from a simple cross-platform tool
(there's a Python tool, and now Bogdan has also started a C-based
version which will eventually make it into the project, but for now is
up on github: http://github.com/jsnyder/stm32ld).  One new platform,
the mbed (http://mbed.org/) has a mass storage filesystem that allows
one to simply copy a new firmware version to the filesystem and hit
the reset button to load it up.

>
> 3)Is this project at production level?

Adding to Dado's comments:
Also, note that a large portion of the code that's actually running is
directly derived from Lua 5.1.4.  We've added some patches (Lua Tiny
RAM, Emergency Garbage Collection (which is used by other projects),
etc..) and some modules, but the core Lua code is used by a reasonably
large number of people and has a deliberately slow release pace to
ensure that what gets released is quite stable.  In my personal
experience, what we've been releasing is pretty stable, and while
there are likely bugs, I don't know of any right now that cause the VM
to crash (it will bail if it runs out of memory and EGC didn't help).
So... While I wouldn't use it to replace the drive-by-wire system in a
car, it's not too bad :-)

>
> Thanks for reading-Patrick
> _______________________________________________
> 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
Patrick-11 Patrick-11
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

Hi James

"If I understand correctly, is what you're wondering about how to use
GPIO (using pins for digital input/output, and how one can control
them as groups?) or is this a more general question that includes
things like how pins can be used for Serial, ADC, CAN, etc...?"

Sorry about the question! I did not mean to nag anyone about such basic things just for my benefit, I was just wondering if a newbie visitor to your site might be looking for this.

However if you do have time.... I am specifically interested in how to form an address bus and an 8 bit digital bus when there are let's say 16 digital bus lines available. My project will involve both A/D, a GPIB bus(common with scientific/test & measurement instruments) and RS232.

Thanks for your feedback already!-Patrick

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

Re: How can I help?

In reply to this post by Patrick-11
Hi Patrick,

Thanks very much for this. Rest assured that when the time comes we'll hold you accountable for this e-mail :) Until then have a lot of fun with eLua, the rest will come by itself (and yes, I realize how cheesy this sounds, but it's more of a practical observation than a cliche).

Best,
Bogdan

On Wed, Mar 17, 2010 at 3:05 PM, Patrick <[hidden email]> wrote:
Thanks very much to Dado for the introduction to eLua.

I am just getting more and more excited about this, how can I help?

Here is a little background about me:
1)I have been repairing scientific instruments for a little over 10 years now but in this time I have not designed anything of my own, I plan to change this soon.

2)I have standard shop supplies Logic Analyzer, Oscilloscope, SMD solder station, Eprom programmer ETC...

3) Financially I am mess right now(Autism therapy bills for my Son, he is getting better) however I might be able to help in a few months.

Thanks-Patrick
_______________________________________________
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
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

In reply to this post by Patrick-11


On Wed, Mar 17, 2010 at 10:53 PM, Patrick <[hidden email]> wrote:
Hi James
"If I understand correctly, is what you're wondering about how to use
GPIO (using pins for digital input/output, and how one can control
them as groups?) or is this a more general question that includes
things like how pins can be used for Serial, ADC, CAN, etc...?"

Sorry about the question! I did not mean to nag anyone about such basic things just for my benefit, I was just wondering if a newbie visitor to your site might be looking for this.

You're not nagging anyone, don't worry. The site is more a description of the eLua project, not an embedded development tutorial. Although we hope to cover the latter with a nice (and growing) set of examples.

However if you do have time.... I am specifically interested in how to form an address bus and an 8 bit digital bus when there are let's say 16 digital bus lines available. My project will involve both A/D, a GPIB bus(common with scientific/test & measurement instruments) and RS232.

_______________________________________________
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
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: How can I help?

In reply to this post by Patrick-11
Hello,

On Wed, Mar 17, 2010 at 10:05, Patrick <[hidden email]> wrote:
Thanks very much to Dado for the introduction to eLua.

I am just getting more and more excited about this, how can I help?

Here is a little background about me:

In eLua, the willing to help will always be more important than any special background.
There are many different areas where one can help with the project (==have FUN :) and in a short time you'll be able to say where you feel more confortable to begin with.

Again, I think the services we're about to launch will be a nice place to start, so stay tuned and ready to rock :)
 
Thanks-Patrick

Thanks
Dado


 

 
_______________________________________________
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
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

In reply to this post by BogdanM
On Wed, Mar 17, 2010 at 4:20 PM, Bogdan Marinescu
<[hidden email]> wrote:

>
>
> On Wed, Mar 17, 2010 at 10:53 PM, Patrick
> <[hidden email]> wrote:
>>
>> Hi James
>> "If I understand correctly, is what you're wondering about how to use
>> GPIO (using pins for digital input/output, and how one can control
>> them as groups?) or is this a more general question that includes
>> things like how pins can be used for Serial, ADC, CAN, etc...?"
>>
>> Sorry about the question! I did not mean to nag anyone about such basic
>> things just for my benefit, I was just wondering if a newbie visitor to your
>> site might be looking for this.
>
> You're not nagging anyone, don't worry. The site is more a description of
> the eLua project, not an embedded development tutorial. Although we hope to
> cover the latter with a nice (and growing) set of examples.

Ditto.  It's also good to at least know what kinds of things new users
want to know when they come to the site and want to dive in.  We'd
like this project to be fairly accessible over a range of users, and
we're certainly aware of some of the shortcomings, but feedback can
help shape what we're working on and planning to do.

When you brought up the question, I recalled that I didn't have a
great short textual answer or a link to point to, and that these
32-bit microcontrollers actually tend to be somewhat complicated to
configure.

Another thing I'd recommend taking a look at are the example programs
that are in the romfs folder that comes included with the eLua
sources, since these do provide nice working examples of how to use
peripherals on various platforms.

--
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
Téo Benjamin Téo Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

If you want to have a pretty good idea about eLua using, I suggest you (as a newbie programmer too, not a 32-bit-monster like these guys) to have a look at the examples that are in the romfs in a default build.
You can also have a look at the eLua Examples repo. There you may see some examples of games, simple application and some interesting libs that eLua users have been developing.
There is only code in the repo. No good doc yet, because it's being organized to be all together in a eLua User's area.

Most part of the code was written by programmers that don't have much experience in Lua or even in other programming languages. So, it may be useful for you at this moment.

On Thu, Mar 18, 2010 at 4:55 PM, James Snyder <[hidden email]> wrote:
On Wed, Mar 17, 2010 at 4:20 PM, Bogdan Marinescu
<[hidden email]> wrote:
>
>
> On Wed, Mar 17, 2010 at 10:53 PM, Patrick
> <[hidden email]> wrote:
>>
>> Hi James
>> "If I understand correctly, is what you're wondering about how to use
>> GPIO (using pins for digital input/output, and how one can control
>> them as groups?) or is this a more general question that includes
>> things like how pins can be used for Serial, ADC, CAN, etc...?"
>>
>> Sorry about the question! I did not mean to nag anyone about such basic
>> things just for my benefit, I was just wondering if a newbie visitor to your
>> site might be looking for this.
>
> You're not nagging anyone, don't worry. The site is more a description of
> the eLua project, not an embedded development tutorial. Although we hope to
> cover the latter with a nice (and growing) set of examples.

Ditto.  It's also good to at least know what kinds of things new users
want to know when they come to the site and want to dive in.  We'd
like this project to be fairly accessible over a range of users, and
we're certainly aware of some of the shortcomings, but feedback can
help shape what we're working on and planning to do.

When you brought up the question, I recalled that I didn't have a
great short textual answer or a link to point to, and that these
32-bit microcontrollers actually tend to be somewhat complicated to
configure.

Another thing I'd recommend taking a look at are the example programs
that are in the romfs folder that comes included with the eLua
sources, since these do provide nice working examples of how to use
peripherals on various platforms.

--
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


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

Re: eLua on floss weekly, requested topics

Thanks again guys for all your great tips. I am looking through the ROM
images and the eLua examples at googlecode. I am also reading just basic
C and assembly stuff related to microcontrollers.

I can see under platform info a list of device families. I was just
wondering if there was one family that was simpler to get started with?

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

Re: eLua on floss weekly, requested topics

For me, they all look equally complex (or equally simple, it depends on your angle :) ). I'd start with a Cortex-M3 though, they're somehow easier to understand IMO, and their implementation details don't vary that much from manufacturer to manufacturer as it happens with ARMs. This is one board that I use a lot, performs very well and has a good price:

http://www.futurlec.com/ET-STM32_Stamp.shtml

(and of course, it is supported by eLua)

Best,
Bogdan


On Fri, Mar 19, 2010 at 2:19 PM, Patrick <[hidden email]> wrote:
Thanks again guys for all your great tips. I am looking through the ROM images and the eLua examples at googlecode. I am also reading just basic C and assembly stuff related to microcontrollers.

I can see under platform info a list of device families. I was just wondering if there was one family that was simpler to get started with?

Thanks-Patrick

_______________________________________________
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
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: eLua on floss weekly, requested topics

And if you want to spend some more (~$100) on an ARM Cortex-M3 kit, there is the EK-LM3S8962 from Luminary Micro/Texas Instruments that has a nice little OLED display, for which we have a bunch of games and other demo apps too.

http://www.luminarymicro.com/products/lm3s8962_can_ethernet_evaluation_kit.html

It does not have the "stamp" form like the ET-STM32, the mbed or the MOD711 and it is a bit limited on GPIO too.
But it has header pins for easy prototyping, onboard buttons, a very simple and good free Flashing program, it is powered by the USB cable, it implements a serial COM over the same USB cable, it has a ready-to-use ethernet connector and other start facilities.

Best
Dado




On Fri, Mar 19, 2010 at 09:35, Bogdan Marinescu <[hidden email]> wrote:
For me, they all look equally complex (or equally simple, it depends on your angle :) ). I'd start with a Cortex-M3 though, they're somehow easier to understand IMO, and their implementation details don't vary that much from manufacturer to manufacturer as it happens with ARMs. This is one board that I use a lot, performs very well and has a good price:

http://www.futurlec.com/ET-STM32_Stamp.shtml

(and of course, it is supported by eLua)

Best,
Bogdan



On Fri, Mar 19, 2010 at 2:19 PM, Patrick <[hidden email]> wrote:
Thanks again guys for all your great tips. I am looking through the ROM images and the eLua examples at googlecode. I am also reading just basic C and assembly stuff related to microcontrollers.

I can see under platform info a list of device families. I was just wondering if there was one family that was simpler to get started with?

Thanks-Patrick

_______________________________________________
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



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

Re: eLua on floss weekly, requested topics

Thanks Bogdan, Thanks Dado.

I tried to buy both boards today. The ARM one went smoothly with Digikey
but unfortunately I had trouble with www.futurlec.com. It does not seem
like their site is working, I will try again later.

Hopefully I can get up to speed by April 7th.

Have a great weekend-Patrick

Dado Sutter wrote:

> And if you want to spend some more (~$100) on an ARM Cortex-M3 kit,
> there is the EK-LM3S8962 from Luminary Micro/Texas Instruments that
> has a nice little OLED display, for which we have a bunch of games and
> other demo apps too.
>
> http://www.luminarymicro.com/products/lm3s8962_can_ethernet_evaluation_kit.html
>
> It does not have the "stamp" form like the ET-STM32, the mbed or the
> MOD711 and it is a bit limited on GPIO too.
> But it has header pins for easy prototyping, onboard buttons, a very
> simple and good free Flashing program, it is powered by the USB cable,
> it implements a serial COM over the same USB cable, it has a
> ready-to-use ethernet connector and other start facilities.
>
> Best
> Dado
>
>
>
>
> On Fri, Mar 19, 2010 at 09:35, Bogdan Marinescu
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     For me, they all look equally complex (or equally simple, it
>     depends on your angle :) ). I'd start with a Cortex-M3 though,
>     they're somehow easier to understand IMO, and their implementation
>     details don't vary that much from manufacturer to manufacturer as
>     it happens with ARMs. This is one board that I use a lot, performs
>     very well and has a good price:
>
>     http://www.futurlec.com/ET-STM32_Stamp.shtml
>
>     (and of course, it is supported by eLua)
>
>     Best,
>     Bogdan
>
>
>
>     On Fri, Mar 19, 2010 at 2:19 PM, Patrick
>     <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         Thanks again guys for all your great tips. I am looking
>         through the ROM images and the eLua examples at googlecode. I
>         am also reading just basic C and assembly stuff related to
>         microcontrollers.
>
>         I can see under platform info a list of device families. I was
>         just wondering if there was one family that was simpler to get
>         started with?
>
>         Thanks-Patrick
>
>         _______________________________________________
>         eLua-dev mailing list
>         [hidden email] <mailto:[hidden email]>
>         https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
>
>     _______________________________________________
>     eLua-dev mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
Patrick-11 Patrick-11
Reply | Threaded
Open this post in threaded view
|

Re: help getting started was eLua on floss weekly, requested topics

In reply to this post by Dado Sutter
Hi Dado

I received my development board. I was a little bit disappointed with
their whole g++ thing. I am hoping that I do not need to pay for some
sort of IDE that is just a front to the free GCC but I don't need this
do I? Can I just load one of the eLua images over to the board via Jtag
and then connect to it via serial? Could you help me get started?

Hope your doing great, sorry to bug you with this-Patrick

Dado Sutter wrote:

> And if you want to spend some more (~$100) on an ARM Cortex-M3 kit,
> there is the EK-LM3S8962 from Luminary Micro/Texas Instruments that
> has a nice little OLED display, for which we have a bunch of games and
> other demo apps too.
>
> http://www.luminarymicro.com/products/lm3s8962_can_ethernet_evaluation_kit.html
>
> It does not have the "stamp" form like the ET-STM32, the mbed or the
> MOD711 and it is a bit limited on GPIO too.
> But it has header pins for easy prototyping, onboard buttons, a very
> simple and good free Flashing program, it is powered by the USB cable,
> it implements a serial COM over the same USB cable, it has a
> ready-to-use ethernet connector and other start facilities.
>
> Best
> Dado
>
>
>
>
> On Fri, Mar 19, 2010 at 09:35, Bogdan Marinescu
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     For me, they all look equally complex (or equally simple, it
>     depends on your angle :) ). I'd start with a Cortex-M3 though,
>     they're somehow easier to understand IMO, and their implementation
>     details don't vary that much from manufacturer to manufacturer as
>     it happens with ARMs. This is one board that I use a lot, performs
>     very well and has a good price:
>
>     http://www.futurlec.com/ET-STM32_Stamp.shtml
>
>     (and of course, it is supported by eLua)
>
>     Best,
>     Bogdan
>
>
>
>     On Fri, Mar 19, 2010 at 2:19 PM, Patrick
>     <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         Thanks again guys for all your great tips. I am looking
>         through the ROM images and the eLua examples at googlecode. I
>         am also reading just basic C and assembly stuff related to
>         microcontrollers.
>
>         I can see under platform info a list of device families. I was
>         just wondering if there was one family that was simpler to get
>         started with?
>
>         Thanks-Patrick
>
>         _______________________________________________
>         eLua-dev mailing list
>         [hidden email] <mailto:[hidden email]>
>         https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
>
>     _______________________________________________
>     eLua-dev mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: help getting started was eLua on floss weekly, requested topics

Hello all,

On Wed, Mar 31, 2010 at 22:12, Patrick <[hidden email]> wrote:
Hi Dado

I received my development board.

Glad to hear that !
I suppose it is an EK-LM3S8962 right ?
Please tell us also the OS you mostly use for development, as different tools are available for different OSs (or simply don't exist for some).
 
I was a little bit disappointed with their whole g++ thing. I am hoping that I do not need to pay for some sort of IDE that is just a front to the free GCC but I don't need this do I?

No way. You don't need to pay for anything or to have any kind of IDE (before we release ours one day :) to have eLua running on your your kits.
 
Can I just load one of the eLua images over to the board via Jtag and then connect to it via serial?

Yes, this is all you need to flash eLua on your kit. If it is one of the LM3S kits, you don't even need JTag, as it has FTDI that allows you to load your images to the flash via the USB cable, the same one used to power up the board and to connect the UART to a desktop terminal too

Could you help me get started?

Absolutely. Pls count on me and on everybody else here on the list for your first steps. It will not only make us happy to see new and nice eLua uses but also to tune and refine our doc if something is unclear or missing.

As you haven't mentioned the kit model (or I missed it ....) I assume it is one of our suggestions, the EK-LM3S8962 and I'll send here some initial instructions/links:

We have a menu entry on our site called Platform Info with introductory info for several supported platforms. The entry for the EK-LM3S8962 is under LM3S sub-option at http://www.eluaproject.net/en_installing_lm3s.html

When you boot up your kit after flashing eLua on it, you will get an eLua Shell prompt. The shell usage and commands are described under Generic Info->Using eLua->The Shell at http://www.eluaproject.net/en_using.html#shell

Info about using your terminal over UART, which LM3S does nicely offering you a COMx over the same USB cable, can be found at http://www.eluaproject.net/en_using.html#uart
Please note that for the LM3S kits you will need to install the Flasher program and the FTDI drivers and both can be found on the CD that came with the board or directly (maybe newer versions) on Luminary Micro site.
James Snyder was able to flash to EK-LM3S6965 boards from Linux too but I couldn't find the time to make it work here yet :(
 
Hope your doing great, sorry to bug you with this-Patrick

My pleasure

Best
Dado





 

Dado Sutter wrote:
And if you want to spend some more (~$100) on an ARM Cortex-M3 kit, there is the EK-LM3S8962 from Luminary Micro/Texas Instruments that has a nice little OLED display, for which we have a bunch of games and other demo apps too.

http://www.luminarymicro.com/products/lm3s8962_can_ethernet_evaluation_kit.html

It does not have the "stamp" form like the ET-STM32, the mbed or the MOD711 and it is a bit limited on GPIO too.
But it has header pins for easy prototyping, onboard buttons, a very simple and good free Flashing program, it is powered by the USB cable, it implements a serial COM over the same USB cable, it has a ready-to-use ethernet connector and other start facilities.

Best
Dado




On Fri, Mar 19, 2010 at 09:35, Bogdan Marinescu <[hidden email] <mailto:[hidden email]>> wrote:

   For me, they all look equally complex (or equally simple, it
   depends on your angle :) ). I'd start with a Cortex-M3 though,
   they're somehow easier to understand IMO, and their implementation
   details don't vary that much from manufacturer to manufacturer as
   it happens with ARMs. This is one board that I use a lot, performs
   very well and has a good price:

   http://www.futurlec.com/ET-STM32_Stamp.shtml

   (and of course, it is supported by eLua)

   Best,
   Bogdan



   On Fri, Mar 19, 2010 at 2:19 PM, Patrick
   <[hidden email]
   <mailto:[hidden email]>> wrote:

       Thanks again guys for all your great tips. I am looking
       through the ROM images and the eLua examples at googlecode. I
       am also reading just basic C and assembly stuff related to
       microcontrollers.

       I can see under platform info a list of device families. I was
       just wondering if there was one family that was simpler to get
       started with?

       Thanks-Patrick

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



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


------------------------------------------------------------------------

_______________________________________________
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


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

Re: help getting started was eLua on floss weekly, requested topics

Hi Dado

Yes it's the EK-LM3S8962. I thought I would have to use Windoze. Do you
think I can load the eLua image via Linux? I have lot of OSs here but I
would love to use Ubuntu if possible.

Thanks very much, yet again-Patrick

_______________________________________________
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: help getting started was eLua on floss weekly, requested topics



On Wed, Mar 31, 2010 at 22:45, Patrick <[hidden email]> wrote:
Hi Dado

Yes it's the EK-LM3S8962.

Cool. So the links I've sent you are the right ones to start with.
 
I thought I would have to use Windoze.

Yeap, at least to start with I suggest you stay on Windows. The Luminary Program to flash the kit is very nice, reliable and easy to use. But yes, it only runs on Windows. I've used it many times on Virtual Machines in Ubuntu, under VMWare and VirtualBox with no problem too.

Do you think I can load the eLua image via Linux? I have lot of OSs here but I would love to use Ubuntu if possible.

James Snyder has been able to flash EK-LM3S6965 boards (basically the same FTDI type of interfacing to JTag) under Linux and I have a receipe for this. I'll test it here too and prepare a tutorial but I can't promisse anything for too soon.
 
Thanks very much, yet again-Patrick

You can start with the official eLua v0.7 binary image for your board. They are all available for download at our Downloads->Binaries page and the one you need is http://prdownload.berlios.de/elua/elua0.7_lua_lm3s8962.bin
 
Please let us know how it goes (and if you can beat Téo on Pong :)

Best
Dado





_______________________________________________
eLua-dev mailing list
[hidden email]


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