Other Parts Discussed in Thread: CC2650, SYSBIOS, TS5A3359,
I have a custom board with a CC2640, the Smart rF studio tells me that antenna is working correctly. I can see it on my cell phone so the 24MHz clock an everything antenna related is ok. However, it seems the BLE stack itself is not correctly working.
I have checked all pins and voltages, they are all good. I can setup application without ble stact and set pins correctly, flash led, etc. I tried the clock_CC2650_Launchxl_TI, the empty_CC2650_Launchxl_TI, the empty_CC2650_Launchxl_TI, the error_clock_CC2650_Launchxl_TI and they all worked perfectly.
I am trying to make the simple_peripheral_cc2650lp_app work but the call to BIOS_start() makes everything crash. I also checked in the disasembly code for problems and it turns out the MCU jumps to an empty area of the code. It does this after going into BIOS_start(), then ICall_taskEntry, then it goes straight to 0xF000.
Before jumping to that blank area it goes here
Then into ti_sysbios_knl_Task_startCore__E, then ti_sysbios_knl_Queue_head__E is called, then ti_sysbios_BIOS_setThreadType__E is also called, then ti_sysbios_hal_Hwi_switchFromBootStack__E, then ti_sysbios_family_arm_m3_Hwi_initStacks__E is called, then ti_sysbios_knl_Task_SupportProxy_swap__E, then ..... I skip some and we get to ti_sysbios_knl_Task_enter__I, then ti_sysbios_family_arm_m3_TaskSupport_glue
Then we go into ICall_taskEntry again and that is when that happens.
Also related, I tried the rfPacketTx_CC2650_Launchxl_ti, I saw the same problem when calling the bios_start() function.
EDIT: In fact more precisely, the task is called, but as soon as I try to run the following line, it fails.
RF_postCmd(rfHandle, (RF_Op*)&RF_cmdFs, RF_PriorityNormal, NULL, 0); then calls Swi_or(Swi_handle(&swiFsm), Fsm_EventWakeup);
Then, inside that function, as soon as the Swi_post(swi); is called... that is! nothing works!