patrick pollet |
Dear all,
i am curently working on the eLua release for mbed, i succeed in adding mmcfs and spi support (currently working on i2c), but i have a problem with mbed_pio platform module. The source for this module is in my source tree and it seems that it's well compiled, but if i use something like mbed.pio.configpin(....) in a lua script, i have the error : attempt to index global 'mbed' (a nil value)
The mbed "object" does not exist. If i use the .bin available on the eLua web page about mbed, it works well. So, i think that something is missing in my build environement and the mbed_pio module is not really integrated. But i can not find what is missing.
My release of eLua is : v0.9-89-g803bea8 Every help will be appreciated. Regards. -- Patrick Pollet
Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.
This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
We have reported this issue here: I guess it's a problem with the build system, but no one has assigned to fix it.
2013/8/29 patrick pollet <[hidden email]>
Gabriel Duarte
Linux User #471185Rio de Janeiro / RJ http://genericdev.wordpress.com/ _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
patrick pollet |
Thanks, despite my research i miss this page. Concerning the problem i found an almost fix : - file build_elua.lua line 130 change "false" by "true" ( skip conf attribute, to avoid file board_mbed.h to be overwritten)
- file auxmods.h, add line 63 #define AUXLIB_MBEDPIO "mbed" LUALIB_API int (luaopen_mbed_pio)( lua_State *L ); -file board_mbed.h, add line 217 #define MODULE_MBEDPIO_LINE _ROM( AUXLIB_MBEDPIO, luaopen_mbed_pio, mbed_pio_map ) and few lines below, add MODULE_MBEDPIO_LINE after MODULE_PD_LINE\ (from memories, that's all) after recompiling mbed module sdeems to works, but only mbed.configpin(....) or ledpin = mbed.LED1 (for example) works, instead of mbed.pio.configpin(...) or ledpin = mbed.pio.LED1 So i think that i missed something somewhere but like that i could wait for an official fix.
Patrick Pollet 2013/8/29 Gabriel Duarte <[hidden email]>
Patrick Pollet
Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.
This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thiago Naves |
I'm trying to fix that... What I've found out so far is that the module IS there, but it's called lpc17xx instead of mbed:> return lpc17xx.pio.configpin lightfunction: 0x19a81 On Thu, Aug 29, 2013 at 7:33 PM, patrick pollet <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Owwwwww that is bad... Do you know where is the definition to change the nama back to mbed?? 2013/8/31 Thiago Naves <[hidden email]>
Gabriel Duarte
Linux User #471185Rio de Janeiro / RJ http://genericdev.wordpress.com/ _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thiago Naves |
Done. I only have an mbed and a et-stm32 (that doesn't have platform specific modules) here...Can anyone verify this works on other platforms and that I didn't break anything? Best, Thiago On Sat, Aug 31, 2013 at 2:42 PM, Gabriel Duarte <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by gduarte
Hi,
That is not bad, it's logical :) It's called a platform specific module before it is specific to the PLATFORM (lpc17xx in this case), not the BOARD (mbed). If you take your program and try to run in on another board with a LPC17XX, it will work as expected if you use (for example) lpc17xx.pio as opposed to mbed.pio, which wouldn't work anymore on your new board. A very simple "fix" would be to add this line at the beginning of your program: local mbed = lpc17xx Then you can use mbed.<module> as usual. HTH, Bogdan On Sat, Aug 31, 2013 at 8:42 PM, Gabriel Duarte <[hidden email]> wrote: > Owwwwww that is bad... Do you know where is the definition to change the > nama back to mbed?? > > > 2013/8/31 Thiago Naves <[hidden email]> >> >> I'm trying to fix that... >> What I've found out so far is that the module IS there, but it's called >> lpc17xx instead of mbed: >> >> > return lpc17xx.pio.configpin >> lightfunction: 0x19a81 >> >> >> Best, >> Thiago >> >> >> On Thu, Aug 29, 2013 at 7:33 PM, patrick pollet <[hidden email]> >> wrote: >>> >>> Thanks, >>> despite my research i miss this page. >>> >>> Concerning the problem i found an almost fix : >>> - file build_elua.lua line 130 change "false" by "true" ( skip conf >>> attribute, to avoid file board_mbed.h to be overwritten) >>> - file auxmods.h, add line 63 >>> #define AUXLIB_MBEDPIO "mbed" LUALIB_API int (luaopen_mbed_pio)( >>> lua_State *L ); >>> -file board_mbed.h, add line 217 >>> #define MODULE_MBEDPIO_LINE _ROM( AUXLIB_MBEDPIO, >>> luaopen_mbed_pio, mbed_pio_map ) >>> >>> and few lines below, add >>> MODULE_MBEDPIO_LINE >>> after >>> MODULE_PD_LINE\ >>> >>> >>> (from memories, that's all) >>> >>> after recompiling mbed module sdeems to works, but only >>> mbed.configpin(....) or ledpin = mbed.LED1 (for example) works, instead of >>> mbed.pio.configpin(...) or ledpin = mbed.pio.LED1 >>> So i think that i missed something somewhere but like that i could wait >>> for an official fix. >>> >>> Patrick Pollet >>> >>> >>> 2013/8/29 Gabriel Duarte <[hidden email]> >>>> >>>> We have reported this issue here: >>>> >>>> https://github.com/elua/elua/issues/23 >>>> >>>> I guess it's a problem with the build system, but no one has assigned to >>>> fix it. >>>> >>>> >>>> >>>> >>>> 2013/8/29 patrick pollet <[hidden email]> >>>>> >>>>> Dear all, >>>>> >>>>> i am curently working on the eLua release for mbed, i succeed in adding >>>>> mmcfs and spi support (currently working on i2c), but i have a problem with >>>>> mbed_pio platform module. >>>>> >>>>> The source for this module is in my source tree and it seems that it's >>>>> well compiled, but if i use something like mbed.pio.configpin(....) in a lua >>>>> script, i have the error : attempt to index global 'mbed' (a nil value) >>>>> >>>>> The mbed "object" does not exist. >>>>> >>>>> If i use the .bin available on the eLua web page about mbed, it works >>>>> well. >>>>> >>>>> So, i think that something is missing in my build environement and the >>>>> mbed_pio module is not really integrated. But i can not find what is >>>>> missing. >>>>> My release of eLua is : v0.9-89-g803bea8 >>>>> >>>>> Every help will be appreciated. >>>>> >>>>> Regards. >>>>> -- >>>>> Patrick Pollet >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Ce message et toutes les pièces jointes sont confidentiels et exclusifs >>>>> pour le destinataire du message. N'importe quelle autre distribution, >>>>> utilisation ou reproduction est non autorisée et interdite. Si vous receviez >>>>> ce message par erreur, informez svp l'expéditeur immédiatement et supprimez >>>>> le message de votre système. >>>>> >>>>> >>>>> >>>>> This message and any attachments are confidential, for the exclusive >>>>> use of the addressee and may be legally privileged. Any other distribution, >>>>> use or reproduction is unauthorised and prohibited. If you received this >>>>> message in error, please notify the sender immediately and delete the >>>>> message from your system. >>>>> >>>>> >>>>> _______________________________________________ >>>>> eLua-dev mailing list >>>>> [hidden email] >>>>> https://lists.berlios.de/mailman/listinfo/elua-dev >>>> >>>> >>>> >>>> >>>> -- >>>> Gabriel Duarte >>>> Linux User #471185 >>>> Rio de Janeiro / RJ >>>> http://genericdev.wordpress.com/ >>>> >>>> _______________________________________________ >>>> eLua-dev mailing list >>>> [hidden email] >>>> https://lists.berlios.de/mailman/listinfo/elua-dev >>> >>> >>> >>> >>> -- >>> Patrick Pollet >>> >>> >>> >>> >>> >>> Ce message et toutes les pièces jointes sont confidentiels et exclusifs >>> pour le destinataire du message. N'importe quelle autre distribution, >>> utilisation ou reproduction est non autorisée et interdite. Si vous receviez >>> ce message par erreur, informez svp l'expéditeur immédiatement et supprimez >>> le message de votre système. >>> >>> >>> >>> This message and any attachments are confidential, for the exclusive use >>> of the addressee and may be legally privileged. Any other distribution, use >>> or reproduction is unauthorised and prohibited. If you received this message >>> in error, please notify the sender immediately and delete the message from >>> your system. >>> >>> >>> _______________________________________________ >>> 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 > > > > > -- > Gabriel Duarte > Linux User #471185 > Rio de Janeiro / RJ > http://genericdev.wordpress.com/ > > _______________________________________________ > 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 |
Thiago Naves |
Agreed, but the doc says mbed ;) Best, Thiago On Sep 2, 2013 4:17 AM, "Bogdan Marinescu" <[hidden email]> wrote:
Hi, _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Oh, that :) You do have a point there, I forgot about the doc :)
Best, Bogdan On Mon, Sep 2, 2013 at 3:22 PM, Thiago Naves <[hidden email]> wrote: > Agreed, but the doc says mbed ;) > > > Best, > > Thiago > > On Sep 2, 2013 4:17 AM, "Bogdan Marinescu" <[hidden email]> > wrote: >> >> Hi, >> >> That is not bad, it's logical :) It's called a platform specific >> module before it is specific to the PLATFORM (lpc17xx in this case), >> not the BOARD (mbed). If you take your program and try to run in on >> another board with a LPC17XX, it will work as expected if you use (for >> example) lpc17xx.pio as opposed to mbed.pio, which wouldn't work >> anymore on your new board. A very simple "fix" would be to add this >> line at the beginning of your program: >> >> local mbed = lpc17xx >> >> Then you can use mbed.<module> as usual. >> >> HTH, >> Bogdan >> >> On Sat, Aug 31, 2013 at 8:42 PM, Gabriel Duarte <[hidden email]> >> wrote: >> > Owwwwww that is bad... Do you know where is the definition to change the >> > nama back to mbed?? >> > >> > >> > 2013/8/31 Thiago Naves <[hidden email]> >> >> >> >> I'm trying to fix that... >> >> What I've found out so far is that the module IS there, but it's called >> >> lpc17xx instead of mbed: >> >> >> >> > return lpc17xx.pio.configpin >> >> lightfunction: 0x19a81 >> >> >> >> >> >> Best, >> >> Thiago >> >> >> >> >> >> On Thu, Aug 29, 2013 at 7:33 PM, patrick pollet >> >> <[hidden email]> >> >> wrote: >> >>> >> >>> Thanks, >> >>> despite my research i miss this page. >> >>> >> >>> Concerning the problem i found an almost fix : >> >>> - file build_elua.lua line 130 change "false" by "true" ( skip conf >> >>> attribute, to avoid file board_mbed.h to be overwritten) >> >>> - file auxmods.h, add line 63 >> >>> #define AUXLIB_MBEDPIO "mbed" LUALIB_API int (luaopen_mbed_pio)( >> >>> lua_State *L ); >> >>> -file board_mbed.h, add line 217 >> >>> #define MODULE_MBEDPIO_LINE _ROM( AUXLIB_MBEDPIO, >> >>> luaopen_mbed_pio, mbed_pio_map ) >> >>> >> >>> and few lines below, add >> >>> MODULE_MBEDPIO_LINE >> >>> after >> >>> MODULE_PD_LINE\ >> >>> >> >>> >> >>> (from memories, that's all) >> >>> >> >>> after recompiling mbed module sdeems to works, but only >> >>> mbed.configpin(....) or ledpin = mbed.LED1 (for example) works, >> >>> instead of >> >>> mbed.pio.configpin(...) or ledpin = mbed.pio.LED1 >> >>> So i think that i missed something somewhere but like that i could >> >>> wait >> >>> for an official fix. >> >>> >> >>> Patrick Pollet >> >>> >> >>> >> >>> 2013/8/29 Gabriel Duarte <[hidden email]> >> >>>> >> >>>> We have reported this issue here: >> >>>> >> >>>> https://github.com/elua/elua/issues/23 >> >>>> >> >>>> I guess it's a problem with the build system, but no one has assigned >> >>>> to >> >>>> fix it. >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> 2013/8/29 patrick pollet <[hidden email]> >> >>>>> >> >>>>> Dear all, >> >>>>> >> >>>>> i am curently working on the eLua release for mbed, i succeed in >> >>>>> adding >> >>>>> mmcfs and spi support (currently working on i2c), but i have a >> >>>>> problem with >> >>>>> mbed_pio platform module. >> >>>>> >> >>>>> The source for this module is in my source tree and it seems that >> >>>>> it's >> >>>>> well compiled, but if i use something like mbed.pio.configpin(....) >> >>>>> in a lua >> >>>>> script, i have the error : attempt to index global 'mbed' (a nil >> >>>>> value) >> >>>>> >> >>>>> The mbed "object" does not exist. >> >>>>> >> >>>>> If i use the .bin available on the eLua web page about mbed, it >> >>>>> works >> >>>>> well. >> >>>>> >> >>>>> So, i think that something is missing in my build environement and >> >>>>> the >> >>>>> mbed_pio module is not really integrated. But i can not find what is >> >>>>> missing. >> >>>>> My release of eLua is : v0.9-89-g803bea8 >> >>>>> >> >>>>> Every help will be appreciated. >> >>>>> >> >>>>> Regards. >> >>>>> -- >> >>>>> Patrick Pollet >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> Ce message et toutes les pièces jointes sont confidentiels et >> >>>>> exclusifs >> >>>>> pour le destinataire du message. N'importe quelle autre >> >>>>> distribution, >> >>>>> utilisation ou reproduction est non autorisée et interdite. Si vous >> >>>>> receviez >> >>>>> ce message par erreur, informez svp l'expéditeur immédiatement et >> >>>>> supprimez >> >>>>> le message de votre système. >> >>>>> >> >>>>> >> >>>>> >> >>>>> This message and any attachments are confidential, for the exclusive >> >>>>> use of the addressee and may be legally privileged. Any other >> >>>>> distribution, >> >>>>> use or reproduction is unauthorised and prohibited. If you received >> >>>>> this >> >>>>> message in error, please notify the sender immediately and delete >> >>>>> the >> >>>>> message from your system. >> >>>>> >> >>>>> >> >>>>> _______________________________________________ >> >>>>> eLua-dev mailing list >> >>>>> [hidden email] >> >>>>> https://lists.berlios.de/mailman/listinfo/elua-dev >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Gabriel Duarte >> >>>> Linux User #471185 >> >>>> Rio de Janeiro / RJ >> >>>> http://genericdev.wordpress.com/ >> >>>> >> >>>> _______________________________________________ >> >>>> eLua-dev mailing list >> >>>> [hidden email] >> >>>> https://lists.berlios.de/mailman/listinfo/elua-dev >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Patrick Pollet >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> Ce message et toutes les pièces jointes sont confidentiels et >> >>> exclusifs >> >>> pour le destinataire du message. N'importe quelle autre distribution, >> >>> utilisation ou reproduction est non autorisée et interdite. Si vous >> >>> receviez >> >>> ce message par erreur, informez svp l'expéditeur immédiatement et >> >>> supprimez >> >>> le message de votre système. >> >>> >> >>> >> >>> >> >>> This message and any attachments are confidential, for the exclusive >> >>> use >> >>> of the addressee and may be legally privileged. Any other >> >>> distribution, use >> >>> or reproduction is unauthorised and prohibited. If you received this >> >>> message >> >>> in error, please notify the sender immediately and delete the message >> >>> from >> >>> your system. >> >>> >> >>> >> >>> _______________________________________________ >> >>> 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 >> > >> > >> > >> > >> > -- >> > Gabriel Duarte >> > Linux User #471185 >> > Rio de Janeiro / RJ >> > http://genericdev.wordpress.com/ >> > >> > _______________________________________________ >> > 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 eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
patrick pollet |
I think it even goes beyond the doc. As i understand and as i did some tests with it, the module uses the pin numbers of the Mbed board to select the function of the pins and even to select the pins.
(correct me if i miss something) So this pin number doesn't have any sense for the lcp1768 itself (unless you keep with you the schematic of the Mbed to have the correspondance lpc1768 - Mbed pinning number ).
At this state i think that Mbed is probably a more accurate name than lpc17xx for this module. (even if we could imagine another module doing the same thing for the lcp1768 or a generic module including that for lpc1768 and mbed )
Regards. Patrick 2013/9/2 Bogdan Marinescu <[hidden email]> Oh, that :) You do have a point there, I forgot about the doc :) Patrick Pollet
Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.
This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi Patrick,
In this case, the module isn't probably used properly. It seems to be a board-specific module, not a platform specific module, so: 1. it should only be compiled for 'board=mbed' (one should be able to do this by editing build_config.lua, check src/platform/lm3s/build_config.lua for an example). 2. since it makes use of specific platform features, it still stays under lpc17xx, so its full name should be something like 'lpc17xx.mbed_pio' or similar. Again, check build_config.lua under lm3s (above) for an example of how to set such a configuration. HTH, Bogdan On Mon, Sep 2, 2013 at 3:54 PM, patrick pollet <[hidden email]> wrote: > I think it even goes beyond the doc. > As i understand and as i did some tests with it, the module uses the pin > numbers of the Mbed board to select the function of the pins and even to > select the pins. > (correct me if i miss something) > So this pin number doesn't have any sense for the lcp1768 itself (unless you > keep with you the schematic of the Mbed to have the correspondance lpc1768 - > Mbed pinning number ). > > At this state i think that Mbed is probably a more accurate name than > lpc17xx for this module. > (even if we could imagine another module doing the same thing for the > lcp1768 or a generic module including that for lpc1768 and mbed ) > > Regards. > > Patrick > > > 2013/9/2 Bogdan Marinescu <[hidden email]> >> >> Oh, that :) You do have a point there, I forgot about the doc :) >> >> Best, >> Bogdan >> >> On Mon, Sep 2, 2013 at 3:22 PM, Thiago Naves <[hidden email]> >> wrote: >> > Agreed, but the doc says mbed ;) >> > >> > >> > Best, >> > >> > Thiago >> > >> > On Sep 2, 2013 4:17 AM, "Bogdan Marinescu" <[hidden email]> >> > wrote: >> >> >> >> Hi, >> >> >> >> That is not bad, it's logical :) It's called a platform specific >> >> module before it is specific to the PLATFORM (lpc17xx in this case), >> >> not the BOARD (mbed). If you take your program and try to run in on >> >> another board with a LPC17XX, it will work as expected if you use (for >> >> example) lpc17xx.pio as opposed to mbed.pio, which wouldn't work >> >> anymore on your new board. A very simple "fix" would be to add this >> >> line at the beginning of your program: >> >> >> >> local mbed = lpc17xx >> >> >> >> Then you can use mbed.<module> as usual. >> >> >> >> HTH, >> >> Bogdan >> >> >> >> On Sat, Aug 31, 2013 at 8:42 PM, Gabriel Duarte <[hidden email]> >> >> wrote: >> >> > Owwwwww that is bad... Do you know where is the definition to change >> >> > the >> >> > nama back to mbed?? >> >> > >> >> > >> >> > 2013/8/31 Thiago Naves <[hidden email]> >> >> >> >> >> >> I'm trying to fix that... >> >> >> What I've found out so far is that the module IS there, but it's >> >> >> called >> >> >> lpc17xx instead of mbed: >> >> >> >> >> >> > return lpc17xx.pio.configpin >> >> >> lightfunction: 0x19a81 >> >> >> >> >> >> >> >> >> Best, >> >> >> Thiago >> >> >> >> >> >> >> >> >> On Thu, Aug 29, 2013 at 7:33 PM, patrick pollet >> >> >> <[hidden email]> >> >> >> wrote: >> >> >>> >> >> >>> Thanks, >> >> >>> despite my research i miss this page. >> >> >>> >> >> >>> Concerning the problem i found an almost fix : >> >> >>> - file build_elua.lua line 130 change "false" by "true" ( skip conf >> >> >>> attribute, to avoid file board_mbed.h to be overwritten) >> >> >>> - file auxmods.h, add line 63 >> >> >>> #define AUXLIB_MBEDPIO "mbed" LUALIB_API int (luaopen_mbed_pio)( >> >> >>> lua_State *L ); >> >> >>> -file board_mbed.h, add line 217 >> >> >>> #define MODULE_MBEDPIO_LINE _ROM( AUXLIB_MBEDPIO, >> >> >>> luaopen_mbed_pio, mbed_pio_map ) >> >> >>> >> >> >>> and few lines below, add >> >> >>> MODULE_MBEDPIO_LINE >> >> >>> after >> >> >>> MODULE_PD_LINE\ >> >> >>> >> >> >>> >> >> >>> (from memories, that's all) >> >> >>> >> >> >>> after recompiling mbed module sdeems to works, but only >> >> >>> mbed.configpin(....) or ledpin = mbed.LED1 (for example) works, >> >> >>> instead of >> >> >>> mbed.pio.configpin(...) or ledpin = mbed.pio.LED1 >> >> >>> So i think that i missed something somewhere but like that i could >> >> >>> wait >> >> >>> for an official fix. >> >> >>> >> >> >>> Patrick Pollet >> >> >>> >> >> >>> >> >> >>> 2013/8/29 Gabriel Duarte <[hidden email]> >> >> >>>> >> >> >>>> We have reported this issue here: >> >> >>>> >> >> >>>> https://github.com/elua/elua/issues/23 >> >> >>>> >> >> >>>> I guess it's a problem with the build system, but no one has >> >> >>>> assigned >> >> >>>> to >> >> >>>> fix it. >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> 2013/8/29 patrick pollet <[hidden email]> >> >> >>>>> >> >> >>>>> Dear all, >> >> >>>>> >> >> >>>>> i am curently working on the eLua release for mbed, i succeed in >> >> >>>>> adding >> >> >>>>> mmcfs and spi support (currently working on i2c), but i have a >> >> >>>>> problem with >> >> >>>>> mbed_pio platform module. >> >> >>>>> >> >> >>>>> The source for this module is in my source tree and it seems that >> >> >>>>> it's >> >> >>>>> well compiled, but if i use something like >> >> >>>>> mbed.pio.configpin(....) >> >> >>>>> in a lua >> >> >>>>> script, i have the error : attempt to index global 'mbed' (a nil >> >> >>>>> value) >> >> >>>>> >> >> >>>>> The mbed "object" does not exist. >> >> >>>>> >> >> >>>>> If i use the .bin available on the eLua web page about mbed, it >> >> >>>>> works >> >> >>>>> well. >> >> >>>>> >> >> >>>>> So, i think that something is missing in my build environement >> >> >>>>> and >> >> >>>>> the >> >> >>>>> mbed_pio module is not really integrated. But i can not find what >> >> >>>>> is >> >> >>>>> missing. >> >> >>>>> My release of eLua is : v0.9-89-g803bea8 >> >> >>>>> >> >> >>>>> Every help will be appreciated. >> >> >>>>> >> >> >>>>> Regards. >> >> >>>>> -- >> >> >>>>> Patrick Pollet >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> Ce message et toutes les pièces jointes sont confidentiels et >> >> >>>>> exclusifs >> >> >>>>> pour le destinataire du message. N'importe quelle autre >> >> >>>>> distribution, >> >> >>>>> utilisation ou reproduction est non autorisée et interdite. Si >> >> >>>>> vous >> >> >>>>> receviez >> >> >>>>> ce message par erreur, informez svp l'expéditeur immédiatement et >> >> >>>>> supprimez >> >> >>>>> le message de votre système. >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> This message and any attachments are confidential, for the >> >> >>>>> exclusive >> >> >>>>> use of the addressee and may be legally privileged. Any other >> >> >>>>> distribution, >> >> >>>>> use or reproduction is unauthorised and prohibited. If you >> >> >>>>> received >> >> >>>>> this >> >> >>>>> message in error, please notify the sender immediately and delete >> >> >>>>> the >> >> >>>>> message from your system. >> >> >>>>> >> >> >>>>> >> >> >>>>> _______________________________________________ >> >> >>>>> eLua-dev mailing list >> >> >>>>> [hidden email] >> >> >>>>> https://lists.berlios.de/mailman/listinfo/elua-dev >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> -- >> >> >>>> Gabriel Duarte >> >> >>>> Linux User #471185 >> >> >>>> Rio de Janeiro / RJ >> >> >>>> http://genericdev.wordpress.com/ >> >> >>>> >> >> >>>> _______________________________________________ >> >> >>>> eLua-dev mailing list >> >> >>>> [hidden email] >> >> >>>> https://lists.berlios.de/mailman/listinfo/elua-dev >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> -- >> >> >>> Patrick Pollet >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> Ce message et toutes les pièces jointes sont confidentiels et >> >> >>> exclusifs >> >> >>> pour le destinataire du message. N'importe quelle autre >> >> >>> distribution, >> >> >>> utilisation ou reproduction est non autorisée et interdite. Si vous >> >> >>> receviez >> >> >>> ce message par erreur, informez svp l'expéditeur immédiatement et >> >> >>> supprimez >> >> >>> le message de votre système. >> >> >>> >> >> >>> >> >> >>> >> >> >>> This message and any attachments are confidential, for the >> >> >>> exclusive >> >> >>> use >> >> >>> of the addressee and may be legally privileged. Any other >> >> >>> distribution, use >> >> >>> or reproduction is unauthorised and prohibited. If you received >> >> >>> this >> >> >>> message >> >> >>> in error, please notify the sender immediately and delete the >> >> >>> message >> >> >>> from >> >> >>> your system. >> >> >>> >> >> >>> >> >> >>> _______________________________________________ >> >> >>> 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 >> >> > >> >> > >> >> > >> >> > >> >> > -- >> >> > Gabriel Duarte >> >> > Linux User #471185 >> >> > Rio de Janeiro / RJ >> >> > http://genericdev.wordpress.com/ >> >> > >> >> > _______________________________________________ >> >> > 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 >> _______________________________________________ >> eLua-dev mailing list >> [hidden email] >> https://lists.berlios.de/mailman/listinfo/elua-dev > > > > > -- > Patrick Pollet > > > > > > Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour > le destinataire du message. N'importe quelle autre distribution, utilisation > ou reproduction est non autorisée et interdite. Si vous receviez ce message > par erreur, informez svp l'expéditeur immédiatement et supprimez le message > de votre système. > > > > This message and any attachments are confidential, for the exclusive use of > the addressee and may be legally privileged. Any other distribution, use or > reproduction is unauthorised and prohibited. If you received this message in > error, please notify the sender immediately and delete the message from your > system. > > > _______________________________________________ > 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 pollet |
In this case, the module isn't probably used properly. It seems to be >>> that's right
>>> yes (one should be able to >>> Ok, thanks
Patrick Pollet
Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.
This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |