infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 8 of 8

Thread: [SOLVED] TLE9879 and KEIL RTOS2

  1. #1
    Beginner Beginner MRE is on a distinguished road
    Join Date
    Feb 2018
    Posts
    7
    Points
    55

    [SOLVED] TLE9879 and KEIL RTOS2

    Hello,
    has someone experience in use KEIL RTOS on TLE9879.
    Especially handling of the WDT1.

    At the moment my evalboard Resets every second although I put in every task a wdt1_Service() ...
    I tested also without wdt1_Service() and different other ways also a separate watchdog task.

    Could it be that is not possible to use RTOS on the TLE9879? I think I can't see the forest for the trees...
    A downloadable Example would help.

    regards

  2. #2
    Beginner Beginner MRE is on a distinguished road
    Join Date
    Feb 2018
    Posts
    7
    Points
    55
    Ok it was my fault.
    My code was on some parts longer than the WDT so the MCU will be reset.
    Maybe that's the difference between GUI SW and embedded one ;-)

    regards

  3. #3
    Beginner Beginner TRE is on a distinguished road
    Join Date
    May 2018
    Posts
    3
    Points
    60
    Hello MRE,
    I'm trying to use KEIL RTOS on TLE9879.
    The already existing project on which I'm trying to implement the RTOS is not using the SDK of infineon instead we use our own configuration (which ist working correctly).
    Building the source files of RTOS within my project leads to an error that states "Unknown Arm Architecture!" (along with some other errors).
    How did you get KEIL RTOS started in your project?
    Do you have an example code that could help me to figure out what I'm doing wrong?

    regards

    TE

  4. #4
    Beginner Beginner MRE is on a distinguished road
    Join Date
    Feb 2018
    Posts
    7
    Points
    55
    Hello,
    I'm using the SDK from Infineon and also the ifxconfigwizard.
    I think you use another MCU than TLE987x?
    Did you include the correct MCU?

    In my case I've
    #include CMSIS_device_header
    #include <tle_device.h>

    and in the RTE_Components.h
    #define CMSIS_device_header "tle987x.h"

    and also in the options you have to choice the correct MCU.

    regards

  5. #5
    Beginner Beginner TRE is on a distinguished road
    Join Date
    May 2018
    Posts
    3
    Points
    60
    Thank you for your quick response.

    Where did you include CMSIS_device_header and <tle_device.h>?

    In my case CMSIS_device_header ist included in os_systick.c and rtx_core_c.h. These are both read-only files.
    In RTE_Components.h we define:
    #define CMSIS_device_header "TLE987x.h"
    In TLE987x.h:
    #include <tle_device.h>

    So both files you mentioned should be included. We are certain that our MCU is correct.
    What options do you mean?

    regards

  6. #6
    Beginner Beginner MRE is on a distinguished road
    Join Date
    Feb 2018
    Posts
    7
    Points
    55
    Hello,
    I think you need it in main.c because I run TLE_Init() there.
    I'm also init threads and start the kernel in main.c.

    I mean "options for target" there you have to choose a target MCU under "Device".

    regards

  7. #7
    Beginner Beginner TRE is on a distinguished road
    Join Date
    May 2018
    Posts
    3
    Points
    60
    Hello,
    we chosed the correct device in the options and also inlcude the fails in main, so that can't be the problem.
    We added the source code of the RTOS to the project by selecting Keil RTX5 in Manage Run-Time Environment -> CMSIS -> RTOS2 (API) -> KEIL RTX5. At the moment we're trying to build the source code but we also tried to build the library (both didn't work).
    How have you added RTOS to your project. Did you choose the source code or the library?

    Our main problem occures in the following lines in rtx_core_c.h:

    #if ((!defined(__ARM_ARCH_6M__)) && \
    (!defined(__ARM_ARCH_7A__)) && \
    (!defined(__ARM_ARCH_7M__)) && \
    (!defined(__ARM_ARCH_7EM__)) && \
    (!defined(__ARM_ARCH_8M_BASE__)) && \
    (!defined(__ARM_ARCH_8M_MAIN__)))
    #error "Unknown Arm Architecture!"
    #endif

    The error states: C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\RTOS2\RT X\Source\rtx_core_c.h(39): error: #35: #error directive: "Unknown Arm Architecture!".

    I'm wondering if my setting in options for target -> target are correct. Could you please tell me what your settings are?

    Tank you for your help.

    Click image for larger version

Name:	Screenshot (1).png
Views:	1
Size:	28.5 KB
ID:	3457

  8. #8
    Beginner Beginner MRE is on a distinguished road
    Join Date
    Feb 2018
    Posts
    7
    Points
    55
    Hello,
    it seems looking good...

    Maybe... take a look on the Manage Run-Time Environment and activate also under RTOS(API)->Keil RTX5 in addition to RTOS2(API)->Keil RTX5
    I'm not sure but I thinked I've read this on a Keil help site, somewhere here: https://www.keil.com/pack/doc/CMSIS/...tml/index.html

    I'm using RTOS1 because I didn't see the threads with RTOS2 in debugging mode...

    So I'm now in weekend.

    regards

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.