Search found 3507 matches

by dhylands
Thu Aug 20, 2020 3:11 pm
Forum: MicroPython pyboard
Topic: Pyboard.py
Replies: 8
Views: 784

Re: Pyboard.py

On Windows you need to tell it the com port using the -device parameter (I.e. something like

Code: Select all

pyboard.py -device COM7 foo.py
replace COM7 with the correct com port for your setup. /dev/ttyAMA0 only works under Linux.
by dhylands
Thu Aug 20, 2020 1:54 am
Forum: MicroPython pyboard
Topic: Pyboard.py
Replies: 8
Views: 784

Re: Pyboard.py

Also note that using pyboard.py requires that you disconnect putty from your board while using pyboard.py
by dhylands
Thu Aug 20, 2020 1:52 am
Forum: General Discussion and Questions
Topic: Filesystem size with custom STM32F7 build
Replies: 35
Views: 4119

Re: Filesystem size with custom STM32F7 build

Unfortunately, the flash blocks are too big. In order to use a 256k flash block you need 256k of ram reserved. Currently, I believe only 64k of Ram is reserved which means that you can only use up to 64k blocks or with some special code the first 64k of the 256k blocks (which means that the remainin...
by dhylands
Fri Aug 14, 2020 5:33 pm
Forum: Other Boards
Topic: STM32F767 partition too small
Replies: 6
Views: 568

Re: STM32F767 partition too small

Yeah - the NODE_F767ZI is for flashing. You copy a file (probablu .hex format but I don't recall) and it flashes the 767.

Search for flashbdev
by dhylands
Fri Aug 14, 2020 5:14 pm
Forum: Other Boards
Topic: STM32F767 partition too small
Replies: 6
Views: 568

Re: STM32F767 partition too small

The usb connector on the stlink side goes to the stlink processor and NODE_F767ZI partition also comes from the stlink processor (and isn't accessible in any way from the 767. The other usb connector goes directly to the 767. It looks like the 767 has 2 Mbytes of flash, so I think it should be possi...
by dhylands
Thu Aug 13, 2020 4:07 pm
Forum: General Discussion and Questions
Topic: While True loop Stopping
Replies: 7
Views: 637

Re: While True loop Stopping

It would be more efficient to just use:

Code: Select all

  if data:
rather than converting data to a string, or perhaps using

Code: Select all

if data is not None:
Be aware that read may return more than 1 byte, so be prepared for that scenario.
by dhylands
Thu Aug 13, 2020 4:01 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 1418

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

Most features like that have flags just because the code takes up space that smaller devices might not want. You'll generally find that these options are on by default for the unix build https://github.com/micropython/micropython/blob/master/ports/unix/mpconfigport.h#L103 and the stm32 builds (altho...
by dhylands
Thu Aug 13, 2020 1:56 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 61
Views: 15328

Re: WeAct STM32F411CEU6 black pill

It looks to me like I2C1 should be on pins B8/B9 (based on your dump), and B6/B7 are configured back as GPIOs (the pull parameter being dropped is the clue here). Just FYI: when you use machine.I2C and an id of -1, then it will do software I2C which uses the pins in GPIO mode and this mode can use a...
by dhylands
Thu Aug 13, 2020 1:42 pm
Forum: General Discussion and Questions
Topic: While True loop Stopping
Replies: 7
Views: 637

Re: While True loop Stopping

That same documentation also tells you how to do a non-blocking read.
by dhylands
Wed Aug 12, 2020 5:16 pm
Forum: General Discussion and Questions
Topic: While True loop Stopping
Replies: 7
Views: 637

Re: While True loop Stopping

stdin doesn't have an any() method, so you can either use the USB_VCP device or UART device depending on which microprocessor you're using. http://docs.micropython.org/en/latest/library/pyb.USB_VCP.html#pyb.USB_VCP.any http://docs.micropython.org/en/latest/library/machine.UART.html#machine.UART.any ...