Skip to content

Timebase_callback.ino does not work on Bluepill STM32F103 #24

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

Closed
HamidSaffari opened this issue Apr 1, 2020 · 5 comments
Closed

Timebase_callback.ino does not work on Bluepill STM32F103 #24

HamidSaffari opened this issue Apr 1, 2020 · 5 comments
Labels

Comments

@HamidSaffari
Copy link

Hi there.
Your Hardwre Timer example callback do not execute the callback function at all.
https://github.com/stm32duino/STM32Examples/blob/master/examples/Peripherals/HardwareTimer/Timebase_callback/Timebase_callback.ino

@fpistm
Copy link
Member

fpistm commented Apr 1, 2020

See #22 #20 #19 ...

@HamidSaffari
Copy link
Author

Thanks man, we are waiting to release the 1.9.0 version and make all us happy specially with the all new device supports which almost cover every available boards and rock the Arduino world. and make us easy to work with fast MCUs than working with lots of headers and src files in professional IDE projects.

@fpistm fpistm added the question label Apr 1, 2020
@fpistm fpistm closed this as completed Apr 1, 2020
@HamidSaffari
Copy link
Author

I put your today master repository but got this error:

no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer*))'

@fpistm
Copy link
Member

fpistm commented Apr 1, 2020

As explain in other issue, use the official release not the master.
The release is aligned with Core release. The master with core master.
There is a API change for callback. See the PR #23

@HamidSaffari
Copy link
Author

HamidSaffari commented Apr 1, 2020

Yes I got it just remove the input of callback function so change the
void Update_IT_callback(HardwareTimer*) to
void Update_IT_callback() or void Update_IT_callback(void)
and that change makes it look like other Arduino attach interrupts.

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

No branches or pull requests

2 participants