Quantcast
Channel: 懒得折腾
Viewing all articles
Browse latest Browse all 764

Toolchain for the Longan Nano on the Raspberry Pi 3

$
0
0

Toolchain for the Longan Nano on the Raspberry Pi 3

Thanks to Kevin on www.susa.net for pointing me in the right direction. Because i couldn’t get the riscv-nuclei-elf-gcc i had to do the following on a x86 debian machine. Here are all the steps i have done:

sudo apt install pip
sudo pip install -U platformio
platformio platform install gd32v
cd ~/.platformio/platforms/gd32v/examples/longan-nano-blink/
echo "upload_protocol = dfu" >> platformio.ini
platformio run

After that i had a firmware.bin which i copied to my rpi. I also did the following:

git clone https://github.com/riscv-mcu/gd32-dfu-utils
cd gd32-dfu-utils
./autogen.sh
./configure
make
scp user@debianx86.machine:/home/user/.platformio/platforms/gd32v/examples/longan-nano-blink/.pio/build/sipeed-longan-nano/firmware.bin .
./src/dfu-util -d 28e9:0189 -a 0 --dfuse-address 0x08000000:leave -D firmware.bin

And now i compile the riscv-nuclei-elf-gcc on my rpi, this could take while.


Viewing all articles
Browse latest Browse all 764

Trending Articles