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.

ti.sysbios.knl.Task error

Other Parts Discussed in Thread: SYSBIOS

HI,

I am wrting code to send UDP to PC. I got the most of code from helloworld regarding NDK. also, I want to send UDP to PC, so I got the code from client regarding "echo UDP" command.

My existing project is using idle task to process UART data. 

When I added "udpecho" to my existing project using HelloWorld project, there was no problem.

When I added code to send UDP to PC, I got the following error from CCS during runtime.

ti.sysbios.knl.Task: line 895: assertion failure: A_badPriority: An invalid task priority was used.

I googled and I fxied the problem. I put my idle task to the task with priority 2.

It meas there is no idle task provided by me. The problem was fixed.

So I want to know Can't I used idle task with NDK?

What is the reason for the above my problem?

SYS/BISO is very efficient but very frustrating because many thing is done without my knowledge.

Thanks in advance.

Baeyoung

  • Hi,
    Moved this thread over TI-RTOS forum for faster and appropriate response. Thank you.
  • Hi Baeyoung,
    Can I see the code contained in your original idle task function? Also can I see your cfg file where you create your UDP task?

    Thanks,
    Moses

  • Dear Moses,

    Thanks for your update.

    I attached main *.c file and *.cfg file. These are causing ti.sysbios.knl.Task error.

    2475.nara_dsp.c

    6378.nara_dsp.cfg

    The code for NDK is not correct. I forgot to backup files. So I attached files that were nitermin during NDK porting.

    But, you can check my idle function, UART_Idle_handler().

    The final files are like the following. I moved UART_Idle_Handler() to TASK_UART_Handler().

    It worked well. Just removing my idle function is OK.

    8814.nara_dsp.c

    6622.nara_dsp.cfg

    Thanks in advance.

    Baeyoung

  • Baeyong,
    By the way, the 2 sets of code you sent to me are similar. I haven't seen anything that can cause the priority of any of your tasks to change. I saw a commented out function called StackTest, is that your UDP task function? If that is, where did you get that piece of code from, it looks like its from an older example and shouldn't work well with what you have in your cfg file. Also I'd like to know what version of NDK you're using and what device are you developing for?

    Thanks,
    Moses
  • Dear Moses,
    Oops, It's my mistake. I uploaded the same files. I'm sorry to cause you a lot of confusion.
    I got StackTest from Helloworld project. My version is like the following:
    NDK - 2.21.02.43
    MCSDK - 2.01.02.06
    Actually NDK was installed with MCSDK. I think It's the last version compatible MCSDK even though there are more newer NDKs.
    I'm writing my code using TMDSEVM6678L.
    And today I checked my code with IDLE task created by me. there was no problem.
    I'm a little upset.
    generally what's the reason for the error like the following?

    ti.sysbios.knl.Task: line 895: assertion failure: A_badPriority: An invalid task priority was used.

    Is there a more advanced code for StackTest() ?
    Can you provide to me?
    Right now, I had no error for ti.sysbios.knl.Task.
    If that error occur again, I will open new issue.
    I'm waiting for answer to above questions.
    Thanks in advance.
    Baeyoung
  • Hi Baeyoung?
    I can give you another UDP example for you to test but what are you trying to accomplish in StackTest? Is the StackTest code a UDP client from the UDPecho example in MCSDK? With the idle task function removed, can you get just the UDP task working without seeing that error?

    Thanks,
    Moses
  • Dear Moses,

    As I know, I can setup all configuration needed for NDK using SYS/BIOS and I can setup using code. So, I used StackTest for setup cofiguration needed for NDK.

    Yes, StackTest is part of HelloWorld project from MCSDK.

    I forgot to backup error version. So, I can't figure out what caused problem.

    In the last update, I checked my codes with idle task. It worked successfully.

    If you can provide UDP example, it will help me a lot.

    I need your help. Thanks in advance.

    Best regards,

    Baeyoung

  • Baeyoung,
    what type of UDP example are you looking for?

    Regards,
    Moses
  • Dear Moses,

    Now, I am using code from HelloWorld project,

    I think Stacktest() is to initialize IP setting for NDK and sendto() is to send packet.

    Actually I need example project to use SYS/BIOS for IP setting and use EDMA to send packet.

    Could you provide?

    Thanks in advance.

    Baeyoung