-
Notifications
You must be signed in to change notification settings - Fork 1k
TIM1_IRQn wrong definition for STM32F410x #878
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
Comments
Hi @MCUdude The fix have to be made here: Arduino_Core_STM32/cores/arduino/stm32/timer.h Lines 54 to 55 in a37f959
#elif defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32F7xx)
+ #if defined(TIM10_BASE) && !defined(TIM10 _IRQn)
#define TIM1_IRQn TIM1_UP_TIM10_IRQn
#define TIM1_IRQHandler TIM1_UP_TIM10_IRQHandler
+ #else
+ #define TIM1_IRQn TIM1_UP_IRQn
+ #define TIM1_IRQHandler TIM1_UP_IRQHandler
+ #endif |
Great. Is this something I can add together with a "Generic F410Rx pinout" PR? |
Well, first it need to be tested 😉 |
Well, sadly it didn't solve the problem 😢 Snippet from timer.h #elif defined(STM32F3xx) || defined(STM32L4xx) || defined(STM32WBxx)
#define TIM1_IRQn TIM1_UP_TIM16_IRQn
#define TIM1_IRQHandler TIM1_UP_TIM16_IRQHandler
#elif defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32F7xx)
#if defined(TIM10_BASE) && !defined(TIM10_IRQn)
#define TIM1_IRQn TIM1_UP_TIM10_IRQn
#define TIM1_IRQHandler TIM1_UP_TIM10_IRQHandler
#endif
#elif defined(STM32H7xx) || defined(STM32MP1xx)
#define TIM1_IRQn TIM1_UP_IRQn
#define TIM1_IRQHandler TIM1_UP_IRQHandler
#endif
|
Right I didn't saw the UP. I've corrected. |
@fpistm do you want me to create a PR for the Generic F410Rx variant I'm working on (pretty much done with)? This would probably make it a little easier for you to track this issue down 🙂 |
Yes, thanks @MCUdude |
Fixes stm32duino#878 Signed-off-by: Frederic Pillon <[email protected]>
Fixes #878 Signed-off-by: Frederic Pillon <[email protected]>
Hi!
I'm playing around with my Nucleo F410RE board to see if I can get it working with this core.
I've created a generic pinout for it (that I haven't pushed yet), but I'm not able to compile code for it due to a bug (?) in the core system files.
This is the error I get whenever I compile something:
However: if I change this line in stm32f410rx.h to
TIM1_UP_TIM10_IRQn
it does compile without any errors:Arduino_Core_STM32/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f410rx.h
Line 115 in a37f959
Any reason why
TIM1_UP_TIM10_IRQn
isn't defined for any of the F410 targets?The text was updated successfully, but these errors were encountered: