This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

osMutexWait() function before the RTX osKernelInitialize()

Hi.

If I call the osMutexWait() function before the RTX osKernelInitialize() function is executed, an error is returned naturally.
After that, I call the osKernelInitialize() function. Is there any adverse effect of reading the osMutexWait() function?
What kind of scene is, the two devices (EEPROM and ADC) accessed by SPI I/F are exclusively controlled by MUTEX,
but it is necessary to read the EEPROM before starting the thread when the power is turned on.
Thank you.

jun

Parents
  • Maybe this example is easier for you to understand:

    you are trying to get into a construction site, where the building is still not yet being built. At the entrance, you see a warning sign "Enter at your own risk!". But you still want to build and use your own room at this empty construction site right now. What do you expect to happen?

    The warning sign might have already told you what will happen...

Reply
  • Maybe this example is easier for you to understand:

    you are trying to get into a construction site, where the building is still not yet being built. At the entrance, you see a warning sign "Enter at your own risk!". But you still want to build and use your own room at this empty construction site right now. What do you expect to happen?

    The warning sign might have already told you what will happen...

Children