sipeed / platform-gd32v

GD32V: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/gd32v
Other
183 stars 46 forks source link

Download and no effect! #13

Closed Pre2 closed 4 years ago

Pre2 commented 4 years ago

Having bought a Sipeed Longan Nano RISC-V GD32VF103CBT6 MCU Development Board, I have installed Visual Studio Code with platformio add-on. Drivers GD32 MCU Dfu Drivers_v1.0.1.2316 for Windows 10. Then loaded "arduino-blink", compiled (one button Build), with no issues. Mention here platformio.ini lines: [env:sipeed-longan-nano] platform = gd32v framework = arduino board = sipeed-longan-nano monitor_speed = 115200 upload_protocol = dfu

The board was set in burning mode: the Device Manager shows in USB devices: GD32 Device in DFU mode. Download, with messages: Opening DFU capable USB device... ID 28e9:0189 Run-time device DFU version 011a Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuERROR, status = 10 dfuERROR, clearing status Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 011a Device returned transfer size 2048 GD32 flash memory access detected Device model: GD32VF103C8 Memory segment (0x08000000 - 0800ffff)(rew) Erase size 1024, page count 64 Downloading to address = 0x08000000, size = 8268 Download [ ] 0% 0 bytes Download [====== ] 24% 2048 bytes Download [============ ] 49% 4096 bytes Download [================== ] 74% 6144 bytes Download [======================== ] 99% 8192 bytes Download [=========================] 100% 8268 bytes Download done. File downloaded successfully Transitioning to dfuMANIFEST state

Now comes the question: After Reset, NO sign of blink (the factory 4 colors blink went off). Moreover the display went dark. Being the first time I try to use this board, I would appreciate a suggestion to make work the first code!

Pre2 commented 4 years ago

Problem solved: in fact the Sipeed Longan Nano I got is the "lite" version = 64KB Flash, 20KB SRAM. All works well now by simply changing in platformio.ini: board = sipeed-longan-nano-lite I hope this helps other users of the same model!