Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with RTOS #2

Open
MyVanitar opened this issue Apr 3, 2019 · 3 comments
Open

Conflict with RTOS #2

MyVanitar opened this issue Apr 3, 2019 · 3 comments

Comments

@MyVanitar
Copy link

Hi,

The library is very good but I saw it conflicts with the STM32 FreeRTOS. Please make a test. if I use the LCD functions inside an RTOS task, then the RTOS stops working.

@nhtranngoc
Copy link
Contributor

Probably because the library uses HAL_Delay() which may interfere with the scheduler. Have you tried using osDelay() or vTaskDelay() instead?

@MyVanitar
Copy link
Author

Maybe, I have not tested it though, but I think it should be. I'll try

@RohithCIS
Copy link

I replaced with HAL_Delay() with osDelay() in the header file, FreeRTOS still ended up in Hard Fault IRQ. Turns out I called Lcd_string() before osKernelInitialize() and so osDelay() wasn't available to the lib for calling yet. So replacing HAL_Delay() with osDelay() works just fine as long as you call the LCD write method after kernel init.

Just putting it out here, so it might help someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants