Error with Keil RTX5 tutorial

Hi,

I'm trying to learn the workings of/with the Keil RTX5, using the supplied tutorial.

During the first steps I do encounter a compiling error in the function "uint32_t os_Error (uint32_t code, void *object_id)". All the error codes os_ErrorStackUnderflow, os_ErrorISRQueueOverflow, os_ErrorTimerQueueOverflow, case os_ErrorClibSpace and os_ErrorClibMutex are unknown.

What I'm doing wrong?

Any help appreciated, Hans

Parents

  • 1) Under Project -> Options For Target -> Target tab, on the top-right, I have "Use Default Compiler version 6"

    2) In my project, When I open this file and go to line 464:
        C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.8.0\CMSIS\RTOS2\RTX\Source\rtx_core_cm.h

    #if defined(__CC_ARM)
    static __asm    uint8_t atomic_wr8 (uint8_t *mem, uint8_t val) {

    The static line is grayed out - as it should, because I am using compiler 6.

    My setup:
    µVision V5.34.0.0
    Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.
    Toolchain:        MDK-ARM Professional  Version: 5.34.0.0
    Toolchain Path:    C:\Keil_v5\ARM\ARMCLANG\Bin
    C Compiler:         ArmClang.exe        V6.16
    Assembler:          Armasm.exe        V6.16
    Linker/Locator:     ArmLink.exe        V6.16
    Library Manager:    ArmAr.exe        V6.16
    Hex Converter:      FromElf.exe        V6.16

Reply

  • 1) Under Project -> Options For Target -> Target tab, on the top-right, I have "Use Default Compiler version 6"

    2) In my project, When I open this file and go to line 464:
        C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.8.0\CMSIS\RTOS2\RTX\Source\rtx_core_cm.h

    #if defined(__CC_ARM)
    static __asm    uint8_t atomic_wr8 (uint8_t *mem, uint8_t val) {

    The static line is grayed out - as it should, because I am using compiler 6.

    My setup:
    µVision V5.34.0.0
    Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.
    Toolchain:        MDK-ARM Professional  Version: 5.34.0.0
    Toolchain Path:    C:\Keil_v5\ARM\ARMCLANG\Bin
    C Compiler:         ArmClang.exe        V6.16
    Assembler:          Armasm.exe        V6.16
    Linker/Locator:     ArmLink.exe        V6.16
    Library Manager:    ArmAr.exe        V6.16
    Hex Converter:      FromElf.exe        V6.16

Children
No data