FreeRTOS Guide Example doesn't work
Answer
3/11/19 12:40 PM

Hallo,

ich versuche grade den FreeRTOS-Guide Schritt für Schritt durchzugehen. Leider sind die Code-Beispile/Snippets nicht identisch mit dem Template "XdkApplicationTemplate" auf welches der Guide verweist (Seite 4, Abschnitt 2.1). Ich habe versucht den Code wie im Guide nachzubauen und leider hängt sich mein XDK nach dem flashen auf. Das liegt whs. daran, das mein aktuelles Template andere Bezeichner in den Deklarationen verwendelt, als das im Guide. Ich bekomme es aber nicht so konstruiert, dass es wie im Guide beschrieben funktionieren könnte.

Können Sie mir die alten Templates irgendwie zukommen lassen?

 

Mit freundlichen Grüßen

Florian Dichtl

 

0 (0 Votes)
RE: FreeRTOS Guide Example doesn't work
Answer
3/14/19 10:00 AM as a reply to Florian Dichtl.
Hello Florian, the sample project has changed a bit, the funktion is now called:
/** Refer interface header for description */
void AppController_Init(void * cmdProcessorHandle, uint32_t param2)
{
    BCDS_UNUSED(param2);

    Retcode_T retcode = RETCODE_OK;

    if (cmdProcessorHandle == NULL)
    {
        printf("AppController_Init : Command processor handle is NULL \r\n");
        retcode = RETCODE(RETCODE_SEVERITY_ERROR, RETCODE_NULL_POINTER);
    }
    else
    {
        AppCmdProcessor = (CmdProcessor_T *) cmdProcessorHandle;
        retcode = CmdProcessor_Enqueue(AppCmdProcessor, AppControllerSetup, NULL, UINT32_C(0));
    }

    if (RETCODE_OK != retcode)
    {
        Retcode_RaiseError(retcode);
        assert(0); /* To provide LED indication for the user */
    }
}

 

in the old template from Workbench 2.0.1 we had only:

 


/* system header files */
#include "BCDS_Basics.h"

/* additional interface header files */
#include "FreeRTOS.h"
#include "timers.h"

/* own header files */
#include "XdkApplicationTemplate.h"

/* constant definitions ***************************************************** */

/* local variables ********************************************************** */

/* global variables ********************************************************* */

/* inline functions ********************************************************* */

/* local functions ********************************************************** */

/* global functions ********************************************************* */

/**
 * @brief This is a template function where the user can write his custom application.
 *
 */
void appInitSystem(xTimerHandle xTimer)
{
    (void) (xTimer);
}

 

Could you please provide more information regards the issue you are facing?

 

Best regards,

Martin

0 (0 Votes)
RE: FreeRTOS Guide Example doesn't work
Answer
3/14/19 10:44 AM as a reply to Martin Clement.

Hey Martin,

i have to write an program which record 5min sound and write as .wav-file to sd-card. I wan't to integrate these feature in RTOS in a correct way.

For these reason I try to understand how AppControllerEnable, AppControllerFire, AppCopntrollerSetup, .... work. But I can't understand the FreeRTOS Guide when templates in workbech and examples in the doc differ.

Can you tell me, how to implement the example function "doSomething();" in the API?

Greetings
Florian

0 (0 Votes)