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.

  • Resolved

CC1310: My transmitter not send data in normal, its work well in debug mode.

Expert 1440 points

Replies: 19

Views: 257

Part Number: CC1310

Hello,

I am using cc1310.

I am send some ack data after receiving some data. But it can not send after some time.

When i am send data with debug mode then its work well.

can anybody help me to solve the problem? 

Thanks,

Dinkar

  • In reply to TER:

    I have 2 task one for send and other for receive.

    I get some message from other rf then i want to wait for button interrupt. if button interrupt is receive then send some big data over rf.

    I wait for button interrupt using some flag and task_sleep in send task. when i get that flag value then i want to send data. 

    my code send task like is 

    while(1)
    
    {
    
    while(flag == 0)
    
    {
    
    task_sleep(1000);
    
    }
    
    RF send data functions
    }
    
    

    In this code it work good in debug mode. when i run code in normal running mode then it only send data some time .

  • Guru 240310 points

    In reply to dinkar patel:

    Have you looked into having the pin press call back posting a semaphore and pending on the that semaphore before sending data?

     OOO until September 30th. If your thread is not answered by someone after 2-3 days after your last post, please repost with a link referring to your original post. 

  • In reply to TER:

    Hi TER,

    I use the same semaphore and its work for me. it sends data.

    But if i want to use delay based logic then which function is use?

    Dinkar

  • Guru 240310 points

    In reply to dinkar patel:

    Ok, so you have a solution using a semaphore. Why do then have a delay based logic?

     OOO until September 30th. If your thread is not answered by someone after 2-3 days after your last post, please repost with a link referring to your original post. 

  • In reply to TER:

    I am asking this for future use.
  • In reply to TER:

    Hi TER,

    Is there any function available? waiting for reply.

  • Guru 240310 points

    In reply to dinkar patel:

    Could you elaborate "for future use"? Why do you need a delay based solution?

     OOO until September 30th. If your thread is not answered by someone after 2-3 days after your last post, please repost with a link referring to your original post. 

  • In reply to TER:

    Right now there is no need for that delay.

    But if i want to use in other code then which delay function to be used?

  • Guru 240310 points

    In reply to dinkar patel:

    Delay if not absolutely needed should be avoided since it's blocking and the MCU can only do delay. In a code with more that one task this is could get unwanted effects.

    If you want to use delay in in your use case you have to use cpu delay where the MCU running NOPs for a number of cycles.

     OOO until September 30th. If your thread is not answered by someone after 2-3 days after your last post, please repost with a link referring to your original post. 

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.