Search found 3385 matches

by dhylands
Wed May 27, 2020 9:29 pm
Forum: Other Boards
Topic: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings
Replies: 8
Views: 1139

Re: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings

The code detects that you only have a single LED configured and instead of using colors, it will flash the LED 1, 2, or 3 times. So you press and hold the USRSW while resetting, and while you're holding it will flash once, pause, flash twice, pause, and flash 3 times, pause and the repeat. You relea...
by dhylands
Wed May 27, 2020 4:37 pm
Forum: Other Boards
Topic: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings
Replies: 8
Views: 1139

Re: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings

Also for reference, here's how to perform a mass-erase: #!/bin/sh # # This script demonstates how to mass-erase the entire flash. set -x echo -e -n "\xff" > ff.bin dfu-util -s :mass-erase:force -a 0 -d 0483:df11 -D ff.bin In this case the file ff.bin isn't actually used, but dfu-util wants a file pa...
by dhylands
Wed May 27, 2020 4:16 pm
Forum: Other Boards
Topic: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings
Replies: 8
Views: 1139

Re: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings

Here's a script that uses dfu-util to erase the first sector of the filesystem (assuming your filesystem starts at 0x08004000) which is enough to get micropython to reinitialize the filesystem when it boots up. https://github.com/dhylands/upy-examples/blob/master/erase-pybaord-fs.sh For reference th...
by dhylands
Wed May 27, 2020 4:06 pm
Forum: Other Boards
Topic: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings
Replies: 8
Views: 1139

Re: [WeAct STM32F411CEU6] Avoiding “Volume was not properly unmounted” warnings

You can do a mass erase followed by reflashing firmware to reset your filesystem. You can also manually use dfu-util to erase just the filesystem area.

Are you saying you didn't connect up LED and USRSW in your mpconfigboard.h file?
by dhylands
Tue May 26, 2020 10:38 pm
Forum: Programs, Libraries and Tools
Topic: SD Card, can't write from another module or async tasks.
Replies: 3
Views: 598

Re: SD Card, can't write from another module or async tasks.

You should be able to. Make sure you're using a filename like "/sd/filename.txt" (it's the /sd part that's important, not the filename)
by dhylands
Tue May 26, 2020 2:42 pm
Forum: Programs, Libraries and Tools
Topic: How can I edit file located on an SD card connected via SPI?
Replies: 2
Views: 293

Re: How can I edit file located on an SD card connected via SPI?

Try putting your sdcard initialisation in boot.py rather than main.py. When rshell is running it uses the raw repl and main.py doesn’t run in that scenario
by dhylands
Mon May 25, 2020 4:03 pm
Forum: General Discussion and Questions
Topic: machine.Pin.pull_down ?
Replies: 5
Views: 973

Re: machine.Pin.pull_down ?

Pull up and pull down are only applicable to input pins. Output pins are driven high or driven low, so pullups don't apply. I think you might be able to use pull up on an open drain output, but that's the only case I can think of tht makes sense. According to the documentation: http://docs.micropyth...
by dhylands
Sat May 23, 2020 2:59 am
Forum: Programs, Libraries and Tools
Topic: Can't connect to my board with rshell, File Size Issues with pyboard.py
Replies: 13
Views: 728

Re: Can't connect to my board with rshell, File Size Issues with pyboard.py

The ip address thing is just due to the way rshell allows connecting over telnet to a WiPy and allows a hostname to be passed in.

The second exception is the real exception, which is the same as the one on the pyboard. Basically its waiting for data from the board.
by dhylands
Fri May 22, 2020 5:21 pm
Forum: Programs, Libraries and Tools
Topic: Custom board and ST-Link
Replies: 2
Views: 336

Re: Custom board and ST-Link

Does the board have a pullup resistor on the RESET line?

What about the settings of BOOT0 and BOOT1?
by dhylands
Fri May 22, 2020 5:18 pm
Forum: MicroPython pyboard
Topic: How to properly increase FLASH_FS on pyboardv11?
Replies: 6
Views: 1010

Re: How to properly increase FLASH_FS on pyboardv11?

See: viewtopic.php?f=3&t=3702&p=22627&p22627#p22627

You can't just increase the filesystem size i the flash blocks aren't the right sizes.