cancel
Showing results for 
Search instead for 
Did you mean: 

Building an empty project from FP-SNS-MOTENVWB1 package IOC file fails with errors in definitions and functions

VHorv.1
Associate

Hello everyone and hope you all are doing well.

I've been using STM32WB55 microcontroller with IKS01A3 expansion board for my latest project and while setting it up with shipped example project and ST Sensor App went flawlessly I ran in some weird errors while I was trying to start my new project from CubeMX configuration file. Compared to the default configuration of .IOC I included Vbat and Vref from ADC1, used auto resolver to resolve all the clock issues and then generated code.

First I was met with error in file app_entry.c where on line:

config_param.DeviceID = (uint16_t)DeviceID;

config_param didn't have member named 'DeviceID'.

I went to the config_param definition and added (uint16_t)DeviceID declaration inside of config_param and that fixed the problem but all the other errors were related to macros and I'm not sure why they are here and should I just start fixing them or is there a deeper configuration problem with my project?

Macros in question are:

#define CFG_BLE_LS_SOURCE
#define CFG_BLE_OPTIONS

and errors related to them are all:

"*** undeclared (first use in this function); did you mean ***"

No other changes were made to the default code generated by the CubeMX.

0 REPLIES 0