Search found 2754 matches

by jimmo
Wed Nov 27, 2019 12:14 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 5349

Re: _thread not being enabled

How are you deploying the firmware? Are you using the same arguments for the `make deploy` invocation?
by jimmo
Tue Nov 26, 2019 10:26 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 5349

Re: _thread not being enabled

What's changed? Did this used to be possible? I don't see a way that the stm32 Makefile takes this argument. Is it possible you're thinking of the Unix port? But if you want to do this in your GNUmakefile, you need to add -DMICROPY_PY_THREAD=1 to the compiler flags. e.g. CFLAGS_MOD += -DMICROPY_PY_T...
by jimmo
Tue Nov 26, 2019 8:12 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 5349

Re: _thread not being enabled

From memory, I don't know think threading can be controlled from the Makefile. You'll need to set it in mpconfigport.h or mpconfigboard.h (or add the plumbing to set it from the Makefile).
by jimmo
Tue Nov 26, 2019 3:45 am
Forum: General Discussion and Questions
Topic: Whats this all about?
Replies: 5
Views: 2723

Re: Whats this all about?

I forgot to add, there was some recent discussion about this topic on the github issue tracker. I don't think it's related to what you're seeing, but I believe there is a bug when printing _without_ an explicit number of decimal places (so that's why I recommend always using str.format or the % oper...
by jimmo
Tue Nov 26, 2019 3:03 am
Forum: General Discussion and Questions
Topic: Whats this all about?
Replies: 5
Views: 2723

Re: Whats this all about?

Hi, The simple answer is that it did correctly add 32, which you can see by subtraction. >>> a = 31.1 * 9 / 5 >>> b = 31.1 * 9 / 5 + 32 >>> print(a) 55.98 >>> print(b) 87.97999 >>> print(b-a) 32.0 The more complicated answer is that it's impossible to represent every floating point number in binary ...
by jimmo
Tue Nov 26, 2019 2:41 am
Forum: General Discussion and Questions
Topic: Micropython conditional compilation
Replies: 2
Views: 1865

Re: Micropython conditional compilation

You can certainly put an if around the import. But I think the solution you've come up with (providing a micropython.py with a no-op version of the const function and viper/native/etc decorators for CPython) is the intended way of solving this. You might be able to do something like have main.py edi...
by jimmo
Mon Nov 25, 2019 8:23 am
Forum: Pyboard D-series
Topic: SF6W Firmware Update won't go past 0% Erase Phase
Replies: 1
Views: 2598

Re: SF6W Firmware Update won't go past 0% Erase Phase

Sounds like the same issue as viewtopic.php?f=20&t=6751

Maybe try Chris' suggestion to use STMcubeprogrammer, otherwise Zadig definitely worked for me (I've tried it).
by jimmo
Mon Nov 25, 2019 3:44 am
Forum: General Discussion and Questions
Topic: [Solved]Using OTG USB and ST-Link USB on STM32L4R9I - DISCO
Replies: 10
Views: 4661

Re: Using OTG USB and ST-Link USB on STM32L4R9I - DISCO

OK so MicroPython is definitely working then? Yes you need the 115200 otherwise the st-link usb/uart will try to talk at the wrong speed. You _don't_ need it when /dev/ttyACM0 is actually MicroPython itself (i.e. not an adaptor talking to a chip running MicroPython) because there's no actual real UA...
by jimmo
Mon Nov 25, 2019 2:08 am
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30783

Re: About BLE.gap_connect(esp32-based ubluetooth)

net0040 wrote:
Wed Nov 20, 2019 3:53 pm
Do I need some bug to be fixed?
thanks
Hi net0040.
Sorry I'm not quite sure I understand what you're asking. Can you explain in a bit more detail what the issue you're seeing is?
by jimmo
Mon Nov 25, 2019 2:07 am
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30783

Re: About BLE.gap_connect(esp32-based ubluetooth)

mczubel wrote:
Sat Nov 23, 2019 12:20 pm
I'm newly in esp32 ble, with this firmware: can I set esp32 ble like a beacon?
adv packet with conn posibility
Yes.

There are different types of beacons, but the current functionality supports setting an arbitrary advertising payload and scan response, and you can be connectable.