DA1468x BLE stack ROM is a bare program without FreeRTOS? 

⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
Peter Luo
Offline
Last seen: 4 days 39 min ago
Joined: 2016-01-17 13:37
DA1468x BLE stack ROM is a bare program without FreeRTOS? 

Hi Dialog,

I've read a old post : 

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/freertos-10-posix

,  somebody has upgraded the DA1468x SDK to FreeRTOS 10 from FreeRTOS 8.

If it's true,  as we know,  the ROM can't be upgraded,  does it means the DA1468x BLE stack exists in ROM is a bare program without FreeRTOS?

Some examples in current DA1468x or DA1469X SDKs can't work in some special case, fox example: many advertisers send adverting packets very fast, the scaning procedure will be crashed or hanged.

After debug deeply, we know the bottleneck is the FreeRTOS.

We want to port SDK to a simple SDK without FreeRTOS for high performance, need assume the ROM need no FreeRTOS at first.

Thanks, Peter

Keywords: 
Device: 
PM_Dialog
Offline
Last seen: 9 months 5 days ago
Staff
Joined: 2018-02-08 11:03
Hi Peter Luo,

Hi Peter Luo,

The ROM includes the BLE stack and the ROM booter. Please see the datashets. There is a bare metal example for the DA1469x. Why don’t you use DA1469x ? The SDK1 is supported as provided with the FreeRTOS. There is not any bare metal example for the DA1468x.

Please also check the below documents:

https://www.dialog-semiconductor.com/sites/default/files/um-b-044-da1468x_software_platform_reference_6v0.pdf

https://www.dialog-semiconductor.com/sites/default/files/um-b-056-da1468x_software_developers_guide_6v0.pdf

Thanks, PM_Dialog

Peter Luo
Offline
Last seen: 4 days 39 min ago
Joined: 2016-01-17 13:37
Hi Dialog,

Hi Dialog,

The DA1469x is too complicated for our application, and most importantly, a very key DA1468x's feature was removed in DA1469x.

We worry about BLE stack may use some function of FreeRTOS. If it's true, we should overcome more difficulties.

We've already done some inital tests,  and get some good progress, still hope to get a clear answer from you. 

Thanks, Peter

PM_Dialog
Offline
Last seen: 9 months 5 days ago
Staff
Joined: 2018-02-08 11:03
Hi Peter Luo,

Hi Peter Luo,

As mentioned before, the BLE Stack exists in the ROM Code. If you check the SDK architecture, you will see that the BLE adapter is above the BLE Stack, which implements the interface to the BLE stack. The layer above the BLE adapter, is the BLE Manager which implements the BLE framework. Please see section  7 The BLE Framework um-b-044 document. According to the BLE framework implementation, it’s not possible to have BLE functionality in bare-metal system (without the FreeRTOS).  Additionally, please keep in mind the usage of the adapter is recommended in a multithreading environment in a multi-tasking environment, as they will take care of resources between different tasks etc. Adapters also handle power management operations related to the controlled resource, hiding power management details from the application, such as blocking system sleep when the controlled HW resource is busy, or restoring HW configuration upon system wake up. Finally, the bare-metal is only for very simply application -  only access to peripherals and not any BLE activity. For example a blinky example. In that case, to access the peripherals you should use the low-level drivers and not the adapters concept.

Thanks, PM_Dialog

Peter Luo
Offline
Last seen: 4 days 39 min ago
Joined: 2016-01-17 13:37
Hi Dialog,

Hi Dialog,

Thanks for your so nice answer!

The documents is very useful too, we've found a solution.

Thank you again!

Peter