Search found 1468 matches

by Roberthh
Mon Jul 22, 2019 10:00 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 124
Views: 36319

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

I made that code very early in my Python & MicroPython learning phase. So, about your questions: Q1: ptr16 is a pointer much in the sense of C. It directly points to memory like a C Pointer. There are not safebelts when using it. A pointer access is directly compiled into a few assembler instruction...
by Roberthh
Mon Jul 22, 2019 8:17 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 124
Views: 36319

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Using the mem_xx() functions is very slow. For initialization, that's fine. But for other operations like setting coordinates or data transfer using native code and direct pointers is way faster. I used that for my SSD1963 driver (https://github.com/robert-hh/SSD1963-TFT-Library-for-PyBoard), which ...
by Roberthh
Mon Jul 22, 2019 8:13 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 12
Views: 2540

Re: uPing - Ping library for MicroPython

RAW mode sockets are not implemented. The QSTR SOCK_RAW is defined, but there no code dealing with it, just a commented initial unfinished attempt to support it.
by Roberthh
Sun Jul 21, 2019 8:14 pm
Forum: ESP8266 boards
Topic: reboot issue after disable_irq()
Replies: 6
Views: 101

Re: reboot issue after disable_irq()

Instead of disabling interrupts, you can silence the interrupt handler. Pins can be reconfigured any time.
by Roberthh
Sun Jul 21, 2019 7:19 pm
Forum: ESP8266 boards
Topic: reboot issue after disable_irq()
Replies: 6
Views: 101

Re: reboot issue after disable_irq()

The ESP8266 RTOS has it's own watchdog, which is always enabled. What I am curious about is: why you would like to disable irq for a longer time? Typically that would be done for a time period as short as possible, like a few ms, or just a few python instructions. P.S.: Longer code will have a scrol...
by Roberthh
Sun Jul 21, 2019 6:32 pm
Forum: ESP8266 boards
Topic: reboot issue after disable_irq()
Replies: 6
Views: 101

Re: reboot issue after disable_irq()

Looks like the watchdog barfed at you. You should see something like:

Code: Select all

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
You can easily force that with:

Code: Select all

from machine import disable_irq
state = disable_irq()
by Roberthh
Thu Jul 18, 2019 7:50 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

That's indeed very strange. Can you try another ESP32 board?
by Roberthh
Thu Jul 18, 2019 7:06 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

Looking at you main.py and boot.py, it it quite a bit of code. Of the things I find surprising: - the functions wifi_connect() is defined in boot.py, but called in main.py - you import MQTT lib in boot.py and define client there, but call client.connect in main.py - same with onewire, ds1820, main_r...
by Roberthh
Wed Jul 17, 2019 1:22 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

This module type should be fine. Which version of the firmware did you install, and did you try to
- erase the flash and
- reload the firmware?
Also, what happens if you just power the device (w/o terminal) and push the reset button (eventually labeled as EN).