Search found 401 matches

by devnull
Tue Nov 05, 2019 3:51 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 759

Re: waiting for an interrupt flag to be set

If the function is reading the value of self.connected inside the tight loop when self.connected is being modified by the interrupt will this cause problems ??
by devnull
Tue Nov 05, 2019 3:19 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 759

waiting for an interrupt flag to be set

This seems to work erratically for me. In an ISR, I set a boolean Flag, i.e. self.connected, and then in a function I tight-loop waiting for this flag to be set: While not self.connected: pass do something when connected Now sometimes this works, and sometimes it does not, is there any way to do thi...
by devnull
Mon Nov 04, 2019 11:08 pm
Forum: Pyboard D-series
Topic: Reading Multiple Bluetooth Beacons
Replies: 3
Views: 464

Re: Reading Multiple Bluetooth Beacons

Thanks Jimmo; That works really well, I have expanded on it and fixed a couple of typos but it pretty much works out of the box. But how can I disconnect a peripheral and destroy it's class instance, or allow disconnect & reconnect of an instance ? def connect(self): self._central._connecting_periph...
by devnull
Mon Nov 04, 2019 2:30 am
Forum: Pyboard D-series
Topic: Reading Multiple Bluetooth Beacons
Replies: 3
Views: 464

Reading Multiple Bluetooth Beacons

Have really been struggling with multiple connections to multiple devices and being able to asynchronously read the data from each beacon and return that data to other code for further processing. Dealing with a single connection and a single read is pretty simple, but when you have multiple devices...
by devnull
Sun Nov 03, 2019 12:57 am
Forum: Pyboard D-series
Topic: Where are my Frozen Modules ??
Replies: 8
Views: 464

Re: Where are my Frozen Modules ??

OK, this does it in the make command, but how can I add this to GNUmakefile ?

Code: Select all

MAKE="make -j8 BOARD=PYBD_SF6 FROZEN_MANIFEST="" FROZEN_MPY_DIR=$UPYDIR/modules"
by devnull
Sat Nov 02, 2019 11:38 pm
Forum: Pyboard D-series
Topic: Where are my Frozen Modules ??
Replies: 8
Views: 464

Re: Where are my Frozen Modules ??

Hi Robert;

Thanks, how would you define that in GNUmakefile ?

What is the fastest way to keep it working as before ?
by devnull
Sat Nov 02, 2019 11:45 am
Forum: Pyboard D-series
Topic: Where are my Frozen Modules ??
Replies: 8
Views: 464

Re: Where are my Frozen Modules ??

Hi Robert;

That does not seem to be the case, hence the first post ?!
by devnull
Sat Nov 02, 2019 11:21 am
Forum: Pyboard D-series
Topic: Where are my Frozen Modules ??
Replies: 8
Views: 464

Re: Where are my Frozen Modules ??

Thanks Peter, that explains it very well, so it now uses a board-level manifest file instead of a device-level modules folder.

That now shifts the control down 1 level to the board instead of device.
by devnull
Sat Nov 02, 2019 3:33 am
Forum: Pyboard D-series
Topic: DFU flashing 2nd partition takes 20 minutes
Replies: 9
Views: 519

Re: DFU flashing 2nd partition takes 20 minutes

I measured the idle current consumption to be about 90ma, but I am able to access the REPL so the device is certainly not dead, but partially disabled !

Does this mean that it is time for the bin ??
by devnull
Sat Nov 02, 2019 3:30 am
Forum: Pyboard D-series
Topic: Where are my Frozen Modules ??
Replies: 8
Views: 464

Where are my Frozen Modules ??

All my clones, updates and builds are controlled by several bash scripts, during the build process one of the scripts creates symbolic links to the modules folder: i.e ports/stm32/modules ls modules jsondb.py sh.py wget.py wlan.py www.py These links are there as they should be, and the ports/stm32/b...