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.

PortCLZ and prvPortStartFirstTask

Other Parts Discussed in Thread: CC3200

My development team really needs to understand why these warning are generated in oslib and how to eliminate them. 

function "portCLZ" declared implicitly tasks.c /oslib line 2156 C/C++ Problem

function "prvPortStartFirstTask" declared implicitly port.c /oslib line 348 C/C++ Problem

We have installed/re-installed the 3200 SDK, version 1.2 many, many times and always eventually end up with these warnings.  They occur on different CCS versions, different development platforms.

Today, after becoming frustrated with this on my WIndows 10 workstation, I even went to a Ubuntu 14.10 machine where I had installed CCS 6.1.2.00015 several months ago.  I had installed the SDK as well and had the wlan_station, serial wifi, and freeRTOS_demo examples installed along with driverlib, oslib, ti_rtos_config and simplelink.  All of these projects built without error or warning.  I then I made some changes to the freeRTOS_demo and as a result those changes the two warning mentioned were generated.  In addition, completely unrelated projects like serial_wifi began exhibiting errors! I removed the freeRTOS_demo project from the workspace, did a clean on all projects AND STILL got the warnings and errors.  No amount of cleaning, re-installing etc seems to clear the problem.  Once the problem occurs the only solution is to create a new workspace.

Again I have been struggling with these issues for several weeks, but at this point it is becoming critical.  Clearly I am doing something wrong but I'm at a loss for what that is.  Please help with this issue as soon as possible.

Thanks,

Dallas P.

  • Hi Dallas,
    These warnings are coming from the FreeRTOS port for CC3200. Both of these functions are defined in:
    FreeRTOS/Source/portable/CCS/ARM_CM3/portasm.asm. I think you can get rid of the warnings by declaring the functions in CCS/ARM_CM3/portmacro.h:

    extern unsigned char portCLZ(unsigned int uxReadyPriorities);
    extern void prvPortStartFirstTask( void );

    Best regards,
    Janet
  • Thanks for the prompt reply Janet. Yeah, I had tracked these warnings down in the source and it was clear what was causing the issues, I just didn't understand why. It seemed like a mis-configuration of preprocessor #defines and as I was having problems with Simplelink under FreeRTOS, I thought maybe I was doing something wrong. The problem with Simplelink turned out to be unrelated, and we are progressing now thankfully. Don't like having to reset my launchpad between invocations of the debugger but I can live with it.

    One thing we discovered is that life with the CC3200 is significantly more pleasant if we ignore the steps in the Getting Started Guide which instruct the user to import the oslib, simplelink, driverlib, and tirtos_config projects into his/her workspace. Doing so is a certain road to the above mentioned warnings and other more extreme badness.

    Again, thanks for the help. We really appreciate it.

    Dallas Posey

    Embedded Software Engineer
    Noregon Systems Inc.