Search found 3467 matches

by dhylands
Thu Oct 29, 2020 4:27 pm
Forum: Other Boards
Topic: stm32f411 and sim800L
Replies: 7
Views: 168

Re: stm32f411 and sim800L

You should increase the size of the Rx buffer.
http://docs.micropython.org/en/latest/l ... .UART.init

pass in an rxbuf which is bigger than the largest message you expect to receive.
by dhylands
Tue Oct 27, 2020 2:45 pm
Forum: Other Boards
Topic: stm32f411 and sim800L
Replies: 7
Views: 168

Re: stm32f411 and sim800L

The schematic also looks weird. It shows TxD on the MCU as being an input when in fact TxD in the MCU is an output, and RxD is the input.

For the MCU RTS is an output and CTS is an input, so that part looks OK.
by dhylands
Sat Oct 24, 2020 2:58 pm
Forum: MicroPython pyboard
Topic: Initialising GPIO’s in the Hal file or boot.Pty file?
Replies: 1
Views: 69

Re: Initialising GPIO’s in the Hal file or boot.Pty file?

When your board resets all of the pins are configured as inputs. You can configure them as outputs using the first example here: http://docs.micropython.org/en/latest/pyboard/quickref.html#pins-and-gpio If you need to control the value of your pin before your code gets control then you’ll need to us...
by dhylands
Wed Oct 21, 2020 5:58 pm
Forum: ESP32 boards
Topic: Uart wait_tx_done function in ESP32 Micropython
Replies: 9
Views: 238

Re: Uart wait_tx_done function in ESP32 Micropython

I’m not familiar with the esp32 but normally there is a register bit which can be queries to see if the shift register is empty or not. It takes one character time for the shift register to empty and I know on the stm32 if I didn’t wait for this I would cut off the last character.
by dhylands
Mon Oct 12, 2020 6:11 am
Forum: Development of MicroPython
Topic: Micropython Build Step by Step
Replies: 4
Views: 339

Re: Micropython Build Step by Step

In addition to what you posted above, you should follow the build instructions on the stm32 README:
https://github.com/micropython/micropyt ... structions
by dhylands
Thu Oct 08, 2020 2:08 pm
Forum: ESP32 boards
Topic: Uart wait_tx_done function in ESP32 Micropython
Replies: 9
Views: 238

Re: Uart wait_tx_done function in ESP32 Micropython

I believe that the ESP32 UART has a HW FIFO and there would be a shift register and then most drivers also have a circular buffer. So the Tx isn’t done until the circular buffer is empty, and the FIFO is empty, and the shift register is empty.

I just wanted to make sure you’re checking all 3.
by dhylands
Mon Oct 05, 2020 4:42 pm
Forum: ESP32 boards
Topic: Save data to flash
Replies: 4
Views: 209

Re: Save data to flash

The JSON file format doesn't really lend itself to reading just one particular entry. You really want a file format (probably binary) where each entry takes up the same amount of space. Then if you want entry 15, you can calculate the offset within the file where entry 15 starts and read a single en...
by dhylands
Sun Oct 04, 2020 5:52 pm
Forum: Development of MicroPython
Topic: STM32F407 board not show in Window 10
Replies: 1
Views: 112

Re: STM32F407 board not show in Window 10

From: https://github.com/micropython/micropython/wiki/Board-STM32F407-Discovery Plug in the discovery board. To use DFU, you need to connect CN5 (the micro-USB connector on the bottom of the board) into your PC. Unfortunately, the CN5 connector doesn't power the board, so you can either connect CN1 ...
by dhylands
Wed Sep 30, 2020 9:14 pm
Forum: General Discussion and Questions
Topic: Moving files from flash to sd
Replies: 3
Views: 238

Re: Moving files from flash to sd

If you have an SD card inserted, then you'll see that in Windows Explorer. If there is no SD card inserted then you'll see the internal flash. Being able to see the SD card will only work on devices that have native USB support (like the STM32) and when you're plugged into a direct USB port. If you'...
by dhylands
Wed Sep 30, 2020 8:20 pm
Forum: MicroPython pyboard
Topic: Is the Number 3 a Special Command/Escape Character/Reserved Byte When Transmitted via USB-VCP()
Replies: 2
Views: 154

Re: Is the Number 3 a Special Command/Escape Character/Reserved Byte When Transmitted via USB-VCP()

Binary 0x03 is the ASCII code for Control-C.

If you want to send that over USB-VCP and not trigger an interrupt then you need to call set_interrupt with a -1:
http://docs.micropython.org/en/latest/l ... tinterrupt