Difference between revisions of "Sipeed Longan Nano"

From Stm32World Wiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
[[File:longan_nano_pinout_v1.1.0_w5676_h4000_large.png|1200 px]]
 
[[File:longan_nano_pinout_v1.1.0_w5676_h4000_large.png|1200 px]]
 
== Gallery ==
 
 
<gallery>
 
File:Sipeed Longan Nano - top view aligned.jpg
 
File:Sipeed Longan Nano - top view angled.jpg
 
File:Sipeed Longan Nano - btm view aligned.jpg
 
File:Sipeed Longan Nano - btm view angled.jpg
 
</gallery>
 
  
 
== DFU ==
 
== DFU ==
Line 42: Line 33:
  
 
It is working although it is a bit weird they decided to treat the entire flash as one block of 128 kB.  According to the [https://ipfs.subutai.io/ipfs/QmRfXyXBzjKSehAQtXzmxRwJUsatZJDB6h7ygWEks8eHfv/GD32VF103_User_Manual_EN_V1.0.pdf User Manual] the flash _can_ be erased per 1 kB page.
 
It is working although it is a bit weird they decided to treat the entire flash as one block of 128 kB.  According to the [https://ipfs.subutai.io/ipfs/QmRfXyXBzjKSehAQtXzmxRwJUsatZJDB6h7ygWEks8eHfv/GD32VF103_User_Manual_EN_V1.0.pdf User Manual] the flash _can_ be erased per 1 kB page.
 +
 +
== Gallery ==
 +
 +
<gallery>
 +
File:Sipeed Longan Nano - top view aligned.jpg
 +
File:Sipeed Longan Nano - top view angled.jpg
 +
File:Sipeed Longan Nano - btm view aligned.jpg
 +
File:Sipeed Longan Nano - btm view angled.jpg
 +
</gallery>
  
 
== Miscellaneous Links ==
 
== Miscellaneous Links ==

Revision as of 01:26, 28 October 2021

Sipeed Longan Nano - top view aligned.jpg

The Sipeed Longan Nano is a development board built around a GD32VF103xx MCU. The GD32VF103xx is a GigaDevice MCU with a RISC-V core and an architecture which generally assembles a STM32 MCU.

Pinout

Longan nano pinout v1.1.0 w5676 h4000 large.png

DFU

The GD32VF103 on the Longan Nano board, like STM32 MCUs has got a built-in system bootloader, which can be activated by holding down the Boot0 button during reset. Contrary to the STM32F103 on Blue Pill boards, this bootloader appears to support DFU.

Adding a UDEV rule to make it readable:

# make this usb device accessible for users, used in WebUSB
# change the mode so unprivileged users can access it, insecure rule, though
SUBSYSTEMS=="usb", ATTR{idVendor}=="28e9", ATTR{idProduct}=="0189", MODE:="0666"

the device is recognized by dfu-util:

lth@ncpws04:~/tmp/mylifeline$ dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [28e9:0189] ver=0100, devnum=23, cfg=1, intf=0, path="2-4.5.3", alt=0, name="@Internal Flash  /0x08000000/128*001Kg", serial="??"

It is working although it is a bit weird they decided to treat the entire flash as one block of 128 kB. According to the User Manual the flash _can_ be erased per 1 kB page.

Gallery

Miscellaneous Links