How to configure STM32 F401RE, F767ZI boards for Bluetooth X-NUCLEO-IDB04A1
Good evening everyone,
I'm a newbie to the STM32 (well, actually to this level of programming micro-controllers), but I'm trying to do my best (it's for my master thesis).
Nevertheless I have to ask you for a little bit of help, if you don't mind.
I've got two boards, a F401RE-64 and a F767ZI-144. For now what I have to do is to implement a bluetooth communication with the expansion board X-NUCLEO-IDB04A1, so I'm trying to understand how it works.
As toolchain I have TrueSTUDIO with the CubeMX plug-in (for the blinking led demo works fine), but when I try to compile and run the SensorDemo of X-Cube-BLE1 start the problems.
I follow the pdf in the X-Cube-BLE1's Documentation folder for the CubeMX configuration.
After that I import the project in TrueSTUDIO and build it.
Two warnings appear:
#warning BLUENRG_CONFIG not valid [-Wcpp] bluenrg_IFR.c
Invalid project path: Missing project folder or file: \F767_Bluetooth_Test\Packs for Source path
For the first one I undestood that I have to add a macro in the pre-processor, but where exactly? I've tried under C/C++ Build -> Settings -> Tool Settings -> Assembler -> Symbols and C/C++ General -> Preprocessors Include Paths, Macros etc. -> Entries -> CDT User Setting Entries and seems to work, but I would like to know which is the truly dedicated location for the input of this kind of macros.
For the second problem, well I don't really know what to do. The Packs folder indicated is the one created by CubeMX when adding the BLE packages. But it resides in another path, while here seems that must be in the project's folder. I even tried to include its path, but doesn't work. I overcome the problem in a tricky why, by copying the folder Packs in the project, but gives only inclusion errors (i.e.: fatal error: host_config.h: No such file or directory blood_pressure_collector.c /F401_Bluetooth_Test/Packs/STMicroelectronics/X-CUBE-BLE1/4.2.0/Middlewares/ST/BlueNRG-MS/profiles/Central/Src/blood_pressure_collector); I suppose because they're too deep in the paths?
Said so, if I try to debug with the two warnings the run returns something like this:
Temporary breakpoint 2, main () at ..\Src\main.c:120
120 MX_GPIO_Init();
but from the app BlueNRG sometimes seems reachable (connecting gives error btw).
I tried with the .bin file of SensorDemo for the F401RE and everything works fine.
Sorry for the wall of text, but I think it's better to explain in details the problem. And thanks to whoever could reply and help me!
