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.

CC2650: How cortex-m3 get the received data from cortex-m0 in CC2650?

Part Number: CC2650
Other Parts Discussed in Thread: BLE-STACK

Hi,

I am interested in knowing that the ways of  commuication between cortex-m3 and cortex-m0 , in ble application; Is there any ways except for interrupt?

  • In a BLE application the low level radio is handled by the BLE stack and the user can't access this level in the stack.

    Could you please explain the background for your question?
  • Thanks!
    I know the datas are handled by BLE stack. Now I am writing the BLE stack in contiki by myself, and I have to solve the Sleep clock accuracy synchronous problem; So I want to get the anchor point of every connect event, most time the anchor point is empty packet, my idea is catch the empty packet time, but to my surprise , I can not get data through interrupt from cortex-m0, while 802.15.4 protocol is successful.

    /* Disable interrupts */ /**from contiki**/
    interrupts_disabled = ti_lib_int_master_disable();

    /* Set all interrupt channels to CPE0 channel, error to CPE1 */
    HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEISL) = IRQ_INTERNAL_ERROR;

    /* Acknowledge configured interrupts */
    HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIEN) = RX_FRAME_IRQ | ERROR_IRQ | RX_EMPTY_PAYLOAD_IRQ;

    /* Clear interrupt flags, active low clear(?) */
    HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIFG) = 0x0;

    ti_lib_int_pend_clear(INT_RFC_CPE_0);
    ti_lib_int_pend_clear(INT_RFC_CPE_1);
    ti_lib_int_enable(INT_RFC_CPE_0);
    ti_lib_int_enable(INT_RFC_CPE_1);

    if(!interrupts_disabled) {
    ti_lib_int_master_enable();
    }

    I do not know the reason! and m0 and m3 have the common ram, so I gucess there is another way.
  • Are you working with Contiki-OS or Contiki-NG? You know Contiki-NG has a working BLE-stack already?

    github.com/.../ble-ipv6

    Either way, we generally don't provide support for how to implement the lower level access to the CM0. Your best bet would be to refer to the Radio chapter (Chap. 23) in the Technical Reference Manual.
  • yes, I know contiki-NG has ble-stack;
    Anyway, thank you very much!