cyber-murmel / rtl8762c-gcc-examples

Firmware examples for the RTL8762C BLE SoC

Home Page:https://hackaday.io/project/182205-py-ft10

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTL8762C-gcc-examples

Firmware examples for the RTL8762C BLE SoC

hackaday.io

Download

To obtain this code, clone this repository recursively.

git clone --recurse-submodules https://github.com/cyber-murmel/rtl8762c-gcc-examples.git

SDK

Register 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.5

Toolchain

To 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)

rtltool

For flashing you need to download and install the dependencies for the rtltool submodule. Please follow the installtion section.

Nix

Users of Nix or NixOS can simply run nix-shell to enter an environment with all necessary dependencies.

Building

To build an example, set TARGET to one of the directories in src/targets and run make.

make TARGET=00-blink

The default TARGET is 00-blink

Currently available targets are

  • 00-blink
  • 01-uart_echo
  • 02-uart_printf

Cleanup

It's advised to clean up build results before switching to a different target.

make clean

Flashing

To flash the firmware onto the board via UART, run

make TARGET=00-blink flash

Port

The UART port can be be set via the PORT variable.

make TARGET=00-blink PORT=/dev/ttyUSB0 flash

The default PORT is /dev/ttyUSB1

Terminal

To open a miniterm session, run

make term

The port can be changed in the same way as for flashing.

About

Firmware examples for the RTL8762C BLE SoC

https://hackaday.io/project/182205-py-ft10


Languages

Language:C 83.9%Language:Makefile 14.3%Language:Python 1.2%Language:Nix 0.6%