Skip to content

Maximum number of tasks in sequencer not triggering an error #52

Description

@KaDw

Setup:

  • LoRa-E5-STM32WLE5JC
  • GNU Arm Embedded Toolchain 10.3-2021.10

Bug:
Preprocessor error is not triggered if the CFG_SEQ_Task_NBR is > 32 although there is a code to protect it

#if UTIL_SEQ_CONF_TASK_NBR > 32
#error "UTIL_SEQ_CONF_PRIO_NBR must be less of equal then 32"
#endif

It happens because the #define UTIL_SEQ_CONF_TASK_NBR CFG_SEQ_Task_NBR is evaluated by preprocessor to zero. It doesn't know the value of CFG_SEQ_Task_NBR at this stage. Try to add -Wundef flag and see the compiler output

Next when there is a preprocessor macro #if UTIL_SEQ_CONF_TASK_NBR > 32 we copmare 0 > 32

Also there is a typo in the error message: UTIL_SEQ_CONF_TASK_NBR must be less of equal then 32

Activity

  1. ASELSTM commented on Jul 11, 2023

    @ASELSTM
    Contributor

    ST Internal Reference: 157070

  2. added
    internal bug trackerIssue confirmed and logged into the internal bug tracking system
    on Jul 11, 2023
  3. added
    bugSomething isn't working
    mwMiddleware-related issue or pull-request.
    on Aug 22, 2024
  4. added theissue type on Mar 31, 2026
  5. moved this from To do to Analyzed in stm32cube-mcu-fw-dashboardon Mar 31, 2026
  6. added and removed
    lorawanLong Range Wide Area Network
    mwMiddleware-related issue or pull-request.
    on Jun 25, 2026
  7. assigned and unassigned on Sep 9, 2026
  8. moved this from Analyzed to In progress in stm32cube-mcu-fw-dashboardon Sep 17, 2026
  9. added this to the v1.7.0 milestone on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternal bug trackerIssue confirmed and logged into the internal bug tracking systemutilsUtilities

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions