This repo current is based on bouffalo_sdk:v2.0.0 and give a bsp support for M0sDock(bl616) and M0pDock(bl618) to let you develop our boards easily.
There are also exclusive repo below for specific boards:
Refer to this repo bouffalo_sdk, and follow the Environment Setup to download toolchain you needed and then complete the Command Line Development.
After that, clone this repo and keep going on.
git clone https://github.com/sipeed/M0P_BL618_examples.git && cd "$(basename "$_" .git)"
git submodule update --init
tips: it will be a long time, you can change the submodule's url to faster mirror maybe
Finally we get all preparation finished, and now let's start the next example.
M0pDock has many differences from the official bl616dk, so take patch on the official sdk is needed for normal use of the lcd, the touch and the camera.
cd bouffalo_sdk
git am ../sipeed_support/fixes/m0pdock/*.patch && cd -
Now you can compile all examples we provided in sipeed_support/examples/m0pdock
like pt(product testing).
cd sipeed_support/examples/m0pdock
cd pt
make # or make ninja
make flash COMX=/dev/ttyACMx # or COMxx if you are on Windows
Examples in the official SDK also can be tested. But you have pay attention on the Makefile in every example:
CHIP
MUST be bl618
BOARD
MUST be set to m0pdock
BOARD_DIR
MUST be set to /path_to_this_repo_in_your_computer/sipeed_support/boards
example,
BOARD ?= m0pdock
SIPEED_SUPPORT ?= $(realpath $(BL_SDK_BASE)/../sipeed_support)
BOARD_DIR ?= $(SIPEED_SUPPORT)/boards
Then make
or make ninja
and make flash COMX=xxx
just like the above.