Skip to main content
Visitor II
February 27, 2024
Solved

STM32 Blue pill Freertos

  • February 27, 2024
  • 2 replies
  • 2880 views

Hi,

I am planning to use STM32 bluepill board with Freertos. Hence trying to use Freertos API. I wanted to know how the CUBE IDE makes sure that API call to Freertos doesn't transform into an API call to Linux OS on which CUBE IDE is installed during compilation process.

Please guide.

with thanks,

B.Deepak Kumar

    This topic has been closed for replies.
    Best answer by Andrew Neil

    @bdpak wrote:

    Linux OS system calls cannot be used in the CUBE IDE resulting in compilation error. Am I right?


    Any calls to any stuff that's not within your Project will result in a compilation error.

    EDIT:

    Are you, perhaps, getting confused with Semihosting ... ?

    https://developer.arm.com/documentation/dui0471/i/semihosting/what-is-semihosting-?lang=en#:~:text=Semihosting%20is%20a%20mechanism%20that,%2C%20and%20disk%20I%2FO.

    2 replies

    Super User
    February 27, 2024

    Why would it even do that?

    The whole point of a cross-compiler is to generate code for the Target system - not for the "Host".

    Technical Moderator
    February 27, 2024

    As said by @Andrew Neil it's a cross compilation process meant for your target. Moreover FreeRTOS is not used by your system, why you have a doubt that the compiler would call APIs from Linux OS?

    bdpakAuthor
    Visitor II
    February 27, 2024

    @mƎALLEmthanks for your reply. Reason for raising such a question was to confirm that Linux OS system calls cannot be used in the CUBE IDE resulting in compilation error. Am I right?

    Technical Moderator
    February 27, 2024

    The question is why there will be "Linux OS system calls could be used in the CUBE IDE" ?