bouffalolab / bl_iot_sdk

BL602/BL702 SDK. Any technical topic, please access the following link.
http://bbs.bouffalolab.com
Apache License 2.0
265 stars 170 forks source link

Some issues about compiling #7

Closed Yangff closed 3 years ago

Yangff commented 3 years ago
  1. For any app use headers from hal, CONFIG_CHIP_NAME=BL602 needs to be exported so the compile script can find the correct components.

  2. By default, it links with link script flash.ld which does not have informaiton to link against wifi lib. To compile wifi, the flash_rom.ld needs to be selected with CONFIG_LINK_ROM=1

YafeiJin commented 3 years ago

Q1: With the define, SDK is able to support different chip. Q2: wifi lib is controlled by the component name, bl602_wifi, in the Makefile. CONFIG_LINK_ROM is used to link the rom code, and ignore flash.ld please.