Search found 23 matches

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

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

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

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

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...
by nherriot
Tue Jun 18, 2019 11:19 am
Forum: Pyboard D-series
Topic: Using Timers on Pyboard 'D'.
Replies: 5
Views: 1105

Re: Using Timers on Pyboard 'D'.

I didn't check in detail, but it looks like the callback method runs inside the interrupt service routine. This should be avoided because of several restrictions that apply to IRQ handlers. One of these restrictions is a locked heap within IRQ handlers. To circumvent this, the IRQ service routine m...
by nherriot
Mon Jun 17, 2019 3:58 pm
Forum: Pyboard D-series
Topic: Using Timers on Pyboard 'D'.
Replies: 5
Views: 1105

Using Timers on Pyboard 'D'.

Hi Micropython'ers, I'm scratching my head at what on the face of it is a simple problem. And looking for some advice. I'm writing a simple Wifi_manager class for a project I'm on which simply monitors my Wifi connection and if it drops, tries to re-connect. To solve this problem, when the user uses...
by nherriot
Tue May 28, 2019 11:40 am
Forum: Pyboard D-series
Topic: i2c woe on pyboard d
Replies: 9
Views: 1582

Re: i2c woe on pyboard d

So much information! Yikes! :shock: OK - so i think I've got the jist of the previous posts. Please correct if I got anything wrong. 1) The actually Microprocessor (STM32F7) has 4 I2C buses. 2) The pyboard D uses 2 of the possible 4 and allows you to use them in your program using 'machine' or 'pyd'...
by nherriot
Wed May 22, 2019 4:46 pm
Forum: Pyboard D-series
Topic: i2c woe on pyboard d
Replies: 9
Views: 1582

Re: i2c woe on pyboard d

Hi Thomas, thanks for the quick reply! :D And explanations! When you say: "On PYBD there are up to four HW I2C channels that can be mapped to several pins" I could only see 2 x I2C bus' on the pbd.io site from the image here: https://store.micropython.org/media/products/PYBD_SF2_W4F2_ds2.jpg The PYB...
by nherriot
Fri May 17, 2019 3:44 pm
Forum: Pyboard D-series
Topic: i2c woe on pyboard d
Replies: 9
Views: 1582

i2c woe on pyboard d

Been pulling my hair out trying to get I2C working on the new board. And I mean this in terms of following examples and documentation. In a nut shell - can someone point me to a clearly written piece of documentation that 'just works' in doing something like: >>> i2c.scan() [60] So what I would love...
by nherriot
Wed Apr 17, 2019 3:59 pm
Forum: Pyboard D-series
Topic: Tile-Sensa Test Program
Replies: 7
Views: 924

Tile-Sensa Test Program

Hi all, I've cleaned up and adapted a simple test program which may help people when working with the TILE-SENSA tile and the new pyboard D. It simply contains an object definition (class) called TileOne which initializes the sensors for humidity and temperature and also sets up the 'buzzer' (this r...