Closed vanbwodonk closed 4 months ago
Thank you for this! The way it is implemented makes sense to me, and easy to make that configurable with just an #ifdef
and a config in tusb_config.h
.
A PR against https://github.com/tinyvision-ai-inc/pico-ice-sdk would be nice!
I am now back from Embedded World and will be able to switch over to integrating this, likely tomorrow. Thanks everyone for your patience!
Adjusting the baud rate works well with what you provided. I edited it a tiny bit for matching the autoconfig.
Before, baud 1200
After, baud 4800 (mismatching Pulseview configuration)
Nice! Does it support resetting and programming with picotool
(-f
option)?
Does it support resetting and programming with
picotool
(-f
option)?
Not yet, but https://arduino.github.io/arduino-cli/dev/platform-specification/#1200-bps-bootloader-reset will be supported
picocom -b 1200 /dev/ttyACM0
I confirm that after using picocom -b 1200 /dev/ttyACM0
it is possible to use picotool
though:
$ picotool info
Program Information
name: pico_ice_default
features: USB stdin / stdout
This landed in v1.6.1, closing :)
Great! I think you only forgot to create new github release with binaries to download
It was in preparation at that moment, and landed here: https://github.com/tinyvision-ai-inc/pico-ice/releases
This landed in v1.6.1, closing :)
Did it? Can confirm it works in downloaded .uf2
but I cannot find any commits or code to build it myself.... Am i blind or you didn't push something?
Good catch!
As seen here, main
was not pushed to origin/main
, only develop
to origin/develop
* 8d0fd06 (HEAD -> develop, tag: v1.6.1, origin/develop, main) implement tud_cdc_line_coding_cb
* 8e92021 (tag: v1.6.0, origin/main, origin/HEAD) stop ICE40 FPGA before initializing SPI flash
I pushed it now: https://github.com/tinyvision-ai-inc/pico-ice-sdk/blob/main/src/ice_usb.c#L317
I modified pico_ice_default and pico-ice-sdk/examples/pico_usb_uart with line_coding detection and 1200 bitrate detection for autoreboot. This is very useful if we need a higher bitrate than 115200, and Arduino like auto-reboots when we need to reflash the RP2040. Just need to add some code like this:
Or, if you allow I can make a PR about it.