6. BLDevCube start guide
This document mainly introduces the use of Bouffalo Lab Dev Cube for code programming. For more details, please refer to BLDevCube user manual
6.1. Download Bouffalo Lab Dev Cube
Download the version suitable for your operating system from the developer community, download address:https://dev.bouffalolab.com/download
For users who do not have a registered account, click on the guest portal
After the download is complete, you can use it after decompression
6.2. Configure tool download method
Double-click
BLDevCube.exe
, in theChip Type
drop-down box, select the corresponding chip model, clickFinish
to enter theDev Cube
interfaceEnter the interface, select
MCU
underView
in the menu bar to enter the MCU program download interface
Select the corresponding download method in the
Interface
column underImage
, and choose according to your actual physical connectionImage file
configure the absolute path of the downloaded image, clickBrowse
to select the Bin fileWhen you click
click here to show advanced options
, the advanced mirroring configuration will be expanded, usually keep the default configuration; it should be noted thatFlash Clock
will affect the clock frequency of Flash and PSRAM at the same time , If you need to use PSRAM, you can increase the clock frequency to get better performance
6.2.1. Download with UART
COM Port
is used for UART download, select the COM number connected to the chip, and clickRefresh
to refresh the COM numberWhen
Uart Speed
is used for UART download, configure the appropriate baud rate, the default is 2MPlease make sure the hardware configuration is correct before downloading:
Use
Type-C USB
orMini USB
to connect to the corresponding USBType-C
port orMini
port on the board.Press the
Boot
key on the board, don’t release itPress the
RST
key on the board, now you have enteredBoot ROM
model, you can release the two keysAt this time, you can see the corresponding serial port
COM
number from theBouffalo Lab Dev Cube
, if it does not appear, please click theRefresh
button to refresh
After completing the above configuration correctly, click the
Create&Program
button to downloadAfter the download is successful, you will see the status bar turn green and display
Success
6.2.2. Download with Openocd
Download using openocd is basically the same as using serial port download option configuration, just switch
Interface
toOpenocd
The hardware connection needs to be changed to a debugger connection that supports Openocd (this tutorial takes Sipeed RV Debugger as an example):
Connect the RV debugger to the USB port of the computer, open the device manager, you will find that the debugger is recognized as two serial ports (note: not the serial port on the board)
Download the
zadig-2.4
replacement driver from sipeed. Download link: http://dl.sipeed.com/MAIX/tools/sipeed-rv-debugger/zadig-2.4.exe
After downloading, double-click to open
zadig-2.4.exe
, and check List All Devices in Options.
Find JTAG Debugger (Interface 0), then select the replacement driver as WinUSB and click Replace Driver to replace
Open the device manager again and see that one of the serial ports has been replaced with a universal serial bus device, indicating that the installation is successful
Connect the JTAG pins of the debugger with the JTAG pins of the board
After completing the above configuration correctly, click the
Create&Program
button to downloadAfter the download is successful, you will see the status bar turn green and display
Success
6.2.3. Download with Jlink
The tool configuration for downloading using Jlink and Openocd is basically the same, just switch
Interface
toJlink
The hardware connection needs to be changed to use Jlink connection (this tutorial takes Jlink V11 as an example, it is recommended to use Jlink V10 or later):
Download the appropriate Jlink driver from Segger official website and install it
Connect the Jlink debugger to the USB port of the computer
Connect the JTAG pins of the JLink debugger with the JTAG pins of the board
After completing the above configuration correctly, click the
Create&Program
button to downloadAfter the download is successful, you will see the status bar turn green and display
Success