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
Thank you for your reply.
OK. I want to be at my own risk, follow the specifications, or do it in a risk-free manner. (It is wise to follow the specifications)I apologize for the trouble.Have a good day!
Hi,
if you know that the mutex is not required when the Kernal is not running, but you want to use the same function, you could
use osKernelGetState. If Kernel is not running, do not use the mutex
if Kernel is running use the mutex
Thank you for your reply. Well, that kind of usage is supposed. OK. Thank you very much.
there's an echo in here!