IMPORTANT: Read the FAQ from @168 before posting on Piazza!
Bring the following material to the Lab.
Refer to the table to lookup your tasks for this lab.
Registered in CS110P | Not Registered in CS110P | |
---|---|---|
Registered in CS110 | Complete this lab | Complete this lab |
Not Registered in CS110 | Complete this lab to get Longan Nano board, but this lab is UNSCORED for you. | At your convenience |
Our Longan Nano board uses DFU protocol to receive firmware from PC. Therefore, you need to first install the DFU tool, then download the firmware into Longan Nano.
Download and install the Longan development kit for CA1 from here (Link valid until June 20, 2025). The downloaded compressed archive contains installation guide (readme.md).
Inflate longan-dev-kit-ca1-windows-version-20250403.7z
, follow steps 5 and 6 in readme.md to install DFU driver AND DFU tool.
Note: there is a chance that your computer crushes into bluescreen when the Longan Nano enters DFU mode. See Piazza post @168 for more detail.
Note: the default filter for the DFU tool selects .hex
files instead of .bin
. If you cannot see .bin
files, this is the most likely cause.
None.
Our Longan Nano board uses DFU protocol to receive firmware from PC. Therefore, you need to use dfu-util
we provided to download the firmware into Longan Nano. Just place this file into anywhere and it should be fine. You do not need to install other software.
Note: You may need to give the dfu-util
execution permission.
For users with Intel/AMD CPU, download dfu-util
from here. For M1 Mac users, refer to @165.
None.
Refer to Sipeed Official Website for Longan Nano Basics.
Download the sample firmware from here.
Note: The temporal ordering of pressing and releasing buttons is of vital importance on entering DFU mode. Therefore, if the attempt of entering DFU fails, please first try repeating the above procedure before posting on Piazza.
On Windows: use GD32 MCU Dfu Tool_v3.8.1.5784
we provided.
Download to Device
, and open the .bin
file we provided.@0x80000000
as default. Generally you do not need to Verify After Download or Erase All.GD32 MCU Dfu Tool_v3.8.1.5784
tool can see your device.GD32 MCU Dfu Tool_v3.8.1.5784
download your firmware to device.The following steps will guide you perform a self-check on the above steps.
Press RESET. You should see TEST (25s)
and a circle on the screen. The color of TEST (25s)
should be white.
Then push joystick up, down, left, right, and towards the middle. You should see blue character U
, D
, L
, R
, and C
respectively. When D
appears, the color of TEST
should be green.
After that, press the the two buttons on the left side. You should see SW1
and SW2
respectively.
If all of the above steps succeed, then the your Longan Nano is functional for all Longan Nano part of CS110/CS110P.
(1 Point) Show TA that your Longan Nano is functional and sign your name on TA's table as acknowledge receipt for the Longan Nano.
Refer to Sipeed Official Website for Longan Nano Basics.
Our Longan Nano board uses DFU protocol to receive firmware from PC. Therefore, you need to use dfu-util
we provided to download the firmware into Longan Nano.
Download the sample firmware from here.
Note: The temporal ordering of pressing and releasing buttons is of vital importance on entering DFU mode. Therefore, if the attempt of entering DFU fails, please first try repeating the above procedure before posting on Piazza.
On Linux: use dfu-util
we provided.
Copy dfu-util
from linux-version
to <lab root>
, and chmod +x dfu-util
.
xxxxxxxxxx
cd <lab root>
./dfu-util -a 0 --dfuse-address 0x08000000:leave -D <path to sample firmware>
If the above command complains that the device cannot be opened, but your device is in DFU mode, use sudo
to run dfu-util
.
The above command will complain Invalid DFU suffix signature
and dfu-util: Error during download get_status
. Ignore those two errors.
Press RESET key to exit DFU mode.
Note: If dfu-util
cannot find your board, consider Piazza post @164.
The following steps will guide you perform a self-check on the above steps.
Press RESET. You should see TEST (25s)
and a circle on the screen. The color of TEST (25s)
should be white.
Then push joystick up, down, left, right, and towards the middle. You should see blue character U
, D
, L
, R
, and C
respectively. When D
appears, the color of TEST
should be green.
After that, press the the two buttons on the left side. You should see SW1
and SW2
respectively.
If all of the above steps succeed, then the your Longan Nano is functional for all Longan Nano part of CS110/CS110P.
(1 Point) Show TA that your Longan Nano is functional and sign your name on TA's table as acknowledge receipt for the Longan Nano.
Refer to the table to lookup your schedule to return your Longan Nano.
Registered in CS110P | Not Registered in CS110P | |
---|---|---|
Registered in CS110 | After completing Project 4 | After completing Lab 11 |
Not Registered in CS110 | After completing Project 4 | No later than week 15 |
Author: Songhui Cao <caosh2022>