⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
diogenes
Offline
Last seen:2 years 4 months ago
Joined:2018-10-04 05:09
about Initialize RW

Hi, Dialog,

Now I'm running the ble_app_all_in_one project in DA1458x_SDK sample and I found a problem.
A function rwip_init(error); is written in system_init() located in arch_system.c.
During debug, it faulted at the rwip_init(error);.
当我看到函数的实体,它的存在和er the condition #if (!BLE_HOST_PRESENT).
So I think before at the rwip_init(error) calling #if (!BLE_HOST_PRESENT) is also needed.
Actually after inserted #if (!BLE_HOST_PRESENT) before at the rwip_init(error), debug proceeded.
Am I right?

But I encountered other debugging problem.
Debug stopped again at init_rand_seed_from_trng().
What is the cause?

Tell me who knows or experienced too.

Thanks,

Device:
PM_Dialog
Offline
Last seen:2 days 12 hours ago
Staff
Joined:2018-02-08 11:03
Hi diogenes,

Hi diogenes,

You should not add the condition #if (!BLE_HOST_PRESENT) over the rwip_init() in the ystem_init() of the arch_system.c file. The reason is because the rwip_init() function located in ROM code. The rwip_init() function cannot be modified by the user, as it is located in ROM code. The source code that you found in the project under the BLE_HOST_PRESENT definition, is used when you want to use thecontroller over HCI. If you define the function, yes there will be a conflict. Could you please clarify your second question? What do you mean that the code stops at init_rand_seed_from_trng()? Did you modify any of the SDK file? If you did that, it is highly recommended to not change and SDK files.

Thanks, PM_Dialog