Search found 7 matches
- Wed Jun 21, 2017 5:05 am
- Forum: Other Boards
- Topic: micropython variable argument macro define compilation errors with keilv5.18
- Replies: 1
- Views: 2191
micropython variable argument macro define compilation errors with keilv5.18
I was using micropython library for my project with CoIDE with gcc tool chain. There is no problem of compilation. Later i shifted to Keil IDE with armcc tool chain. But i have compilation errors in variable argument macro defines code. In micropython/py/grammar.h file the following macro defines ar...
- Tue Jun 20, 2017 4:50 am
- Forum: Other Boards
- Topic: micropython assembly code compilation error with keil v5.18
- Replies: 0
- Views: 1654
micropython assembly code compilation error with keil v5.18
I was using micropython library for my project with CoIDE with gcc tool chain. There is no problem of compilation. Later i shifted to Keil IDE with armcc tool chain. But i have compilation errors in assembly code. In micropython/py/nlrthumb.c file the following error message was thrown out O __attri...
- Thu Mar 02, 2017 10:15 am
- Forum: Development of MicroPython
- Topic: Memory Leak on Micropython Port
- Replies: 14
- Views: 12057
Re: Memory Leak on Micropython Port
Hi Dave, The micropython interpreter does not have collect function in gc.c file. But it was written in a separate file as gc_collect() function. So i am not sure whether this function is correct. Following is the coding in gc_collect function char* stack_top; void gc_collect(void) { // WARNING: Thi...
- Tue Jan 31, 2017 6:38 am
- Forum: Development of MicroPython
- Topic: Memory Leak on Micropython Port
- Replies: 14
- Views: 12057
Re: Memory Leak on Micropython Port
Hi dave, Let me explain waht is my test case. I write python code on cloud editor on cloud server. on server side this code is validated syntactically. This code is loaded into the device remotely. In the device micro python interpreter runs. Now the cloud editor is for the user to write the python....
- Tue Jan 31, 2017 5:01 am
- Forum: Development of MicroPython
- Topic: Memory Leak on Micropython Port
- Replies: 14
- Views: 12057
Re: Memory Leak on Micropython Port
Hi dave, Thanks In my project MICROPY_ENABLE_GC already enabled. How to identify end of the loop in mycro python? Is it in function mp_parse() of parse.c file? Suppose i run mycro python code which contains infinite loop then how will break the loop based on some condition? Exactly which file and wh...
- Mon Jan 30, 2017 7:18 am
- Forum: Development of MicroPython
- Topic: Memory Leak on Micropython Port
- Replies: 14
- Views: 12057
Re: Memory Leak on Micropython Port
Hi, When executing python code we have observed memory leaks as was posted earlier. To work around this problem, mp_init(), do_str() function calls of python interpreter are invoked whenever code is executed. The above solution is working for python code without loops. When loops are added in the py...
- Mon Jan 16, 2017 10:18 am
- Forum: Development of MicroPython
- Topic: Memory Leak on Micropython Port
- Replies: 14
- Views: 12057
Re: Memory Leak on Micropython Port
Hi I am the member of the team working on the MycroPython project ported on to Cortex M4. The following is the detailed description of the problem i am facing. I have kept debug trace of memory allocation and freeing, and found that some of the addresses allocated are not freed. These allocations ar...