Development environment for MicroPython on Linux?
Posted: Fri Nov 11, 2016 2:48 pm
Hi,
I run MicroPython on my STM32F7Disco board. I manage to build/run it fairly easy.
Now, I would like to run the code in a debugging environment, modify the code, debug, single stepping,...
I'm used to do this in Windows, using J-Link and IAR and tools from the projet GNU ARM Eclipse.
I would like to the the same with the STM32F7Disc board, which doesn't have the JTAG header, but it is equiped with the STLINKv2.
So, I installed the GNU ARM Eclipse tools on my Linux machine, and followed information from http://gnuarmeclipse.github.io/debug/install/ in order to use STLink with OpenOCD (http://gnuarmeclipse.github.io/debug/install/) and the stlink GDB server from texane (https://github.com/texane/stlink).
But they do not work really well...
Using OpenOCD via Eclispse, I sometimes manage to connect to the board (it seems that I need to push the button reset when it is connecting?), then it seems to upload the binary file, and I can debug the application, but it is very slow, I see a lot of timeout errors and it often loose the connection with the debugger.
The STlink tool from Texane recognize the board, upload the binary, but the debugger fails on an error (Failed to execute MI command:
monitor reg).
My question is : does anyone have a working debug environment for micropython? What do you use? on which board?
Is it even possible to debug/single step into the code (mostly into the low level part of the code)?
Thanks!
I run MicroPython on my STM32F7Disco board. I manage to build/run it fairly easy.
Now, I would like to run the code in a debugging environment, modify the code, debug, single stepping,...
I'm used to do this in Windows, using J-Link and IAR and tools from the projet GNU ARM Eclipse.
I would like to the the same with the STM32F7Disc board, which doesn't have the JTAG header, but it is equiped with the STLINKv2.
So, I installed the GNU ARM Eclipse tools on my Linux machine, and followed information from http://gnuarmeclipse.github.io/debug/install/ in order to use STLink with OpenOCD (http://gnuarmeclipse.github.io/debug/install/) and the stlink GDB server from texane (https://github.com/texane/stlink).
But they do not work really well...
Using OpenOCD via Eclispse, I sometimes manage to connect to the board (it seems that I need to push the button reset when it is connecting?), then it seems to upload the binary file, and I can debug the application, but it is very slow, I see a lot of timeout errors and it often loose the connection with the debugger.
The STlink tool from Texane recognize the board, upload the binary, but the debugger fails on an error (Failed to execute MI command:
monitor reg).
My question is : does anyone have a working debug environment for micropython? What do you use? on which board?
Is it even possible to debug/single step into the code (mostly into the low level part of the code)?
Thanks!