Default Application Project
Overview
app is the default BK7258 application project. It provides the standard AP/CP startup flow and a general-purpose configuration for SDK development and feature validation.
The CP initializes the system and votes CP1 on to start SMP.
The AP initializes the application environment.
Optional SMP, IPC, and BLE network-provisioning test code is selected by project configuration.
The default configuration enables common Wi-Fi, Bluetooth, storage, filesystem, security, and networking features.
Both BK7258 and BK7257 build targets are supported.
Project layout
ap/ap_main.c: AP application entry and optional test initializationcp/cp_main.c: CP application entry and CP1 startupap/config/bk7258_ap/config: AP project configurationap/config/bk7258_ap/no_cli.config: alternate configuration with CLI disabledcp/config/bk7258/config: CP project configurationpartitions/bk7258/auto_partitions.csv: flash partition layoutpartitions/bk7258/ram_regions.csv: SRAM/PSRAM region layout
Build
Run from the SDK root:
make bk7258 PROJECT=app
Because app is the default project, this is equivalent to:
make bk7258
To build the BK7257 target:
make bk7257 PROJECT=app
To use the alternate configuration with CLI disabled:
make bk7258 PROJECT=app BK_CONFIG_FILE=no_cli
Run
Flash the generated AP and CP images, connect their serial consoles, and reset the board. Use the enabled SDK CLI commands to exercise the configured features; commands targeting the AP need the ap_cmd prefix.
To change project options, update the AP or CP config, or run make bk7258_ap_menuconfig PROJECT=app or make bk7258_cp_menuconfig PROJECT=app before rebuilding.