Page 1 of 1

Latest version 1.8.0 not working with example files.

Posted: Sun May 03, 2020 10:44 am
by razvitm
This is the timed interrupt example I want to use and doesn't work:
https://github.com/stm32duino/STM32Exam ... llback.ino
When compiling, it gives the following error:
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION >= 0x01090000"
Now, from what I can see here:
https://github.com/stm32duino/Arduino_C ... 2/releases
The latest core is 1.8.0
But the example sketch requires a newer core.
If I comment the line in the sketch which checks for core version to be equal or above 1.9.0 then I get this error:
invalid conversion from 'void (*)()' to 'void (*)(HardwareTimer*)' [-fpermissive]

Now I see two ways in which you could help me.
Can someone tell me where I can get the 1.9.0 core from, or
Can someone point me to an example of timed interrupts that works on the 1.8.0 core?

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 11:01 am
by fpiSTM
Simply use the latest release of the library. The mater is inline with the core master repo

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 11:17 am
by razvitm
Can you dumb that down a little please?
Where is the latest release of the library?
I can't even make heads or tales from the second sentence :)) core mater repo???

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 11:29 am
by razvitm
fpiSTM wrote: Sun May 03, 2020 11:01 am Simply use the latest release of the library. The mater is inline with the core mater repo
If I install the stm32duino core via boards manager I end up with 1.8.0
Is there another way of installing the core to get 1.9.0 so the example file for timed interrupts works?

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 11:32 am
by fpiSTM
Use the git repo as described in the wiki.

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 11:34 am
by fpiSTM
razvitm wrote: Sun May 03, 2020 11:17 am Where is the latest release of the library?
Use the library manager to install the latest version or select the latest tag on githib and download it as zip

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 12:11 pm
by stas2z

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 12:17 pm
by razvitm
fpiSTM wrote: Sun May 03, 2020 11:34 am
razvitm wrote: Sun May 03, 2020 11:17 am Where is the latest release of the library?
Use the library manager to install the latest version or select the latest tag on githib and download it as zip
You mean I should install STM32Duino examples v1.0.5 from the library manager and use the timed interrupt example from there?

Re: Latest version not working with example files.

Posted: Sun May 03, 2020 12:31 pm
by razvitm
stas2z wrote: Sun May 03, 2020 12:11 pm https://github.com/stm32duino/STM32Exam ... llback.ino
For 1.8.0 core
This example compiles OK on the 1.8.0 core.
Thank you!