Compiled code using " Atollic True STUIDIO" for STEVAL-BCN002V1 doesn't work
Hardware used: "STEVAL-BCN002V1" BlueTile connected Via "STEVAL-BCN002V1D"
Compiler Used: "Atollic True STUIDIO version 9.3.0"
Flasher used: "RF-Flasher Utility v4.2.0"
Source Code/Firmware used: "STSW-BLUETILE-DK 1.3.0"
Debugger/SWD: STLink /V2
I flashed the STSW-BLUETILE-DK 1.3.0\Firmware\BLE_Examples\ BLE_SensorDemo\BlueNRG-2\BLE_SensorDemo(withOTAResetManager).hex on the BlueTile and it worked as expected i.e. device listed in "ST BLE Sensor app" and could connect to it etc...
Now I build the binary myself by using Atollic True STUIDIO version 9.3.0 for the "STSW-BLUETILE-DK 1.3.0\Project\BLE_Examples\BLE_SensorDemo\TrueSTUDIO\BlueNRG-2", can build without any errors/warnings, but when flashed, I see the LED on the BlueTile turn solid GREEN. Device is not seen in ST BLE Sensor app.
While building the binary I am using the default compiler settings and configurations.
To test simple application, I flashed
"STSW-BLUETILE-DK 1.3.0\Firmware\BlueNRG1_Periph_Examples\Micro\ Hello_World\BlueNRG-2" which does work (I could see prints on UART output)
but
"STSW-BLUETILE-DK 1.3.0\Project\BlueNRG1_Periph_Examples\Micro\ Hello_World\TrueSTUDIO\BlueNRG-2"
doesn't.
So to me it seems that some compiler settings could be wrong. Or the binaries is not generated out of the sources given here. Also, its' very well possible that the binaries might have been generated out of KEIL or IAR and not tested for TrueSTUDIO, which I am using.
Further I tried to debug the Micro_Helllo_World, I could see RESET_HANDLER() is getting hit, but it will never reach main. I see the data segment start and end (_sdata and _edata), bss section start and end (_sbss and _ebss), have some values which doesn't match with that MAP file content.
Any leads into this are very helpful.
Thanks
