Search found 19 matches

by nherriot
Tue Sep 17, 2019 10:37 am
Forum: Pyboard D-series
Topic: Socket problems on Pyboard 'D'
Replies: 1
Views: 65

Socket problems on Pyboard 'D'

Hi MicroPython, I'm working with a tiny micro-webserver running on my pyboard 'D'. The link explains how to get the code up and running on the pyboard 'D'. I've noticed that for large files (for me an png image of 71k) that sometimes the whole image will not be returned. The board seems to hang slig...
by nherriot
Thu Jul 25, 2019 4:18 pm
Forum: Pyboard D-series
Topic: LED intensity on Pyboard D
Replies: 1
Views: 149

LED intensity on Pyboard D

Hi Micropython Folks, just a quick question. I've tried using the '.intensity(<value>) method on the LED lights on the pyboard d. The intensity method does not seem to have any effect on brightness, except really to have it switch off or on as in: >>> LED(3).intensity(0) will switch my 'Blue' LED of...
by nherriot
Mon Jul 01, 2019 5:53 pm
Forum: Pyboard D-series
Topic: Building from source - can't find stdio.h ! :-(
Replies: 6
Views: 274

Re: Building from source - can't find stdio.h ! :-(

The readme does have a pointer to the arm toolchain in the STM32 section: https://github.com/micropython/micropython#the-stm32-version Hi dhylands, thanks for the pointer. :-) I've created a specific page for people coming from a version of Ubuntu 16 or derivative which might help for them trying t...
by nherriot
Fri Jun 28, 2019 11:17 am
Forum: Pyboard D-series
Topic: building for BOARD=PYBD_SF to get _threads compiled in
Replies: 5
Views: 280

Re: building for BOARD=PYBD_SF to get _threads compiled in

And since the stm32 port has: https://github.com/micropython/micropython/blob/ced340d739e84737dd5c8e6b4ab9af2ea44e29e7/ports/stm32/mpconfigport.h#L130-L132 the setting in py/mpconfig.h will be ignored. Hi Dhylands, that did the trick. :-) Thank you. My board now has _thread compiled in! And seems t...
by nherriot
Thu Jun 27, 2019 7:08 am
Forum: Pyboard D-series
Topic: building for BOARD=PYBD_SF to get _threads compiled in
Replies: 5
Views: 280

Re: building for BOARD=PYBD_SF to get _threads compiled in

By accident I just did this yesterday with my pyboard d series sf2, and it worked without issues, using the compiler switch you have mentioned. What fault did you observe? Does import _thread not work? btw You dont have to set the compiler switch in py/mpconfig.h. just set it in your board specific...
by nherriot
Wed Jun 26, 2019 4:21 pm
Forum: Pyboard D-series
Topic: building for BOARD=PYBD_SF to get _threads compiled in
Replies: 5
Views: 280

building for BOARD=PYBD_SF to get _threads compiled in

Hi Micropython Folks, And my saga continues! I now have a working build system on my Linux Mint18 machine - thanks to all the help from the community! The reason for me wanting to compile for the PYBD_SF2 is that I need threads compiled into my firmware. I know it's experimental but it's good enough...
by nherriot
Wed Jun 26, 2019 1:41 pm
Forum: Pyboard D-series
Topic: Building from source - can't find stdio.h ! :-(
Replies: 6
Views: 274

Re: Building from source - can't find stdio.h ! :-(

I suspect that you need to install libnewlib-arm-none-eabi (i.e. sudo apt install libnewlib-arm-none-eabi) The fact that the make ran the compiler implies that arm-none-eabi-gcc is already being used, and that the C runtime library is being used. I normally don't use the districution supplied toolc...
by nherriot
Wed Jun 26, 2019 9:48 am
Forum: Pyboard D-series
Topic: Building from source - can't find stdio.h ! :-(
Replies: 6
Views: 274

Re: Building from source - can't find stdio.h ! :-(

You'll need to use the cross compiler arm-none-eabi-gcc Can you try checking which version of that you have installed? (just run "arm-none-eabi-gcc -- version") Thanks for the help. :-) ... Yes i realised that this was missing from the instructions on the WiKi already and added them. But i had no i...
by nherriot
Tue Jun 25, 2019 5:05 pm
Forum: Pyboard D-series
Topic: Building from source - can't find stdio.h ! :-(
Replies: 6
Views: 274

Building from source - can't find stdio.h ! :-(

Hi Micropython Folks, OK - I'm trying to build from source and have even managed to add some help on the wiki https://github.com/micropython/micropython/wiki/Getting-Started However, I have a build problem on my main Linux Mint Release 18. I think it's an environment problem - but no idea 'how' to s...
by nherriot
Thu Jun 20, 2019 11:28 am
Forum: Pyboard D-series
Topic: Using Timers on Pyboard 'D'.
Replies: 5
Views: 336

Re: Using Timers on Pyboard 'D'.

Ensuring a resilient WiFi connection is non trivial. Maintaining a WiFi connection in the face of inevitable outages is best achieved using asynchronous programming ( uasyncio ). This enables better control than timers which can kick in at any point in the code. this doc describes the technical iss...