autostart mbed after reset

classic Classic list List threaded Threaded
2 messages Options
Paul Panter Paul Panter
Reply | Threaded
Open this post in threaded view
|

autostart mbed after reset

Hello to all,

I've bought a NXP mbed weeks ago and stumbled now into elua.  
I'm familiar with lua, so I was very amused about the possibility to talk lua to my mbed.

In this list I read about how to load a script from a SD.
Like this way:
recv /mmc/file.lua

Now I want to autostart my mbed after a reset, with my script.
I don't want to communicate via terminal to run a micro-controller.

Thank you for your help.
Kind Regards
Zesty


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

Re: autostart mbed after reset

Hi Zesty,
I think just you save your file as autorun.lua, like:
recv /mmc/autorun.lua

Best,
Vagner

On Sat, Nov 17, 2012 at 10:16 AM, Paul Panter <[hidden email]> wrote:
Hello to all,

I've bought a NXP mbed weeks ago and stumbled now into elua.  
I'm familiar with lua, so I was very amused about the possibility to talk lua to my mbed.

In this list I read about how to load a script from a SD.
Like this way:
recv /mmc/file.lua

Now I want to autostart my mbed after a reset, with my script.
I don't want to communicate via terminal to run a micro-controller.

Thank you for your help.
Kind Regards
Zesty


_______________________________________________
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