I using a i2c sensor in pyboard, and occasionally hardware i2c will timeout. When this happens, i2c will not read sensor anymore, and it can't recover automatic unless reset. If I using software i2c, it will recovery.
Does anyone konw how to recovery hardware i2c when it occur errors?
Search found 363 matches
- Mon Jul 08, 2019 7:32 am
- Forum: MicroPython pyboard
- Topic: i2c error recovery
- Replies: 4
- Views: 4122
- Mon May 27, 2019 1:19 am
- Forum: Other Boards
- Topic: UART(4) doesn´t exist (STM32L476 Nucleo)
- Replies: 3
- Views: 2776
Re: UART(4) doesn´t exist (STM32L476 Nucleo)
It maybe there are too many Nucleo boards with different MCU. You may modify mpconfigboard.h to customize your firmware.
- Sun May 26, 2019 3:16 pm
- Forum: Other Boards
- Topic: UART(4) doesn´t exist (STM32L476 Nucleo)
- Replies: 3
- Views: 2776
Re: UART(4) doesn´t exist (STM32L476 Nucleo)
Nucelo-L476 firmware has only define UART2 default. // UART config #define MICROPY_HW_UART2_TX (pin_A2) #define MICROPY_HW_UART2_RX (pin_A3) #define MICROPY_HW_UART_REPL PYB_UART_2 #define MICROPY_HW_UART_REPL_BAUD 115200 You may add these lines (from PYBV10) to mpconfigboard.h and recompile the fir...
- Mon May 20, 2019 7:42 am
- Forum: Other Boards
- Topic: STM32F401CCU6 SUPPORT
- Replies: 3
- Views: 2546
- Wed Apr 03, 2019 5:45 am
- Forum: MicroPython pyboard
- Topic: Does pyboard will support psRAM?
- Replies: 0
- Views: 1926
- Wed Apr 03, 2019 2:08 am
- Forum: micro:bit boards
- Topic: What shield for my micro:bit?
- Replies: 1
- Views: 2715
- Tue Apr 02, 2019 1:41 pm
- Forum: ESP32 boards
- Topic: PC as an ESP32 simulator ?
- Replies: 4
- Views: 8412
- Wed Mar 27, 2019 2:03 pm
- Forum: ESP32 boards
- Topic: DS3231 Chinese Community!
- Replies: 4
- Views: 2985
Re: DS3231 Chinese Community!
Both DS1307 and DS3231 lib are works in ESP32. MicroPython v1.10-54-g43a894fb4 on 2019-02-07; ESP32 module with ESP32 Type "help()" for more information. >>> paste mode; Ctrl-C to cancel, Ctrl-D to finish === from machine import Pin, I2C === import DS1307 === === i2c = I2C(-1, sda = Pin(21), scl = P...
- Wed Mar 27, 2019 3:11 am
- Forum: ESP32 boards
- Topic: DS3231 Chinese Community!
- Replies: 4
- Views: 2985
- Sun Mar 24, 2019 9:43 am
- Forum: micro:bit boards
- Topic: Can a microbit detect a host computer
- Replies: 3
- Views: 4631