Dear Dialog,
Recently I met a strange building error. This occurred after I adding the BLE_SDK6_examples following the tutorial on this page GitHub - dialog-semiconductor/BLE_SDK6_examples: Examples for the Dialog Smartbond Bluetooth low energy families based on the SDK6
I tried the lasted SDK version and the SDK SDK_6.0.18.1182.1. As long as I building the examples in the ble_examples folder, the errors will be as shown below:
But there is no error after I building the examples in the peripheral_examples folder. It seems that the errors only occur when I build the examples including the BLE part.
Could you please help to resolve this problem. Thanks a lot!
Hi Nick,
Thank you for posting your questions online.
Could you please download the latest SDK and have a try again?
https://www.renesas.com/en/document/swo/sdk60221401-da1453x-da145856?r=1564826
BR,
Jason
Dear Jason,
I have already tried the latest sdk. The same issue will occur.
It is weird, which example you are using? from my side as you can see:
Have you traveled this tutorial: 1. Introduction — DA145XX Tutorial SDK Getting started (renesas.com)
JH_Renesas
All ble examples except the examples in the peripheral_examples in the SDK will occur the same issue. So I think it is not the problem caused by SDK. It seems something wrong happened to some path settings.
Dear Nick,Thank you for the reply.Please go on Options for Target--> Linker tab and select the correct scatter file:
When you run the python script you fix the Paths, you can see that it assigns another scatter file.
You can find this scatter file on the following folder of each example:For instance for the HID example: HID-Gamepad-Digitizer\src\config:Best Regards,OV_Renesas
Dear OV,
Thanks for your reply.
Whenever I compile any example from ble_examples in SDK_6.0.18.1182.1 (for instance, E:\Emdedded\DA1453x_14585_14586\SDK\SDK_6.0.18.1182.1\DA145xx_SDK\6.0.18.1182.1\projects\target_apps\ble_examples\ble_app_barebone), the following error occurs. At this point, the corresponding SCT file path is E:\Emdedded\DA1453x_14585_14586\SDK\SDK_6.0.18.1182.1\DA145xx_SDK\6.0.18.1182.1\sdk\common_project_files\scatterfiles\DA14531_armclang.sct.
As you suggested, I went to Keil and did go to Options for Target --> Linker tab and selected the scatter file: "copied_scatter_531.sct" from the HID example: HID-Gamepad-Digitizer\src\config, but after compiling, the same error occurred.
I also tried running the command python dlg_make_keil5_env_v2.py -sdkpath "clean", and it showed a successful cleanup, but the same error still occurred during compilation.
After that, I re-ran the command python dlg_make_keil5_env_v2.py -sdkpath "E:\Emdedded\DA1453x_14585_14586\SDK\SDK_6.0.18.1182.1\DA145xx_SDK\6.0.18.1182.1", but the same error persisted during compilation.
The compilation error mentioned above happens regardless of whether I run the examples provided by the SDK or examples downloaded from GitHub.Best Regards,
Nick
Hi Nick,Thank you for the reply.Do you have Link Time Optimization enabled?Please also try with a clean SDK and try to keep the path as small as possible.Best Regards,OV_Renesas
Thank you for your reply.
I have Link Time Optimization enabled.
Now I have tried reinstalling Keil and placed the newly downloaded SDK in the root directory of another drive. However, when compiling BLE-related examples, the same error still occurs.
I would like to know how to clear the configuration related to the header file paths. Based on the error message displayed, it seems that some file is calling the da1458x_config_basic.h header file, but the path to this header file is incorrect. I have checked the path settings in Keil, and everything seems fine, as shown in the figure below.