← Back to Sipeed M0P Dock
freertos on Sipeed M0P Dock

System Version

Not specified

Status

basic

Last Update

2024-06-21

FreeRTOS Demo M0P Dock Test Report

Test Environment

Operating System Information

Hardware Information

  • Sipeed M0P Dock (BL618)
  • A USB A to C or C to C cable

Installation Steps

Prepare Build Environment

git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_linux --depth=1
export PATH=$PWD/toolchain_gcc_t-head_linux/bin:$PATH
sudo apt install ninja-build make
git clone https://github.com/sipeed/M0P_BL618_examples.git
cd M0P_BL618_examples
git submodule update --init
cd bouffalo_sdk
# git config --global user.name user
# git config --global user.email user@example.com
git am ../sipeed_support/fixes/m0pdock/*.patch && cd -
cd sipeed_support/examples/m0pdock
# Replace ttyACMx with your actual device name
make flash COMX=/dev/ttyACM0

Build FreeRTOS Demo

cd M0P_BL618_examples
git submodule update --init
cd bouffalo_sdk
# git config --global user.name user
# git config --global user.email user@example.com
git am ../sipeed_support/fixes/m0pdock/*.patch && cd -
cd sipeed_support/examples/m0pdock/wifi_screen
make # Or: make ninja

Flash the Image

make flash COMX=/dev/ttyACM0 # Replace ttyACMx with your actual device name

Start the UDP Server on the Development Board

Refer to: https://github.com/sipeed/M0P_BL618_examples/tree/main/sipeed_support/examples/m0pdock/wifi_screen

Boot Log

bouffalolab />wifi_sta_connect SIPEED_TEST 12345678
bouffalolab />wifi_udp_server
bouffalolab />udp server task start ...
wifi_udp_server [port]
         port: local listen port, default port 5001
udp bind success!
Server ip Address : 0.0.0.0:5001
Press CTRL-C to exit.
recv[2/204800] from 172.49.14.160
recv[10240/204798] from 172.49.14.160
recv[10240/194558] from 172.49.14.160
recv[10240/184318] from 172.49.14.160
recv[10240/174078] from 172.49.14.160
recv[10240/163838] from 172.49.14.160

Test Criteria

Successful: The actual result matches the expected result.

Failed: The actual result does not match the expected result.

Test Conclusion

Test successful.