Skip to main content
Associate
February 27, 2024
Solved

STM32 Blue pill Freertos

  • February 27, 2024
  • 2 replies
  • 4627 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

Andrew Neil
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".

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
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?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
bdpakAuthor
Associate
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?

mƎALLEm
Technical Moderator
February 27, 2024

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

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.