https://docs.platformio.org/en/latest/installation.html
https://platformio.org/install/ide?install=vscode https://docs.platformio.org/en/latest/ide/vscode.html#quick-start
https://bbs.sipeed.com/t/topic/1338/12
sudo dfu-util -l
sudo strace -e trace=openat dfu-util -l
sudo chown $USER /dev/bus/usb/001/008
platformio run --target uploadhttps://docs.platformio.org/en/latest/faq.html#platformio-udev-rules
Add in /etc/udev/rules.d/99-platformio-udev.rules.
# Longan Nano
ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", MODE="0666"
sudo service udev restarthttp://dl.sipeed.com/LONGAN/platformio/dl-packages/toolchain-gd32v-v9.2.0-linux.tar.gz
But dfu-util in debian still works!
http://dl.sipeed.com/LONGAN/platformio/dl-packages/tool-gd32vflash-v0.1.0-linux.tar.gz
https://github.com/riscv-mcu/GD32VF103_Firmware_Library/tree/master/Examples
- https://github.com/robertgallup/bmp2hex Anpassung: http://dl.sipeed.com/LONGAN/Nano/Firmware/badapple_demo_tools/tools_bmp2hex.zip
convert -resize 160x80\! intevation-logo-150ppi-nontrans.png logo.bmp
python3 bmp2hex.py -kbin logo.bmp
mv bmp.bin logo.binConvert mp4 video to 24 bit BMP frames.
The format must be BMP, the size is set according to the size of the screen, the time I set here is 100ms, that is, 1s ten frames, the number of acquisitions will calculate the total video time and multiply the number of frames per second. I am here 219s * 10 = 2190 3-4 min. ca. 50 MB
https://www.bugcodemaster.com/article/extract-images-frame-frame-video-file-using-ffmpeg
ffmpeg -i <input> -vf fps=1/10 -pix_fmt bgr24 output%03d.bmp -hide_bannerSelect key frames.
ffmpeg -i <input> -vf "select=eq(pict_type\,I)" -vsync vfr -pix_fmt bgr24 %03d.bmp -hide_bannerffmpeg -i 02_gran_dillama_1080p.mp4 -vf "select=eq(pict_type\,I)",scale=160:80 -vsync vfr -pix_fmt bgr24 %03d.bmp -hide_bannerffmpeg -i 02_gran_dillama_1080p.mp4 -vf "select=eq(pict_type\,I)",scale=160:80 -vsync vfr -pix_fmt bgr24 %d.bmp -hide_bannerConvert bitmap files to hex.
python3 genhex.py- https://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/
- https://trac.ffmpeg.org/wiki/Scaling
- http://elm-chan.org/fsw/ff/00index_e.html
- https://github.com/sipeed/Longan-DOC
- https://docs.platformio.org/en/latest/platforms/gd32v.html
- https://docs.platformio.org/en/latest/boards/gd32v/sipeed-longan-nano.html#id1
- https://www.seeedstudio.com/Sipeed-Longan-Nano-RISC-V-GD32VF103CBT6-Development-Board-p-4205.html
- https://github.com/sipeed/Longan_GD32VF_examples
- https://github.com/sipeed/platform-gd32v/tree/master/examples/eval-blink
- https://longan.sipeed.com/en/
- https://github.com/riscv-mcu
- https://bbs.sipeed.com/c/14-category
- https://github.com/sipeed/Longduino
- https://www.mikrocontroller.net/topic/480172
- https://pramode.in/2019/10/07/rust-on-riscv-board-sipeed-longan-nano/