This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1352R: Porting SDK 2.40 to 3.10

Part Number: CC1352R
Other Parts Discussed in Thread: SYSCONFIG

Hi,

So far I've been successfully using the BLE 2.40 SDK. However, from anaylysis in different e2e thread it seems that TRNG driver used there takes too much current for my application and using the CC13X2 TRNG driver implementation crashes after one use. Basing on this I've decided to migrate my project to 3.10 SDK. Everything seems fine until I try to start the Bluetooth Coded Advertising from one task (from another one starting and stopping both 1M and LE Coded advertising works so it's ICALL registration issue). The stack aborts in ICALL thread on osal_alien2proxy function. My best guess is that it could not find the task handle. Unfortunately I'm not sure as the libary is just linked to the project, moreover it is optimized and has no debug symbols so I cannot see what is going on. Unfortunately, I have no Idea also where I can force to link the SDK in debug version.

What is strange, in the project .opt file I've changed the:
-DICALL_MAX_NUM_ENTITIES=10
-DICALL_MAX_NUM_TASKS=8

However, if my guess is correct, the OSAL_MAX_NUM_PROXY_TASKS is set to 2, and that is why project aborts. Do you have any guidelines how to fix this?

In my code, every task using ble SDK calls ICall_registerApp>

PS. I remember I had the same issue in the 2.40 SDK, however I've managed to fix it by just changing the

#define OSAL_MAX_NUM_PROXY_TASKS 2

to

#define OSAL_MAX_NUM_PROXY_TASKS 3

In the SDK 3.10 the osal.c is in the library so I cannot change its value.

Please help, my deadline is this wednesday.

Best regards,
Konrad

  • Hi Konrad,

    Assigning an expert to comment.

  • Hi Konrad,

    What example project are you using as a starting point?

    For simple peripheral, which does not have a stack project, the configuration has been moved to the simple_peripheral_app.opt (in the Tools/Defines folder). So, in order to modify number of ICall enabled tasks:

    - Increase ICALL_MAX_NUM_TASKS

    - Increase OSAL_MAX_NUM_PROXY_TASKS in osal.c. (If you can't find the file in the project you can drag it in from the SDK)

    - Increase ICALL_MAX_NUM_ENTITIES 

  • Hello Marie,

    The project I used as a root for porting is the simplelink_peripheral_app without the sysconfig. There is no osal.c file so I've copied it from the SDK as you suggested and modified the OSAL_MAX_NUM_PROXY_TASKS as needed.

    Everything works, thanks!


    Best regards.

    Konrad