Sep 08, 2020
03:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2020
03:10 PM
It appears that version 4.1.8 has bit of an omission.
I would like to use Task Tags.
Ideal for use with the DACs on a XMC4000. Can "see" with a scope what task is active.
But this version seems to default "configUSE_APPLICATION_TASK_TAG" to 0
I have a "work around" but I lose it every time I generate code. Very clunky!
Any changes in the future?
editted.
I would like to use Task Tags.
Ideal for use with the DACs on a XMC4000. Can "see" with a scope what task is active.
But this version seems to default "configUSE_APPLICATION_TASK_TAG" to 0
I have a "work around" but I lose it every time I generate code. Very clunky!
Any changes in the future?
editted.
- Tags:
- IFX
5 Replies
Sep 09, 2020
12:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 09, 2020
12:41 AM
Hi,
As a workaround you could define the macro in the compiler preprocessor options in the project properties.
Regards,
Jesus
As a workaround you could define the macro in the compiler preprocessor options in the project properties.
Regards,
Jesus
Sep 09, 2020
08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 09, 2020
08:45 AM
Thank you Jesus!
That could be a good path.
but ...
I change configUSE_APPLICATION_TASK_TAG to 1 in "FreeRTOS.h" - Good you've got a solution.
But I also change "FreeRTOSConf.h":
- near end of file I add : #define traceTASK_SWITCHED_IN() XMC_DAC_CH_Write((XMC_DAC_t *)(void *)DAC,0,(uint32_t)pxCurrentTCB->pxTaskTag)
- and near top I add : #include
I've tried include "Dave.h", but I suspect a circular reference as Dave.h probably eventually includes FreeRTOSConf.h
Any recommend path to take?
That could be a good path.
but ...
I change configUSE_APPLICATION_TASK_TAG to 1 in "FreeRTOS.h" - Good you've got a solution.
But I also change "FreeRTOSConf.h":
- near end of file I add : #define traceTASK_SWITCHED_IN() XMC_DAC_CH_Write((XMC_DAC_t *)(void *)DAC,0,(uint32_t)pxCurrentTCB->pxTaskTag)
- and near top I add : #include
I've tried include "Dave.h", but I suspect a circular reference as Dave.h probably eventually includes FreeRTOSConf.h
Any recommend path to take?
Sep 09, 2020
01:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 09, 2020
01:15 PM
And another thing.
taskYIELD_FROM_ISR is missing in this latest version.
taskYIELD_FROM_ISR is missing in this latest version.
Attachments are accessible only for community members.
Sep 10, 2020
02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 10, 2020
02:24 PM
Hi,
The trace macros are more challenging...
You can try by copying the attached file, after changing the extension from .txt to .tmpl, to your project under Dave/Model/APPS/FREERTOS/v4_1_8/Templates
The file includes at the end a file "FreeRTOSConfigUser.h" if the the macro FREERTOS_INCLUDE_USER_CONFIG_H is defined.
You can use the FreeRTOSConfigUser.h to define the FreeRTOS trace macros, https://www.freertos.org/rtos-trace-macros.html
Regarding taskYIELD_FROM_ISR, it has been renamed to portYIELD_FROM_ISR. See https://sourceforge.net/p/freertos/bugs/198/
Regards,
Jesus
The trace macros are more challenging...
You can try by copying the attached file, after changing the extension from .txt to .tmpl, to your project under Dave/Model/APPS/FREERTOS/v4_1_8/Templates
The file includes at the end a file "FreeRTOSConfigUser.h" if the the macro FREERTOS_INCLUDE_USER_CONFIG_H is defined.
You can use the FreeRTOSConfigUser.h to define the FreeRTOS trace macros, https://www.freertos.org/rtos-trace-macros.html
Regarding taskYIELD_FROM_ISR, it has been renamed to portYIELD_FROM_ISR. See https://sourceforge.net/p/freertos/bugs/198/
Regards,
Jesus
Sep 21, 2020
10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 21, 2020
10:03 AM
Hi Jesus,
Thank you.
Is portYield... the official rename? The online FreeRTOS still refers to taskYield... he sourceforge items wasn't clear.
And the User config does work. Thanks again
Thank you.
Is portYield... the official rename? The online FreeRTOS still refers to taskYield... he sourceforge items wasn't clear.
And the User config does work. Thanks again