Firmware examples for the RTL8762C BLE SoC
To obtain this code, clone this repository recursively.
git clone --recurse-submodules https://github.com/cyber-murmel/rtl8762c-gcc-examples.gitRegister an account at RealMCU and download the RTL8762C SDK GCC(ZIP) from the product page. This procedure requires an email account.
Extract the zip archive and move the sdk directory into the root of this repository.
unzip RTL8762C-sdk-gcc-v0.0.5.zip
mv bee2-sdk-gcc-v0.0.5/sdk ./sdk
rm -r bee2-sdk-gcc-v0.0.5To build the firmware you need
- GNU Make 4.3
- arm-none-eabi-gcc (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release)
For flashing you need to download and install the dependencies for the rtltool submodule. Please follow the installtion section.
Users of Nix or NixOS can simply run nix-shell to enter an environment with all necessary dependencies.
To build an example, set TARGET to one of the directories in src/targets and run make.
make TARGET=00-blinkThe default TARGET is 00-blink
Currently available targets are
00-blink01-uart_echo02-uart_printf
It's advised to clean up build results before switching to a different target.
make cleanTo flash the firmware onto the board via UART, run
make TARGET=00-blink flashThe UART port can be be set via the PORT variable.
make TARGET=00-blink PORT=/dev/ttyUSB0 flashThe default PORT is /dev/ttyUSB1
To open a miniterm session, run
make termThe port can be changed in the same way as for flashing.