Search found 22 matches

by nherriot
Thu Sep 26, 2019 1:02 pm
Forum: Pyboard D-series
Topic: HTTPS for HTTP Servers
Replies: 0
Views: 126

HTTPS for HTTP Servers

Hi all micropython folks, this is more of an open question. I'm looking for any good examples or guides to implement TLS/SSL over a TCP socket stream. i.e. I have an issue with my microWebSrv in that it only serves HTTP, but it needs to server over HTTPS due to a new security feature which is now im...
by nherriot
Thu Sep 26, 2019 12:58 pm
Forum: Pyboard D-series
Topic: Socket problems on Pyboard 'D'
Replies: 3
Views: 288

Re: Socket problems on Pyboard 'D'

Hi Jean-Christophe, will try this out later in the week. Thanks for your reply and commit! :-) Just to let you know I ended up using the logging library to find out what exceptions were happening. They were time-out OS related. So your fix would probably not help the underlying condition. I added lo...
by nherriot
Mon Sep 23, 2019 2:34 pm
Forum: Pyboard D-series
Topic: I2C buses dead after firmware upgrade
Replies: 4
Views: 350

Re: I2C buses dead after firmware upgrade

I think there was a change since the original firmware to not enable the external bus supply by default. You can control this with the 'EN_3V3' pin: >>> i2c = machine.I2C('Y') >>> i2c.scan() [] >>> machine.Pin.board.EN_3V3.value(1) >>> i2c.scan() [60] Does anyone know why this has been done! This t...
by nherriot
Tue Sep 17, 2019 10:37 am
Forum: Pyboard D-series
Topic: Socket problems on Pyboard 'D'
Replies: 3
Views: 288

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: 224

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: 397

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: 6
Views: 455

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: 6
Views: 455

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: 6
Views: 455

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: 397

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...