-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problem with tm1637_delay_us() #1
Comments
Hello. I have tried with keil and it works "__nop()". and yes, hardware timer is better. |
how to get nop recognized by stm32cube ide ? without any modification ? |
@asking23 i think in upper case __NOP() |
I Had the same issue. __nop() couldn't get recognized by stm32cube ide. So I changed to capital Letters __NOP().It compiled successfully But the Segments didn't light up. |
@Mrezapbs thanks for your response |
Hi,
Thanks for the library, it works great !
However, I had a little problem with the function "tm1637_delay_us()". Firstly, the instructions "__nop();" were not recognized by the compiler. I've tried with asm("nop"); instead. I could flash the program but unfortunately it didn't worked.
I've tried to use a hardware timer to create the delay and it worked !
If someone, is facing the same issue, here is the way to achieve it :
#include "tim.h"
and change :
by
Adapt the previous code with the timer you are using (in my case, I was using TIMER 4)
The text was updated successfully, but these errors were encountered: