Search found 3109 matches

by dhylands
Mon Apr 15, 2019 2:33 pm
Forum: Other Boards
Topic: Impossible to upload, save or create program on stm32l432kc
Replies: 6
Views: 137

Re: Impossible to upload, save or create program on stm32l432kc

What platform will you be building on? Linux is probably the easiest.
by dhylands
Mon Apr 15, 2019 4:06 am
Forum: ESP8266 boards
Topic: Bignum limitations on ESP8266 boards
Replies: 3
Views: 118

Re: Bignum limitations on ESP8266 boards

You can use python's try:/except: mechanism.
https://docs.python.org/3/tutorial/errors.html
by dhylands
Sun Apr 14, 2019 11:52 pm
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 144

Re: why do my numbers not skip

A ltimer interrupt won't interrupt itself, so changing the callback to something and then changing it back is essentially a noop. Passing the timer object to the callback allows the same callback to be used for multiple timers and be able to deal which timer is being called for.
by dhylands
Sat Apr 13, 2019 5:37 am
Forum: General Discussion and Questions
Topic: Problem with cursor keys with VScode
Replies: 5
Views: 120

Re: Problem with cursor keys with VScode

rshell --help shows the command line options.

You can use rshell -p COM3 (replace COM3 with the name of the serial port)

Documentation is available here: https://github.com/dhylands/rshell
by dhylands
Fri Apr 12, 2019 9:23 pm
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 16
Views: 515

Re: Custom port A9G module: help wanted

It would seem that way. You can put #if defined(read) #undef read #endif in your code after the #includes However, read seems pretty generic and that #define might mess up other things which you might not be able to fix as easily (just a heads up) If the #include file containing the #define read is ...
by dhylands
Fri Apr 12, 2019 6:45 pm
Forum: General Discussion and Questions
Topic: Newbie trying to run microPython on NUCLEO-F302R8
Replies: 1
Views: 41

Re: Newbie trying to run microPython on NUCLEO-F302R8

The F3 series doesn't yet have any support on micropython. The issue is that the peripherals are slightly different from the other families like the L4 or F4.

Somebody else started to work on the F3, but I don't think that they've got it completely working yet.
by dhylands
Fri Apr 12, 2019 6:43 pm
Forum: Other Boards
Topic: Impossible to upload, save or create program on stm32l432kc
Replies: 6
Views: 137

Re: Impossible to upload, save or create program on stm32l432kc

Unfortunately - no. You'll need to rebuild the firmware with your new frozen module. What I would probably do in a case like this is to pick a part with a larger flash and do your development on that, and then deploy on the smaller device, especially while you're learning. The NUCLEO-L476RG is also ...
by dhylands
Fri Apr 12, 2019 3:16 pm
Forum: Other Boards
Topic: Impossible to upload, save or create program on stm32l432kc
Replies: 6
Views: 137

Re: Impossible to upload, save or create program on stm32l432kc

The NUCLEO_L432KC board doesn't have an internal file system. All python code needs to be included in the firmware as frozen modules.
by dhylands
Fri Apr 12, 2019 3:14 pm
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 16
Views: 515

Re: Custom port A9G module: help wanted

To figure out what's going on, you need to look at the preprocessed source file. On the pyboard, there is a rule in the makefile to create preprocessed files. If, for example, I was trying to see the preprocessed file for ports/stm32/adc.c it produces an object file build-PYBV11/adc.o so I could ask...