Search found 2754 matches

by jimmo
Wed Aug 04, 2021 5:26 am
Forum: Development of MicroPython
Topic: Nucleo H743ZI2 USB connect
Replies: 2
Views: 2772

Re: Nucleo H743ZI2 USB connect

mpython wrote:
Mon Jul 26, 2021 8:05 pm
Hello, I have a problem with connecting to H743ZI2 via USB after deploying the micropython firmware.
Which firmware (where did you get it from, what is the filename). How did you flash/deploy it? What board are you using (is it the NUCLEO-H743ZI). How are you connected to the REPL?
by jimmo
Wed Aug 04, 2021 5:23 am
Forum: Other Boards
Topic: I can't see files that exist on the Pico with explorer
Replies: 8
Views: 15787

Re: I can't see files that exist on the Pico with explorer

I just wrote a simple tool for downloading a file from the MicroPython (I am using a Raspi Pico) to the host, you can get it here: https://github.com/udi-hakim/Tools Worth checking out pyboard.py (https://docs.micropython.org/en/latest/reference/pyboard.py.html) and mpremote (https://pypi.org/proje...
by jimmo
Wed Aug 04, 2021 5:16 am
Forum: ESP32 boards
Topic: Console logging ( write a file for debug/analysis)
Replies: 2
Views: 2908

Re: Console logging ( write a file for debug/analysis)

something similar to this but on last micropython at ESP32: The suggestion from that SO post is on the right track but it's simpler than this because files themselves are streams, and can be dupterm'ed to. Here's a demo of using this at the REPL (using mpremote to later print the file) e.g. $ mpr C...
by jimmo
Wed Aug 04, 2021 5:05 am
Forum: Drivers for External Components
Topic: Zephyr: Errors encountered with driver code for the HTU21DF
Replies: 1
Views: 2379

Re: Zephyr: Errors encountered with driver code for the HTU21DF

OSError: I2C operation not supported It looks like you've already solved this, but it looks like your original code was using start/stop/etc... See https://docs.micropython.org/en/latest/library/machine.I2C.html#primitive-i2c-operations which says "These methods are only available on the machine.So...
by jimmo
Wed Aug 04, 2021 5:03 am
Forum: Programs, Libraries and Tools
Topic: OSError: [Errno 22] EINVAL for SPI operation
Replies: 8
Views: 3764

Re: OSError: [Errno 22] EINVAL for SPI operation

Yadnik wrote:
Fri Jul 30, 2021 8:13 pm
It would be very helpful if someone can please tell me the mistake I am making.
This is being returned from Zephyr -- i.e. spi_transceive is returning EINVAL...

Do any SPI operations work? (e.g. read). Does it work if you use SoftSPI instead?
by jimmo
Wed Aug 04, 2021 4:58 am
Forum: ESP32 boards
Topic: How to get BLE beacons
Replies: 10
Views: 8444

Re: How to get BLE beacons

The scanning gives all kind of problems like ble.gap_scan() doesn't work Could you please inspect this code? Your code doesn't do anything with the scan IRQ. def _irq(self, event, data): if event == _IRQ_SCAN_RESULT: addr_type, addr, adv_type, rssi, adv_data = data return data The "return data" her...
by jimmo
Wed Aug 04, 2021 4:52 am
Forum: Development of MicroPython
Topic: What are the uPy differences/implications between .bin, .hex, .elf, .map, .dfu firmware?
Replies: 3
Views: 4201

Re: What are the uPy differences/implications between .bin, .hex, .elf, .map, .dfu firmware?

When do I select one option over the other? As Dave said "Which one to use depends on the programmer being used." As a quick guide: - ESP32 / ESP8266 will typically always use a .bin file and esptool will indicate where to program it. - Many STM32 boards have USB DFU bootloaders, and the programmer...
by jimmo
Wed Aug 04, 2021 4:42 am
Forum: Drivers for External Components
Topic: JSON alternative with packed data: MessagePack
Replies: 1
Views: 2736

Re: JSON alternative with packed data: MessagePack

Thanks Peter, this looks very useful!!
by jimmo
Fri Jul 23, 2021 3:08 am
Forum: General Discussion and Questions
Topic: STM32L423KC - Low power modes
Replies: 2
Views: 1590

Re: STM32L423KC - Low power modes

but I couldn't find pyb.standby or stop function in the firmware. The pyb module has been largely superceded by the machine module, and I think only some boards provide the aliases on the pyb module. In any case, you should be able to use machine.lightsleep() and machine.deepsleep() for stop and st...
by jimmo
Fri Jul 23, 2021 3:05 am
Forum: ESP32 boards
Topic: PIR interrupt and send
Replies: 3
Views: 1575

Re: PIR interrupt and send

That code you suggested also somehow didn't work. Sorry I haven't tested it, but if you add some print statements it should be possible to figure out what's going on. (Add a print in the interrupt handler to confim that it's setting `motion`, and then print in the different if/else cases to see whe...