Coder Social home page Coder Social logo

Comments (4)

fpistm avatar fpistm commented on May 26, 2024

Hi @danyhm
This library is provided as a base to use FreeRTOS with the STM32 core not all configurations are provided nor supported.
User can customize the configuration but it is up to end user to provide/implement the required code.
I guess you enabled the configUSE_CMSIS_RTOS_V2 then configSUPPORT_STATIC_ALLOCATION is enabled.
Even in this case this is the user who need to provide it as described in the documentation:

https://www.freertos.org/a00110.html#configSUPPORT_STATIC_ALLOCATION

If configSUPPORT_STATIC_ALLOCATION is set to 1 then the application writer must also provide two callback functions: vApplicationGetIdleTaskMemory() to provide the memory for use by the RTOS Idle task, and (if configUSE_TIMERS is set to 1) vApplicationGetTimerTaskMemory() to provide memory for use by the RTOS Daemon/Timer Service task.

This is the case for several configurations and the library could not provide them to let user properly implements his solution properly.

from stm32freertos.

danyhm avatar danyhm commented on May 26, 2024

@fpistm no actually i disabled CMSIS V2 because of the hardfault. then manually enabled static allocation and then the compiler gave me the linkage error. I looked into it using CubeMX generated code and found out that It has to be implemented manually which I did.

from stm32freertos.

fpistm avatar fpistm commented on May 26, 2024

OK. So you do what was required ;)
I close this issue has there is no problem. Code have to be added/handled at application level.

from stm32freertos.

wystewart avatar wystewart commented on May 26, 2024

just want to add that if your sketch file is cpp, then you have to add extern "C" in front otherwise linker won't find it.. Would be nice if this was on a wiki page.

from stm32freertos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.