Search found 404 matches

by jimmo
Sun Aug 18, 2019 12:45 pm
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 10
Views: 178

Re: Freezing modules having native and viper functions

OK thanks for the detailed repro instructions. It looks like I might be able to run this code without anything connected and the driver won't complain, hopefully can repro that way. Will let you know.

Otherwise...might just have to order one of those displays... :)
by jimmo
Sun Aug 18, 2019 12:36 pm
Forum: MicroPython pyboard
Topic: Timers don't start on hard reset, but work fine after soft reset
Replies: 6
Views: 91

Re: Timers don't start on hard reset, but work fine after soft reset

If init() is like the instantiator of a class, it should clear the callback. I agree the documentation could be clearer, but you are correct. The general design of all of these classes (and this has been carried into the "machine" module equivalents) is that init() is the same as completely reconst...
by jimmo
Sun Aug 18, 2019 12:26 pm
Forum: ESP8266 boards
Topic: Control-C program via rshell etc
Replies: 4
Views: 67

Re: Control-C program via rshell etc

I have an infinite loop running on my ESP8266 Is this just a "while True: pass". What you're describing _should_ work, so sounds like there's a bug somewhere. Do you still have the console connected to the serial port when you run rshell? The more practical way is to have main.py look like this The...
by jimmo
Sat Aug 17, 2019 5:27 am
Forum: Other Boards
Topic: nRF52832 DK compile and link errors
Replies: 7
Views: 92

Re: nRF52832 DK compile and link errors

I'm not very familiar with the NRF boards, but some things to check: - Are you definitely using the right COM port in Putty. - Have you set the baud rate to 115200 (that's configured in ports/nrf/main.c) - Did you press enter once it connected to get the prompt? More info about how the USB->UART wor...
by jimmo
Fri Aug 16, 2019 6:34 am
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 10
Views: 178

Re: Freezing modules having native and viper functions

I think I've found the bug and why it's different between .mpy and frozen. It's because of QSTR handling, and the additional optimisation that the freezing process uses to share the QSTR database with the main build. I'll write up a github bug (or fix if the solution becomes obvious while writing it...
by jimmo
Fri Aug 16, 2019 3:19 am
Forum: Pyboard D-series
Topic: STM32F722 +LCD160CR v1.1, WBUS pins
Replies: 4
Views: 105

Re: STM32F722 +LCD160CR v1.1, WBUS pins

Ah cool thanks for letting me know. I was wondering what the v1.1 difference was!

Sorry about the incorrect info! Hopefully there's some useful stuff in there though that can help you. Maybe the EN_3V3 is what you need?

I'll try and find out about getting the v1.1 schematic uploaded.
by jimmo
Thu Aug 15, 2019 1:23 pm
Forum: Pyboard D-series
Topic: STM32F722 +LCD160CR v1.1, WBUS pins
Replies: 4
Views: 105

Re: STM32F722 +LCD160CR v1.1, WBUS pins

hi, WBUS is a pyboard-d thing only -- it refers to the two connectors on the bottom of the pyboard-d (that connect it to things like the wbus-mmc, wbus-dip28, etc). I think what you're describing when you say WBUS is actually the X and Y "positions" used on both pyboard 1.x and pyboard-d. Each of th...
by jimmo
Thu Aug 15, 2019 1:06 pm
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 10
Views: 178

Re: Freezing modules having native and viper functions

Yeah I'm pretty sure this is supposed to work. Can you please raise a bug. Some things to try though: does it work as an .mpy on the filesystem, rather than freezing? And are you using git master or at the v1.11 tag? And you've done "make" in mpy-cross?
by jimmo
Thu Aug 15, 2019 12:57 pm
Forum: Other Boards
Topic: nRF52832 DK compile and link errors
Replies: 7
Views: 92

Re: nRF52832 DK compile and link errors

I'm just using my distro's version (Arch Linux, 64bit). What distro are you using? (I'm not sure what you mean by "vmware linux" sorry) You can download arm-none-eabi-gcc directly at https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads but ...