Hi All, I have loaded the official eLua release 0.9 on the mbed board and trying to run some example programs. I copied a file called hello.lua from the my Ubuntu PC to the mbed board through the USB drive. I made sure to eject the USB drive properly and then reboot the mbed board. After this, I go to the eLua# prompt and type 'lua hello.lua' and get the error Unable to open 'hello.lua' Am I doing something wrong? thanks, arun _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Did you try an ls to see that is sees the file. The files should be on /semifs i.e.: lua /semifs/hello.lua
—
James Snyder Biomedical Engineering Northwestern University http://fanplastic.org/key.txt ph: (847) 448-0386 On Sat, Oct 12, 2013 at 2:50 AM, Arunkumar Dhananjayan <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thiago Naves |
We don't have relative paths on eLua, so files are always referenced by their whole path. That would be /semi/hello.lua if you put the file in the mbed USB drive or /rom/hello.lua for a file in romfs (i.e. compiled into the flash image).-- On Sat, Oct 12, 2013 at 11:22 AM, James Snyder <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thanks Thiago. I should have left the extra "fs" off there. On Sat, Oct 12, 2013 at 11:33 AM, Thiago Naves <[hidden email]> wrote:
James Snyder
Biomedical Engineering Northwestern University ph: (847) 448-0386 _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thanks guys. My mistake. I didn't realise that the files were in /semi/ subdirectory. The mbed page in the WIki made it clear: http://wiki.eluaproject.net/mbedLPC1768arun On Sat, Oct 12, 2013 at 10:24 PM, James Snyder <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |