CTL task stack

Comments

5 comments

  • Avatar
    Mjscott

    The stack usage of all tasks is well above the CTL defined STACKSIZE of 16. By the way, the process and main stacks are both 2048.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Help | Libraries | CrossWorks Tasking Library Package has some words on the implementation.

    All source code is provided in $(PackagesDir)/libraries/libctl/source

    0
    Comment actions Permalink
  • Avatar
    Mjscott

    I have an additional question, I'm using Crossworks for ARM 4.3. Tasking Library 3.6, on a STM32L476 discover board, the ARM-ARCH is V7EM, Core Type is Cortex-M4, FP ABI is soft, FPU is FPv4-SP-D16 all defined from drop down lists in project properties. When I look at CTL_CPU_STATE_WORD_SIZE in ctl.h it is 16 and __ARM_ARCH_FPV4_SP_D16__ is grayed out (not defined). Shouldn't that be defined? if so my CTL_CPU_STATE_WORD_SIZE would be 16+32. Shouldn't the drop down selection of FPv4-SP-D16 have defined it?

     

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    You'll need to set the FPABI to Hard if you want to use the FPU.

    0
    Comment actions Permalink
  • Avatar
    Mjscott

    Ok, that's a little bit confusing, especially since I never manually set any of them. I expected that if a core had a hardware FP that it would be enabled by default. All those settings are a result of doing a New CTL project, it would be nice to know what the default setting are for different core types and/or boards.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.