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:
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