Best way to write complex code STM32FDIC

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Posts: 11
Joined: Sun Jun 28, 2015 6:53 pm

Best way to write complex code STM32FDIC

Post by sajulios » Sun Aug 02, 2015 11:21 pm

Hi team

When writing code with micropython and debugging it, which would be the best way, from your experience , to do it?

I have read that it can be done in two ways ,write an script and then load it to they pyboard using or use an SD card.

But, if you do this how can you debug your programs?
Is there a way to get printf's messages on the REPL window?
How can I execute my code (in a file on my lap or on the SD card) from the REPL window so that I can view the printf debug messages?, is this possible?


User avatar
Posts: 3212
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada

Re: Best way to write complex code STM32FDIC

Post by dhylands » Mon Aug 03, 2015 1:38 am

When debugging, I don't use

Instead, I copy my files to the pyboard's filesystem (these days I use rshell: ... ter/rshell) and then from the REPL, I do import myscript (where the file is called Then I get to see all of the error messages on the REPL. is good for small, single-file stuff, but I use the REPL for larger stuff. Then when I'm happy, I'll add an import to

rshell is still a bit rough around the edges, but I'll definitely be making improvements.

Post Reply