Search found 415 matches

by jimmo
Wed Aug 07, 2019 1:27 pm
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 270

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

PR = Pull request. So you can get this fixed permanently.

But to solve the problem you just need to add

Code: Select all

#include <stdint.h>
to the top of mphal.h
by jimmo
Wed Aug 07, 2019 6:05 am
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 270

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

uintptr_t comes from stdint.h

I'm not sure why mphal.h doesn't include stdint.h -- it probably should, otherwise unix_mphal.c needs to. Could you send a PR?
by jimmo
Tue Aug 06, 2019 11:37 pm
Forum: General Discussion and Questions
Topic: MicroPython minimal port on NUCLEO F446ZE
Replies: 6
Views: 211

Re: MicroPython minimal port on NUCLEO F446ZE

You'll need to short the BOOT0 pin to VCC then reset. That will put the board into the ST DFU bootloader so you can use "make BOARD= deploy" via the device usb port.

Otherwise you can use the stlink usb port any time with "make BOArD= deploy-stlink"
by jimmo
Tue Aug 06, 2019 2:54 pm
Forum: General Discussion and Questions
Topic: ESP32: How to send files from internal flash to PC
Replies: 7
Views: 178

Re: ESP32: How to send files from internal flash to PC

hi Christian,

Did you make more progress with https://github.com/micropython/micropyt ... -492205467

This sounds like it would be really useful for the device-initiated case described here?
by jimmo
Tue Aug 06, 2019 10:54 am
Forum: Programs, Libraries and Tools
Topic: OSError: SPI device already in use
Replies: 3
Views: 156

Re: OSError: SPI device already in use

Upycraft just updates the Python files on the device. The one board I know of where everything is flashed at once (the interpreter and your code) is the micro:bit. You will need to flash the device to upgrade the MicroPython version. You can download the firmware from here: http://micropython.org/do...
by jimmo
Sat Aug 03, 2019 2:33 pm
Forum: Hardware Projects
Topic: Flash Options
Replies: 3
Views: 152

Re: Flash Options

-SPI flash - plenty of space, very cheap (£0.50) and very reliable, but it isn't readily supported by the looks of it so would need to do a fair bit of development in an area I don't know much about. I think this is probably your best option, and it should be fairly straightforward to implement thi...
by jimmo
Fri Aug 02, 2019 10:03 pm
Forum: ESP8266 boards
Topic: A concrete QSTR example
Replies: 2
Views: 100

Re: A concrete QSTR example

If your modules are already frozen, then your strings have already been QSRT-ified.
by jimmo
Fri Aug 02, 2019 10:02 pm
Forum: MicroPython pyboard
Topic: Call next() from a callback
Replies: 3
Views: 115

Re: Call next() from a callback

Because interrupts run at an unknown point innthe Python VM's cycle, they disable memory allocation (otherwise the GC would have to be reentrant). Unfortunately, the generator needs to do an allocation (I'm unsure if this is related to the floating point calculation or the generator itself). The eas...
by jimmo
Fri Aug 02, 2019 12:52 pm
Forum: Drivers for External Components
Topic: Driver for SHT31 Sensor Module
Replies: 2
Views: 103

Re: Driver for SHT31 Sensor Module

Did you have any luck with https://github.com/kfricke/micropython-sht31

It just uses machine.I2C, so it should work on the ESP8266.
by jimmo
Fri Aug 02, 2019 12:51 pm
Forum: ESP8266 boards
Topic: Help deciphering WDT reset error
Replies: 2
Views: 111

Re: Help deciphering WDT reset error

See my reply to the other thread, but yes this could very well be caused by increasing the heap size too far.