tag:elua-development.15.s1.nabble.com,2006:forum-2368040Nabble - eLua Development2024-03-28T10:18:58ZeLua Users' and Development list, for people getting to know, working and developping eLua.
Project Page: http://www.eluaproject.net/tag:elua-development.15.s1.nabble.com,2006:post-7578629Technical Help2021-06-25T06:26:43Z2021-06-25T06:26:43Zrosejohn
Get here the best online technical help in case your organization or home pc and notebook required to being repaired. We offer technical assistance via different channels like email, telephone calls. We have a technical support team that's available 24/7 to tackle customer's technical difficulties. I m always available to your help if you need more advice to Get help with antiviruses software downloads, installation, uninstall, updates, virus removal, etc please see our this site it free service provided: <a href="https://contactassistance.com/bitdefender-support/" target="_top" rel="nofollow" link="external">bitdefender support</a> | <a href="https://contactassistance.com/canon-printer-offline/" target="_top" rel="nofollow" link="external">Canon Printer Offline</a> | <a href="https://sites.google.com/view/activateamazoncomcodeusa" target="_top" rel="nofollow" link="external">amazon.com/code</a> | <a href="https://sites.google.com/view/gocashapploginus" target="_top" rel="nofollow" link="external">Cash App Login</a> | <a href="https://sites.google.com/view/paypalloginpage" target="_top" rel="nofollow" link="external">Paypal Login</a> | <a href="https://sites.google.com/view/linksysextendersetup-usa" target="_top" rel="nofollow" link="external">Linksys Extender Setup</a> | <a href="https://sites.google.com/view/roadrunneremailguide" target="_top" rel="nofollow" link="external">Roadrunner Email</a> | <a href="https://sites.google.com/view/my-bitdefenderlogin" target="_top" rel="nofollow" link="external">Bitdefender Login</a> | <a href="https://sites.google.com/view/getavastlogin" target="_top" rel="nofollow" link="external">Avast Login</a> | <a href="https://sites.google.com/view/roadrunneremail-guide/" target="_top" rel="nofollow" link="external">Roadrunner Email</a> | <a href="https://sites.google.com/view/amazonprimeloginguide" target="_top" rel="nofollow" link="external">Amazon Prime Login</a> | <a href="https://sites.google.com/view/wwwamazoncommytv-us" target="_top" rel="nofollow" link="external">www.amazon.com/mytvn</a> | <a href="https://sites.google.com/view/netgear-extender-setup-guide" target="_top" rel="nofollow" link="external">Netgear Extender Setup</a> | <a href="https://sites.google.com/view/belkin-setup-usa" target="_top" rel="nofollow" link="external">Belkin Setup</a> | <a href="https://sites.google.com/view/webrootdownloadusa" target="_top" rel="nofollow" link="external">Webroot Download</a> | <a href="https://sites.google.com/view/nortondownloadhelp" target="_top" rel="nofollow" link="external">Norton Download</a> | <a href="https://sites.google.com/view/belkinn300setupguide" target="_top" rel="nofollow" link="external">Belkin N300 Setup</a>
tag:elua-development.15.s1.nabble.com,2006:post-7578628Best Online Tech Support2021-06-23T00:45:47Z2021-06-23T00:45:47Zanisajohn
Technical support includes a variety of products and services to help consumers and companies. These advantages include troubleshooting, computer repair, and live chat options. It's not uncommon to experience problems with telephone service and these problems often require high-level technical assistance to solve. The ten firms below received high scores because of the pricing and the quality of the services they supply. These companies are recognized as the very best of the finest in the field of tech providers. Get assistance with antiviruses software downloads, setup, uninstall, updates, virus removal, etc please see our site it free support provided: <a href="https://garmincomexpress.pro/" target="_top" rel="nofollow" link="external">Garmin.com/express</a> | <a href="https://garmincomexpress.pro/garmin-express/" target="_top" rel="nofollow" link="external">Garmin Express</a> | <a href="https://garmincomexpress.pro/help/garmin-instinct/" target="_top" rel="nofollow" link="external">garmin instinct</a> | <a href="http://magellan-gps-updates.com/" target="_top" rel="nofollow" link="external">Magellan GPS Update</a> | <a href="http://magellan-gps-updates.com/magellan-roadmate-update/" target="_top" rel="nofollow" link="external">Magellan Roadmate Update</a> | <a href="http://inavmanupdate.com/" target="_top" rel="nofollow" link="external">Navman Update</a> | <a href="https://inavmanupdate.com/navman-gps/" target="_top" rel="nofollow" link="external">Navman GPS</a> | <a href="https://inavmanupdate.com/blog/navman-mivue-740/" target="_top" rel="nofollow" link="external">Navman Mivue 740</a> | <a href="http://belkin-setup.com/" target="_top" rel="nofollow" link="external">Belkin Setup</a> | <a href="https://belkin-setup.com/belkin-range/" target="_top" rel="nofollow" link="external">Belkin.Range</a> | <a href="https://belkin-setup.com/belkin-setup/" target="_top" rel="nofollow" link="external">Belkin.Setup</a> | <a href="https://belkin-setup.com/belkin-n300-setup/" target="_top" rel="nofollow" link="external">belkin n300 setup</a> | <a href="https://belkin-setup.com/how-to/setup-belkin-ac1200-router/" target="_top" rel="nofollow" link="external">belkin ac1200</a> | <a href="http://rand-mcnally-gps-update.com/" target="_top" rel="nofollow" link="external">Rand McNally GPS Update</a>
tag:elua-development.15.s1.nabble.com,2006:post-7578627Re: Stack used in eLua2017-07-26T05:43:46Z2017-07-26T05:43:46ZBogdanM
Hi,
<br/><br/>> This is not necessarly a memory leak or something like this, I think the management of free areas are reused through the dlmalloc implementation.
<br/><br/>You're exactly right. "sbrk" is called to give more memory to the *allocator* iself. Inside its memory region, the allocator manages the actual dynamic memory allocated with malloc() and freed with free(). For reference: <a href="https://linux.die.net/man/2/sbrk" target="_top" rel="nofollow" link="external">https://linux.die.net/man/2/sbrk</a><br/><br/>> You know if this function is working in the port of dlmalloc used in elua?
<br/><br/>I used it very sparingly, and it's been a while, I don't really remember how well it worked. But it definitely shouldn't output pseudo-random values. Not sure what to tell you, it might be that dlmallinfo() doesn't work well with multiple memory regions. Or it might be a completely different problem, I really don't know.
<br/>I suppose you already found this, but here is the man page of the mallinfo() function: <a href="http://man7.org/linux/man-pages/man3/mallinfo.3.html" target="_top" rel="nofollow" link="external">http://man7.org/linux/man-pages/man3/mallinfo.3.html</a><br/><br/>Best,
<br/>Bogdan
<br/><br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578626Re: Stack used in eLua2017-07-26T05:33:42Z2017-07-26T05:33:42ZSergio
Hi Bogdan!
<br/>Very thanks for your answer!
<br/>When I say the allocator not freed memory (I think) is for the implementation of the function elua_sbrk. I viewed in the source code, when use multiple allocator, a call to malloc function from c language, make a call to dlmalloc function then, the call stack (mixing functions and macros) is: sys_alloc -> CALL_MORECORE -> MORECORE -> elua_sbrk. In the elua_sbrk implementation I found this code:
<br/><br/><br/>// _sbrk_r (newlib) / elua_sbrk (multiple)
<br/>static char *heap_ptr;
<br/>static int mem_index;
<br/><br/>#ifdef USE_MULTIPLE_ALLOCATOR
<br/>void* elua_sbrk( ptrdiff_t incr )
<br/>#else
<br/>void* _sbrk_r( struct _reent* r, ptrdiff_t incr )
<br/>#endif
<br/>{
<br/> void* ptr;
<br/>
<br/> // If increment is negative, return -1
<br/> if( incr < 0 )
<br/> return ( void* )-1;
<br/>
<br/> // Otherwise ask the platform about our memory space (if needed)
<br/> // We do this for all our memory spaces
<br/> while( 1 )
<br/> {
<br/> if( heap_ptr == NULL )
<br/> {
<br/> if( ( heap_ptr = ( char* )platform_get_first_free_ram( mem_index ) ) == NULL )
<br/> {
<br/> ptr = ( void* )-1;
<br/> break;
<br/> }
<br/> }
<br/>
<br/> // Do we have space in the current memory space?
<br/> if( heap_ptr + incr > ( char* )platform_get_last_free_ram( mem_index ) )
<br/> {
<br/> // We don't, so try the next memory space
<br/> heap_ptr = NULL;
<br/> mem_index ++;
<br/> }
<br/> else
<br/> {
<br/> // Memory found in the current space
<br/> ptr = heap_ptr;
<br/> heap_ptr += incr;
<br/> break;
<br/> }
<br/> }
<br/><br/> return ptr;
<br/>}
<br/><br/>Here, the heap_ptr variable keep the last allocated memory address but this value never decreases. Is for this I ask if the assigned memory never are freed. This is not necessarly a memory leak or something like this, I think the management of free areas are reused through the dlmalloc implementation.
<br/><br/>Beyond this, I want implement eLua functions (through a c language module) to have information about used, freed and size of heap region. I've read the dlmalloc documentation and I found a function for that called dlmallinfo, but the returned values in my test are not right, the used memory value change randomly. This may be due to my error, I'm not sure. For this I ask you: You know if this function is working in the port of dlmalloc used in elua? (I've seen your name in the configuration macros of dlmalloc ;) )
<br/>Thanks a lot!
<br/><br/>Sergio
tag:elua-development.15.s1.nabble.com,2006:post-7578625Re: Stack used in eLua2017-07-25T12:20:35Z2017-07-25T12:20:35ZBogdanM
Hi,
<br/><br/>Sorry for the delayed response.
<br/><br/>> So, define a big part of SRAM for the stack space may be useless, because only will be used for the arguments of the functions called between eLUA/C and C/C. Is right?
<br/><br/>Not exactly, but yes, defininig a big stack is pretty in eLua is pretty useless. I found 16K to be enough for all practical cases.
<br/><br/>> Also we readed the implementation of this allocator, is possible that the "multiple" allocator assign memory in the defined regions but never free them?
<br/><br/>I'm not sure I understand your question. The allocator itself allocates and frees what it's told to. In other words, if it's told to free a memory region, it will free it, no matter if you're using the multiple allocator or any other allocator. If you have memory leaks in your program, they are very likely not a result of your allocator choice.
<br/><br/>> If this is right, the garbage collector manage the alocation and elimination of the differents objects over the defined RAM regions?
<br/><br/>On the Lua side of things, yes. For C code, you still need to do your allocation and deallocation manually, as usual.
<br/><br/>Best,
<br/>Bogdan
tag:elua-development.15.s1.nabble.com,2006:post-7578624Re: Stack used in eLua2017-07-05T05:30:30Z2017-07-05T05:30:30ZSergio
Hi Bogdan!
<br/>Thanks for your answer! This confirmation explain the viewed behavior. So, define a big part of SRAM for the stack space may be useless, because only will be used for the arguments of the functions called between eLUA/C and C/C. Is right?
<br/><br/>Something like the original idea, but over the heap, can be made? We are using a microcontroller with differents regions of RAM and we setup the system to use "multiple" allocator. Also we readed the implementation of this allocator, is possible that the "multiple" allocator assign memory in the defined regions but never free them?
<br/>If this is right, the garbage collector manage the alocation and elimination of the differents objects over the defined RAM regions?
<br/><br/>Thanks a lot! We are reading the eLua source code but we don't understand some parts and mechanicsms.
<br/><br/>Sergio
tag:elua-development.15.s1.nabble.com,2006:post-7578623Re: Stack used in eLua2017-07-05T01:56:19Z2017-07-05T01:56:19ZBogdanM
Hi Sergio,
<br/><br/>A simplified view is that Lua uses the C stack when it interacts with C functions. If you're running "pure" Lua code, then everything will happen in the heap, like you said.
<br/><br/>Best,
<br/>Bogdan
tag:elua-development.15.s1.nabble.com,2006:post-7578622Stack used in eLua2017-07-04T11:58:54Z2017-07-04T11:58:54ZSergio
Hi guys!
<br/>I'm new in the eLua world and, with other enthusiast, we are working to port eLua to a new microcontroller.
<br/>We do some basic task to port and the system is booting up! Basic hardware access work fine and can control the access to pins (some led on/off stuff).
<br/>Our objetive is learn about eLua and know some internal implementations to known if our work are well done.
<br/>We are trying to make a simple test about the used memory (is more academic than practical!), we want to know how much memory is free in the stack. To do this, we define a constant in the linker script to mark the top of the stack and make a function in a c module to calculate the diference between the top of stack and the actual value of the stack pointer. Something like this:
<br/><br/>static int stackUsed( lua_State* L )
<br/>{
<br/> unsigned int sp, used;
<br/> __asm("MOV %0, R13":"=r"(sp));
<br/> used = ((unsigned int)&_vStackTop - (sp));
<br/> lua_pushinteger( L, used);
<br/> return 1;
<br/>}
<br/><br/>Here, the registry R13 store the actual value of the stack pointer in a Cortex M4 microcontroller (lpc4337). We test too this other version:
<br/><br/>static int stackUsed( lua_State* L )
<br/>{
<br/> unsigned int sp, used;
<br/> asm volatile ("MRS %0, msp\n" : "=r" (sp) );
<br/> used = ((unsigned int)&_vStackTop - (sp));
<br/> lua_pushinteger( L, used);
<br/> return 1;
<br/>}
<br/><br/>But always print the same value of used memory. We call the function stackUsed inside a function waiting for a change, but not. There are not changes in the amount of used memory. This is because the eLua use the heap to map the functions arguments or we are doing some wrong?
<br/><br/>Thanks a lot for your help!
<br/>Sergio
tag:elua-development.15.s1.nabble.com,2006:post-7578621Re: How elua uses memory?2017-07-04T07:35:55Z2017-07-04T07:35:55Zjuani221
Thank you for your answer. We're trying to Port eLua to a board, we mapped stack entirely in SRAM. But stack has a strange behavior, we run a script written in Lua that's creates functions and call them and we control stack usage in different parts of the script but stack usage is always the same..
<br/><br/>Juan.
tag:elua-development.15.s1.nabble.com,2006:post-7578620Re: How elua uses memory?2017-07-04T03:52:17Z2017-07-04T03:52:17Zraman
<br/>Hi,
<br/><br/>> What goes to stack and what goes to heap?
<br/><br/>That is really a philosophical question to me. Stacks can be
<br/>implemented in HW on the MCU. Stacking can also be entirely done in
<br/>SRAM. That depends on where you're observing memory usage. Are you in
<br/>the eLua world writing Lua code on the MCU OR are you in the C world
<br/>that implements the (modified) core of Lua for MCUs and all the
<br/>marshalling details for eLua?
<br/><br/>R
<br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578619Re: Interrupts on mbed2017-06-28T07:42:35Z2017-06-28T07:42:35Zgduarte
Looking at the sources and mbed docs, I saw I could use NVIC_EnableIRQ(EINT0_IRQn) (in this the case, I just need 1 external interrupt) with EINT0_IRQHandler as a fuction handler.
<br/><a href="https://exploreembedded.com/wiki/LPC1768:_External_Interrupts" target="_top" rel="nofollow" link="external">https://exploreembedded.com/wiki/LPC1768:_External_Interrupts</a><br/><br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578618How elua uses memory?2017-06-26T15:28:03Z2017-06-26T15:28:03Zjuani221
Hi! New here in the forum...
<br/><br/>Can someone explain to me how elua uses memory? (Stack and heap). What goes to stack and what goes to heap?
<br/><br/>(sorry my bad english)
<br/><br/>Thank you.
tag:elua-development.15.s1.nabble.com,2006:post-7578617Re: Interrupts on mbed2017-06-26T11:18:32Z2017-06-26T11:18:32Zgduarte
<div dir="ltr"><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)">Unfortutatenly eLua for mbed does not define platform_int.c :(</span></font><div><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)">For now I can't figure out how to use interrupts on mbed without havinh to touch C code.</span></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)"><br></span></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)">:)</span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-26 14:22 GMT-03:00 Gabriel Duarte <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578617&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Raman, I wanted to write interruput handlers in, Lua, not even touching C code.<div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)">I am going to follow Bogdan's tip and install the toolchain he pointed out.</span></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">Thanks Bogdan for the link.</font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><br></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">I will try to compile eLua for mbed and enable Lua interrupts.</font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><br></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">Thanks!<br></font><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2017-06-26 5:23 GMT-03:00 BogdanM [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578617&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<blockquote style="border-left:2px solid rgb(204,204,204);padding:0px 1em" class="m_7680939424719065334gmail-m_-6327585687057721699quote m_7680939424719065334gmail-m_-6327585687057721699dark-border-color"><div class="m_7680939424719065334gmail-m_-6327585687057721699quote m_7680939424719065334gmail-m_-6327585687057721699light-border-color">
<div class="m_7680939424719065334gmail-m_-6327585687057721699quote-author" style="font-weight:bold">raman wrote</div><span class="m_7680939424719065334gmail-">
<div class="m_7680939424719065334gmail-m_-6327585687057721699quote-message">Ouch! Sorry. But the LPC17xx is a Cortex clone right? Won't the
<br>regular arm-none-eabi-gcc work? I have never used an mbed target but
<br>why do you want to build your baremetal toolchain?
</div>
</span></div></blockquote>
The GCC ARM Embeddd toolchain should definitely work, and there is indeed very little reason to build your own toolchain. Just download it from here:
<br><br><a href="https://launchpad.net/gcc-arm-embedded" rel="nofollow" target="_blank" link="external">https://launchpad.net/gcc-arm-<wbr>embedded</a><br><br>I used version 4.8 last time I tried, but it should work equally well with newer versions.
<br><br>Best,
<br>Bogdan
<br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:rgb(68,68,68);font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif"><span class="m_7680939424719065334gmail-">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</span><a href="http://elua-development.2368040.n2.nabble.com/Interrupts-on-mbed-tp7578612p7578615.html" target="_blank" rel="nofollow" link="external">http://elua-development.236804<wbr>0.n2.nabble.com/Interrupts-on-<wbr>mbed-tp7578612p7578615.html</a>
</div><div class="m_7680939424719065334gmail-HOEnZb"><div class="m_7680939424719065334gmail-h5">
<div style="color:rgb(102,102,102);font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
To unsubscribe from Interrupts on mbed, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:9px;line-height:normal;font-family:serif" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_7680939424719065334gmail_signature"><div dir="ltr"><div><div>Gabriel Duarte</div>Rio de Janeiro / RJ<br><a href="http://genericdev.wordpress.com/" target="_blank" rel="nofollow" link="external">http://genericdev.wordpress.<wbr>com/</a><br></div></div></div>
</font></span></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Gabriel Duarte</div>Rio de Janeiro / RJ<br><a href="http://genericdev.wordpress.com/" target="_blank" rel="nofollow" link="external">http://genericdev.wordpress.com/</a><br></div></div></div>
</div>
tag:elua-development.15.s1.nabble.com,2006:post-7578616Re: Interrupts on mbed2017-06-26T10:22:44Z2017-06-26T10:22:44Zgduarte
<div dir="ltr">Raman, I wanted to write interruput handlers in, Lua, not even touching C code.<div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><span style="background-color:rgb(246,246,242)">I am going to follow Bogdan's tip and install the toolchain he pointed out.</span></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">Thanks Bogdan for the link.</font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><br></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">I will try to compile eLua for mbed and enable Lua interrupts.</font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif"><br></font></div><div><font color="#03121c" face="helvetica, Arial, sans-serif">Thanks!<br></font><div class="gmail_extra"><br><div class="gmail_quote">2017-06-26 5:23 GMT-03:00 BogdanM [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578616&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<blockquote style="border-left:2px solid rgb(204,204,204);padding:0px 1em" class="gmail-m_-6327585687057721699quote gmail-m_-6327585687057721699dark-border-color"><div class="gmail-m_-6327585687057721699quote gmail-m_-6327585687057721699light-border-color">
<div class="gmail-m_-6327585687057721699quote-author" style="font-weight:bold">raman wrote</div><span class="gmail-">
<div class="gmail-m_-6327585687057721699quote-message">Ouch! Sorry. But the LPC17xx is a Cortex clone right? Won't the
<br>regular arm-none-eabi-gcc work? I have never used an mbed target but
<br>why do you want to build your baremetal toolchain?
</div>
</span></div></blockquote>
The GCC ARM Embeddd toolchain should definitely work, and there is indeed very little reason to build your own toolchain. Just download it from here:
<br><br><a href="https://launchpad.net/gcc-arm-embedded" rel="nofollow" target="_blank" link="external">https://launchpad.net/gcc-arm-<wbr>embedded</a><br><br>I used version 4.8 last time I tried, but it should work equally well with newer versions.
<br><br>Best,
<br>Bogdan
<br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:rgb(68,68,68);font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif"><span class="gmail-">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</span><a href="http://elua-development.2368040.n2.nabble.com/Interrupts-on-mbed-tp7578612p7578615.html" target="_blank" rel="nofollow" link="external">http://elua-development.<wbr>2368040.n2.nabble.com/<wbr>Interrupts-on-mbed-<wbr>tp7578612p7578615.html</a>
</div><div class="gmail-HOEnZb"><div class="gmail-h5">
<div style="color:rgb(102,102,102);font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
To unsubscribe from Interrupts on mbed, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:9px;line-height:normal;font-family:serif" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Gabriel Duarte</div>Rio de Janeiro / RJ<br><a href="http://genericdev.wordpress.com/" target="_blank" rel="nofollow" link="external">http://genericdev.wordpress.com/</a><br></div></div></div>
</div></div></div></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578615Re: Interrupts on mbed2017-06-26T01:23:41Z2017-06-26T01:23:41ZBogdanM
<blockquote class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">raman wrote</div>
<div class="quote-message">Ouch! Sorry. But the LPC17xx is a Cortex clone right? Won't the
<br/>regular arm-none-eabi-gcc work? I have never used an mbed target but
<br/>why do you want to build your baremetal toolchain?
</div>
</div></blockquote>
The GCC ARM Embeddd toolchain should definitely work, and there is indeed very little reason to build your own toolchain. Just download it from here:
<br/><br/><a href="https://launchpad.net/gcc-arm-embedded" target="_top" rel="nofollow" link="external">https://launchpad.net/gcc-arm-embedded</a><br/><br/>I used version 4.8 last time I tried, but it should work equally well with newer versions.
<br/><br/>Best,
<br/>Bogdan
<br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578614Re: how to program2017-06-25T06:34:15Z2017-06-25T06:34:15Zraman
<br/>Dear Daljit,
<br/><br/>> But as a beginer i am using serial cable with RS232 male and female
<br/>> connector. One side in laptop and another in the controller board
<br/>> but my laptop is not detecting anything.
<br/><br/>Perhaps because you're connected on a COM port. Don't you have an FTDI
<br/>interface for your target? If you connect your target board to the PC
<br/>over USB, what does you PC say? (I see your target board comes with
<br/>a USB interface).
<br/><br/>Assuming you're using GNU/Linux, what does `dmesg' say? If you're on
<br/>Windows, the Windows device manager should say something about your
<br/>target.
<br/><br/>R
tag:elua-development.15.s1.nabble.com,2006:post-7578613Re: Interrupts on mbed2017-06-24T19:20:44Z2017-06-24T19:20:44Zraman
<br/>Hi,
<br/><br/>> Hey people! So, today I was struggling to build mbed toolchain on
<br/>> Linux, but unfortunately it's not compiling. Anyway, I tried to get
<br/><br/>Ouch! Sorry. But the LPC17xx is a Cortex clone right? Won't the
<br/>regular arm-none-eabi-gcc work? I have never used an mbed target but
<br/>why do you want to build your baremetal toolchain?
<br/><br/>> some binary image from eLua's webbuilder and noticed that there was
<br/>> no option to build it with interrupt support. There are interrupts
<br/>> available for eLua on mbed or not? Best regards :)
<br/><br/>By interrupts, do you mean in the C world OR do you want to write
<br/>hooks in eLua? I just quickly looked at the source code. It looks like
<br/>the code handles interrupts. The board file for mbed doesn't define
<br/>`cints' and `luaints'. See (for example) the board config file for
<br/>Mizar32-A [1]. It defines both `cints' and `luaints'.
<br/><br/>So, interrupts are off by default on your target. That's OK. Why don't
<br/>you define them and compile the code yourself after you figure out
<br/>a way for your toolchain?
<br/><br/>R
<br/><br/>References:
<br/>[1]: <a href="https://github.com/elua/elua/blob/master/boards/known/mizar32a.lua" target="_top" rel="nofollow" link="external">https://github.com/elua/elua/blob/master/boards/known/mizar32a.lua</a>
tag:elua-development.15.s1.nabble.com,2006:post-7578612Interrupts on mbed2017-06-22T17:03:08Z2017-06-22T17:03:08Zgduarte
Hey people!
So, today I was struggling to build mbed toolchain on Linux, but unfortunately it's not compiling. Anyway, I tried to get some binary image from eLua's webbuilder and noticed that there was no option to build it with interrupt support. There are interrupts available for eLua on mbed or not?
Best regards :)
tag:elua-development.15.s1.nabble.com,2006:post-7578611Re: how to program2017-06-13T08:34:59Z2017-06-13T08:34:59ZDaljit
<div>Thanx raman for your reply</div><div><br></div><div>But as a beginer i am using serial cable with RS232 male and female connector.</div><div>One side in laptop and another in the controller board but my laptop is not detecting anything.</div><div><br></div><div>Please tell me which software should i use to connect them and to transfer my program in the controller</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote"><div>On Mon, Jun 12, 2017 at 12:19 PM raman [via eLua Development] <<a href="/user/SendEmail.jtp?type=node&node=7578611&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>Dear Daljit, greetings!<br><br>> hi everybody I have order STR912FW44X arm board from Olimax.com<br>> <a href="https://www.olimex.com/Products/ARM/ST/STR-E912/" rel="nofollow" link="external" target="_blank">https://www.olimex.com/Products/ARM/ST/STR-E912/</a><br><br>That is great!<br><br>> i am new to this board and dont know how to program this board. i<br>> have used st-link,but the kit is undetectale, if i am using serial<br>> cable to connect it, it does not show any thing, i tried serial to<br>> usb converter it did not work.<br><br>A serial to USB converter - I am not too sure at this point. I didn't<br>have a look at the spec of your board. Do you have something like an<br>FTDI that talks to your chip? There should be a program that talks to<br>your bootloader. What is it? Are you trying to run eLua on your board?<br><br>> i am totally confused that what should i do, i will be very happy if<br>> any one can guide me to solve this mystery.<br><br>Nothing is mysterious (I speak for the benevolent eLua codebase). The<br>problem has always been gaussian noise OR as Wittgenstein says,<br>language; Communication protocols?<br><br>Feel free to write back. Happy hacking! Good day!<br><br>R<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2017 at 12:20, Daljit [via eLua Development] <span><<a href="http:///user/SendEmail.jtp?type=node&node=7578610&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">
hi everybody
<br>I have order STR912FW44X arm board from Olimax.com <a href="https://www.olimex.com/Products/ARM/ST/STR-E912/" rel="nofollow" link="external" target="_blank">https://www.olimex.com/Products/ARM/ST/STR-E912/</a><br><br>i am new to this board and dont know how to program this board.
<br><br>i have used st-link,but the kit is undetectale, if i am using serial cable to connect it, it does not show any thing, i tried serial to usb converter it did not work.
<br><br>i am totally confused that what should i do,
<br><br>i will be very happy if any one can guide me to solve this mystery.
<br><br>thanks in advance
<br><br>
<br>
<br>
<hr size="1" noshade color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/how-to-program-tp7578609.html" rel="nofollow" link="external" target="_blank">http://elua-development.2368040.n2.nabble.com/how-to-program-tp7578609.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under eLua Development, email <a href="http:///user/SendEmail.jtp?type=node&node=7578610&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br>
To unsubscribe from eLua Development, <a rel="nofollow" link="external" target="_top">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
</div></blockquote></div><br></div>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/how-to-program-tp7578609p7578610.html" target="_blank" rel="nofollow" link="external">http://elua-development.2368040.n2.nabble.com/how-to-program-tp7578609p7578610.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from how to program, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578610Re: how to program2017-06-12T09:19:21Z2017-06-12T09:19:21Zraman
<div dir="ltr"><br>Dear Daljit, greetings!<br><br>> hi everybody I have order STR912FW44X arm board from Olimax.com<br>> <a href="https://www.olimex.com/Products/ARM/ST/STR-E912/" target="_top" rel="nofollow" link="external">https://www.olimex.com/Products/ARM/ST/STR-E912/</a><br><br>That is great!<br><br>> i am new to this board and dont know how to program this board. i<br>> have used st-link,but the kit is undetectale, if i am using serial<br>> cable to connect it, it does not show any thing, i tried serial to<br>> usb converter it did not work.<br><br>A serial to USB converter - I am not too sure at this point. I didn't<br>have a look at the spec of your board. Do you have something like an<br>FTDI that talks to your chip? There should be a program that talks to<br>your bootloader. What is it? Are you trying to run eLua on your board?<br><br>> i am totally confused that what should i do, i will be very happy if<br>> any one can guide me to solve this mystery.<br><br>Nothing is mysterious (I speak for the benevolent eLua codebase). The<br>problem has always been gaussian noise OR as Wittgenstein says,<br>language; Communication protocols?<br><br>Feel free to write back. Happy hacking! Good day!<br><br>R<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2017 at 12:20, Daljit [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578610&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi everybody
<br>I have order STR912FW44X arm board from Olimax.com <a href="https://www.olimex.com/Products/ARM/ST/STR-E912/" rel="nofollow" link="external" target="_blank">https://www.olimex.com/<wbr>Products/ARM/ST/STR-E912/</a><br><br>i am new to this board and dont know how to program this board.
<br><br>i have used st-link,but the kit is undetectale, if i am using serial cable to connect it, it does not show any thing, i tried serial to usb converter it did not work.
<br><br>i am totally confused that what should i do,
<br><br>i will be very happy if any one can guide me to solve this mystery.
<br><br>thanks in advance
<br><br>
<br>
<br>
<hr size="1" noshade color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/how-to-program-tp7578609.html" target="_blank" rel="nofollow" link="external">http://elua-development.<wbr>2368040.n2.nabble.com/how-to-<wbr>program-tp7578609.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under eLua Development, email <a href="/user/SendEmail.jtp?type=node&node=7578610&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from eLua Development, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578609how to program2017-06-11T23:50:41Z2017-06-11T23:50:41ZDaljit
hi everybody
<br/>I have order STR912FW44X arm board from Olimax.com <a href="https://www.olimex.com/Products/ARM/ST/STR-E912/" target="_top" rel="nofollow" link="external">https://www.olimex.com/Products/ARM/ST/STR-E912/</a><br/><br/>i am new to this board and dont know how to program this board.
<br/><br/>i have used st-link,but the kit is undetectale, if i am using serial cable to connect it, it does not show any thing, i tried serial to usb converter it did not work.
<br/><br/>i am totally confused that what should i do,
<br/><br/>i will be very happy if any one can guide me to solve this mystery.
<br/><br/>thanks in advance
<br/><br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578608Re: eLua in Uart DaisyChain2017-05-28T02:15:06Z2017-05-28T02:15:06Zraman
<br/>Sorry, I forgot to include the reference to [1].
<br/><br/>R
<br/><br/>References:
<br/>[1]: <a href="http://wiki.eluaproject.net/Tutorials/cmodules" target="_top" rel="nofollow" link="external">http://wiki.eluaproject.net/Tutorials/cmodules</a>
tag:elua-development.15.s1.nabble.com,2006:post-7578607Re: eLua in Uart DaisyChain2017-05-28T02:13:19Z2017-05-28T02:13:19Zraman
<br/>Dear Andreas, greetings!
<br/><br/>Firstly, I'm sorry for the delay in my response. I have been away for
<br/>a while. I really hope this email helps you.
<br/><br/>> what I'm trying to do is chaining multiple STM32F4 Boards in a row
<br/>> connected with UART
<br/><br/>OK. Understand.
<br/><br/>> Board1 UART4 out -> UART1 IN Board 2 UART 4 OUT -> UART1 IN Board3
<br/>> UART4 out ...etc.
<br/><br/>OK. So, can I assume you're running eLua on all the boards?
<br/><br/>> Every Board forwards incoming Data from UART1 to UART4. Now I want
<br/>> to change the shell of eLua, so that, when I add an Adress to a
<br/>> Message on the UART, I can talk to one the Boards.
<br/><br/>Why the shell? The shell is just an interface to invoke `lua' (and
<br/>other handy commands). OR perhaps, by "talk to the boards", you mean
<br/>you want to talk n'th board's shell from the (n - 1)'th board?
<br/><br/>> In plain old C Code I got that communication already implemented,
<br/>> but now I want to add eLua on top of it.
<br/><br/>I am just going to abstract your problem for a moment. Since you tell
<br/>me that you already have your C code that does the UART magic for you,
<br/>why don't you write a personal eLua module for yourself? With that,
<br/>you can access your C code from the Lua running on your boards. Would
<br/>that help you?
<br/><br/>If that's what you're looking for, why don't you quickly try [1]?
<br/>You'll have to do a bit more than what is described in [1] to get
<br/>things to work if you're using the latest version of eLua. Which
<br/>version of eLua are you using?
<br/><br/>> Which IDE do you use to test and debug your Code?
<br/><br/>GNU Emacs works well for me. Sometimes, Eclipse.
<br/><br/>R
tag:elua-development.15.s1.nabble.com,2006:post-7578606Re: eLua in Uart DaisyChain2017-05-16T02:04:15Z2017-05-16T02:04:15ZAndreas
Hi raman,
<br/>what I'm trying to do is chaining multiple STM32F4 Boards in a row connected with UART
<br/><br/>Board1 UART4 out -> UART1 IN Board 2 UART 4 OUT -> UART1 IN Board3 UART4 out ...etc.
<br/><br/>Every Board forwards incoming Data from UART1 to UART4.
<br/>Now I want to change the shell of eLua, so that, when I add an Adress to a Message on the UART, I can talk to one the Boards.
<br/><br/>In plain old C Code I got that communication already implemented, but now I want to add eLua on top of it.
<br/><br/>Which IDE do you use to test and debug your Code?
tag:elua-development.15.s1.nabble.com,2006:post-7578605Re: eLua in Uart DaisyChain2017-05-04T20:17:26Z2017-05-04T20:17:26Zraman
<div dir="ltr"><br>Dear Andreas, greetings!<br><br>> I have eLua on the STM32f4Discovery. Now I want to make an UART<br>> Daisy-Chain with the STM's. My question is, where can I hook in the<br>> Serial Interface (sercon) of lua to manipulate the messages sent<br><br>`sercon' is used to configure the UART channel (channel number) you<br>want to use to interact with the eLua shell (generally set to 0 on<br>multiple eLua targets). Normally, your platform abstraction layer must<br>take care of handling multiple UART channels.<br><br>> over UART. I'd need to add an adress which STM is meant but remove<br>> it before it reaches the eLua Shell or lua-interpreter. I'd be very<br>> happy if you could direct me to the position where I could add my<br>> own communication protocol.<br><br>To process information from UART in eLua, you'll need to touch the<br>eLua API anyway. But if you want to do something without talking to<br>the shell, you may rely on the platform abstraction layer of UART<br>(src/platform/stm32/platform.c) and write additional code in<br>src/main.c before the eLua shell can start.<br><br>But I'm not sure I understand your requirement clearly. Can you please<br>elucidate on that a bit more? May I also ask the type of information<br>you're transmitting? I was wondering is SPI comm is an option for you.<br><br>R<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 May 2017 at 17:49, Andreas [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578605&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,
<br>I have eLua on the STM32f4Discovery. Now I want to make an UART Daisy-Chain with the STM's.
<br>My question is, where can I hook in the Serial Interface (sercon) of lua to manipulate the messages sent over UART.
<br>I'd need to add an adress which STM is meant but remove it before it reaches the eLua Shell or lua-interpreter.
<br>I'd be very happy if you could direct me to the position where I could add my own communication protocol.
<br><br>Thank you in advance.
<br>
<br>
<hr size="1" noshade color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/eLua-in-Uart-DaisyChain-tp7578604.html" target="_blank" rel="nofollow" link="external">http://elua-development.<wbr>2368040.n2.nabble.com/eLua-in-<wbr>Uart-DaisyChain-tp7578604.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under eLua Development, email <a href="/user/SendEmail.jtp?type=node&node=7578605&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from eLua Development, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578604eLua in Uart DaisyChain2017-05-04T05:19:19Z2017-05-04T05:19:19ZAndreas
Hi everyone,
<br/>I have eLua on the STM32f4Discovery. Now I want to make an UART Daisy-Chain with the STM's.
<br/>My question is, where can I hook in the Serial Interface (sercon) of lua to manipulate the messages sent over UART.
<br/>I'd need to add an adress which STM is meant but remove it before it reaches the eLua Shell or lua-interpreter.
<br/>I'd be very happy if you could direct me to the position where I could add my own communication protocol.
<br/><br/>Thank you in advance.
tag:elua-development.15.s1.nabble.com,2006:post-7578603Re: Hello2017-02-25T22:12:56Z2017-02-25T22:12:56Zdinsdale
:-/
<br/><br/>I was hoping someone was going to say "of course there's a binary!"
<br/><br/>Anyway, the good news is the unit comes with a built in flasher that appears as a USB mass storage device. Drop the binary and it sucks it down and reboots the system. Neat.
<br/><br/>Ah, if only I had any idea of what I am doing... Down the rabbit hole Alice!
<br/><br/>:D
<br/>Dinsdale
tag:elua-development.15.s1.nabble.com,2006:post-7578602Re: Hello2017-02-25T07:25:22Z2017-02-25T07:25:22ZBogdanM
Hi,
<br/><br/>That's great news! The easiest way to proceed is to base your port on an existing one for a similar part, and it seems that you're already doing that. And yes, taking notes will likely benefit other people trying to write a port, so by all means, go for it!
<br/><br/>Best,
<br/>Bogdan
<br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578601Hello2017-02-25T00:58:29Z2017-02-25T00:58:29Zdinsdale
Hi There,
<br/><br/>I had a peak at eLua a little while back and thought it was really exciting and now someone has dropped a Kinetis starter board on my lap. It's a FRDM-K22F and seems to be quite the spiffy little unit.
<br/><br/>MK22FN512VLH12 MCU - 120 MHz, 512 KB flash memory, 128 KB RAM, low-power, and crystal-less USB in 64 LQFP package
<br/><br/>I'd love to get started with a binary if possible. Either way, let me know if there is a specific build path I should take, but there seems to be some good documentation and a specific git repo for Kinetis sources.
<br/><br/>I'm hoping to cross build on FreeBSD 11 with clang (I can cross build FreeBSD to armv6/7) but if that's getting a little to ambitious I'll use Debian Jessie.
<br/><br/>I'm happy to take notes and pass them along if so desired.
<br/><br/>Cheers,
<br/><br/>Russ
<br/><br/>
tag:elua-development.15.s1.nabble.com,2006:post-7578600Re: STM32 with external SRAM2017-02-20T01:18:46Z2017-02-20T01:18:46Zraman
<div dir="ltr"><br>Dear Pito,<br><br>> Hi, I got an STM32F103ZET6 board from ebay, and added 512kB large<br>> SRAM via the FSMC interface. The board got the pcb pads for a<br>> standard 44pin tsop Sram (ie. 10ns, 3.3V, 256k x 16, cheap) ready.<br><br>Great!<br><br>> Is there any chance to enhance the build generator such it allows<br>> inclusion of an external Sram for the Lua bytecode?<br><br>The build generator can already handle this. Take for instance the<br>XMC4500 platform [1]. In your case, the FSMC initialization code can<br>be conditionally invoked in your platform_init.<br><br>You would then have to tell the build generator about your additional<br>SRAM in your cpu file. The Lua build file (for example, [2]) will<br>specify the total number of RAM blocks. The memory allocator will then<br>use the additional RAM for heap.<br><br>R<br><br>References:<br>[1]: <a href="https://github.com/elua/elua/blob/master/src/platform/xmc4000/cpu_xmc4500e144k1024.h" target="_blank" rel="nofollow" link="external">https://github.com/elua/elua/<wbr>blob/master/src/platform/<wbr>xmc4000/cpu_xmc4500e144k1024.h</a><br>[2]: <a href="https://github.com/elua/elua/blob/master/boards/known/xmc4500-hexagon-sdram.lua" target="_blank" rel="nofollow" link="external">https://github.com/elua/elua/<wbr>blob/master/boards/known/<wbr>xmc4500-hexagon-sdram.lua</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 February 2017 at 19:39, Pito [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578600&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I got an STM32F103ZET6 board from ebay, and added 512kB large SRAM via the FSMC interface. The board got the pcb pads for a standard 44pin tsop Sram (ie. 10ns, 3.3V, 256k x 16, cheap) ready.
<br><br>It works fine. For the eLua the variant where the external Sram would be used as the HEAP seems to me the most attractive. The board allows up to 1MB of external Sram. The speed penalty is not bad. See more on
<br><a href="http://www.stm32duino.com/viewtopic.php?f=28&t=1651&start=140" rel="nofollow" link="external" target="_blank">http://www.stm32duino.com/<wbr>viewtopic.php?f=28&t=1651&<wbr>start=140</a><br><br>I've been thinking to deploy eLua on that board, with the Heap (~512kB) used for the bytecode, and the internal mcu ram (64kB) for the interpreter and buffers. The initialization of the FSMC is easy, a few lines of code.
<br><br>Is there any chance to enhance the build generator such it allows inclusion of an external Sram for the Lua bytecode?
<br>
<br>
<hr size="1" noshade color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/STM32-with-external-SRAM-tp7578599.html" target="_blank" rel="nofollow" link="external">http://elua-development.<wbr>2368040.n2.nabble.com/STM32-<wbr>with-external-SRAM-tp7578599.<wbr>html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under eLua Development, email <a href="/user/SendEmail.jtp?type=node&node=7578600&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from eLua Development, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578599STM32 with external SRAM2017-02-19T07:09:50Z2017-02-19T07:09:50ZPito
Hi, I got an STM32F103ZET6 board from ebay, and added 512kB large SRAM via the FSMC interface. The board got the pcb pads for a standard 44pin tsop Sram (ie. 10ns, 3.3V, 256k x 16, cheap) ready.
<br/><br/>It works fine. For the eLua the variant where the external Sram would be used as the HEAP seems to me the most attractive. The board allows up to 1MB of external Sram. The speed penalty is not bad. See more on
<br/><a href="http://www.stm32duino.com/viewtopic.php?f=28&t=1651&start=140" target="_top" rel="nofollow" link="external">http://www.stm32duino.com/viewtopic.php?f=28&t=1651&start=140</a><br/><br/>I've been thinking to deploy eLua on that board, with the Heap (~512kB) used for the bytecode, and the internal mcu ram (64kB) for the interpreter and buffers. The initialization of the FSMC is easy, a few lines of code.
<br/><br/>Is there any chance to enhance the build generator such it allows inclusion of an external Sram for the Lua bytecode?
tag:elua-development.15.s1.nabble.com,2006:post-7578598Re: Test code for eLua2017-01-28T03:22:37Z2017-01-28T03:22:37Zraman
<div dir="ltr"><br>Dear Kapsky,<br><br>> Yes. I mean eLua functions writen in C. To test if everything<br>> works correctly.<br><br>OK. You perhaps mean eLua examples. So, if you want to play with the<br>MCU peripherals, you can look into examples like `tvbgone' [1] OR the<br>LM3S games which you can find here [2]. You can steal parts of it OR<br>adapt it and write your test functions around it. An ADC poll example<br>also lives in [2]. But that runs on LM3S. You can always get it to<br>work on another target platform.<br><br>The SimpleMachines community maintains a reference manual for its<br>Mizar32 board on Wikibooks. It contains an eLua example (and a<br>corresponding PicoLisp example) for almost every HW peripheral on the<br>MCU. You can find it in [3]. I hope this helps you. Feel free to write<br>back if you get stuck. Have a lot of fun with your board!<br><br>R<br><br>References:<br>[1]: <a href="https://github.com/elua/tvbgone/blob/master/tvbgone.lua" target="_top" rel="nofollow" link="external">https://github.com/elua/tvbgone/blob/master/tvbgone.lua</a><br>[2]: <a href="https://github.com/elua/lm3s_games/tree/master/romfs" target="_top" rel="nofollow" link="external">https://github.com/elua/lm3s_games/tree/master/romfs</a><br>[3]: <a href="https://en.wikibooks.org/wiki/Mizar32" target="_top" rel="nofollow" link="external">https://en.wikibooks.org/wiki/Mizar32</a><br><br><div class="gmail_extra"><br></div></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578597Re: Test code for eLua2017-01-27T08:48:35Z2017-01-27T08:48:35Zkapsky
Yes. I mean eLua functions writen in C. To test if everything works correctly.
tag:elua-development.15.s1.nabble.com,2006:post-7578596Re: Test code for eLua2017-01-25T23:09:21Z2017-01-25T23:09:21Zraman
<div dir="ltr"><br>Dear Kapsky,<br><br>> Does exist a code for testing eLua C functions ? I mean code that I<br>> can run and test functions and errors.<br><br>I am not sure I understand what you want to do. By "eLua C functions",<br>do you perhaps mean the eLua modules written in C?<br><br>R<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 January 2017 at 21:26, kapsky [via eLua Development] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=7578596&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does exist a code for testing eLua C functions ?
<br>I mean code that I can run and test functions and errors.
<br><br>I am also looking for simpy test code in Lua.
<br><br>If you have some ideas where can I find it, please let me know.
<br><br>Tomek
<br>
<br>
<hr color="#cccccc" noshade size="1">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://elua-development.2368040.n2.nabble.com/Test-code-for-eLua-tp7578595.html" target="_blank" rel="nofollow" link="external">http://elua-development.<wbr>2368040.n2.nabble.com/Test-<wbr>code-for-eLua-tp7578595.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under eLua Development, email <a href="/user/SendEmail.jtp?type=node&node=7578596&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from eLua Development, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://elua-development.2368040.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
tag:elua-development.15.s1.nabble.com,2006:post-7578595Test code for eLua2017-01-23T08:56:29Z2017-01-23T08:56:29Zkapsky
Does exist a code for testing eLua C functions ?
<br/>I mean code that I can run and test functions and errors.
<br/><br/>I am also looking for simpy test code in Lua.
<br/><br/>If you have some ideas where can I find it, please let me know.
<br/><br/>Tomek