Fatal error in ble_adv demo code (cannot build)

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
taylora20
Offline
Last seen:1 year 2 months ago
加入:2019-10-09 06:28
Fatal error in ble_adv demo code (cannot build)

I'm trying to run some demo code before custom programming my DA1496 PRO board. I haven't edited the ble_adv code at all but when I build the code I get the following 3 errors:

1) fatal error: ad_pmu_h: No such file or directory

2): * * * (sdk / sys_main / sys_power_mgr_da1496x.o] Error 1

3) Symbol 'ATT_PERM_READ' could not be resolved

I assume the second and third errors stem from the first, "fatal error". This error lists the resource as "sys_power_mgr_da1469.c" and the path as "/ble_adv/sdk/sys_main". However when I navigate through the project explorer using the path "/ble_adv/sdk/sys_main/sys_power_mgr" the file ad_pmu.h appears in the project explorer tab.

I've attached a picture of the project explorer (which shows ad_pmu.h). Why am I getting this error and what can I do to resovle it?

Attachment:
Device:
PM_Dialog
Offline
Last seen:2 days 11 hours ago
Staff
加入:2018-02-08 11:03
Hi taylora20,

Hi taylora20,

I would suggest you to unzip the SDK into a short folder path. For example, put the new SDK in this path : C:\SDK\SDK_10.0.6.90. All the SDK example should run without any modifications. Then, launch the SmartSnippets studio (latest version is the recommended) and select your new workspace directory (C:\SDK\SDK_10.0.6.90). After that, import and build the ble_adv project. Please let me know if you are able to build it successfully.

Thanks, PM_Dialog

taylora20
Offline
Last seen:1 year 2 months ago
加入:2019-10-09 06:28
Hi PM_Dialog,

Hi PM_Dialog,

我已经have the sdk into a short folder path. I made that correction based off a response I got to a different help forum post (linked below). The sdk is currently in: C:\Dialog\SDK_10.0.6.90. I also re-downloaded the latest version of SmartSnippets studio and re-downloaded the SDK 10.0.6.90 (to wipe the meta data). All of these actions still result in errors mentioned in my above post. Do you have any other advice?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/demo-code-bleadv-does-not-build

jimkalou
Offline
Last seen:11 months 11 hours ago
加入:2019-11-13 11:39
Hello taylora20 . I see tha

Hello taylora20 . I see tha you used DA1469x device. Could you please send me your mail to ask you some questions about it , because i am a new user of this device ?

Thanks in advance.

taylora20
Offline
Last seen:1 year 2 months ago
加入:2019-10-09 06:28
Hi Jimkalou,

Hi Jimkalou,

I dont know how helpful I will be I bought the device a couple weeks ago and have had nothing but issues with it so far. I haven't been able to run any of the demo codes much less program it as I orginially intended.

PM_Dialog
Offline
Last seen:2 days 11 hours ago
Staff
加入:2018-02-08 11:03
Hi taylora20 and jimkalou,

Hi taylora20 and jimkalou,

All the SDK examples should be run as they are provided by the SDK without any modification. Please do the steps below:

  1. Right-click in the ble_adv project from the “Project Exporer” window and go to the “Properties” (last option)
  2. Make sure that you have the correct build configuration (on the top of the window) and navigate to : C/C++ Build à Settings à Tool Setting à Warnings
  3. Uncheck the last checkbox : “Generate errors instead of warnings”

Thanks, PM_Dialog

taylora20
Offline
Last seen:1 year 2 months ago
加入:2019-10-09 06:28
我跟着你的额外的

我跟着你的额外的instructions and still cannot build the code ble_adv. When I tried to build (using the Debug_QSPI build option) I still generate the following errors:

1) fatal error: ad_pmu.h: No such file or directory

2) make: *** [sdk/sys_man/sys_power_mgr_da1469x.o] Error 1

I've attached an image of the settings configuration for ble_adv I found by following your instructions. As you can see the checkbox "Generate errors instead of warnings" is unchecked. I've spent the last month trying to debug Dialog's demo code and have made no progress on developing my personal project. Is there anything else I can try to get SmartSnippets Studio working properly? I assume that if the pre-made demo code doesn't work I can't move on to developing my own project. Should I continue to assume the problem has something to do with my version of the SDK and/or SmartSnippets and has nothing to do with the actual code in Ble_Adv?

Thanks,

taylora20

Attachment:
PM_Dialog
Offline
Last seen:2 days 11 hours ago
Staff
加入:2018-02-08 11:03
Hi taylora,

Hi taylora,

Please try to download from the support webasite and unzip the SDK again in the your C:/ . I am not able to replicate this error, so something you did was wring. Also, can you please try it with another example of the SDK?

Thanks, PM_Dialog