Latest version 1.8.0 not working with example files.

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
razvitm
Posts: 33
Joined: Sat Apr 11, 2020 12:35 pm

Latest version 1.8.0 not working with example files.

Post 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?
Last edited by razvitm on Mon May 04, 2020 7:39 am, edited 1 time in total.

User avatar
fpiSTM
Posts: 792
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 30
Location: Le Mans
Contact:

Re: Latest version not working with example files.

Post by fpiSTM »

Simply use the latest release of the library. The mater is inline with the core master repo

razvitm
Posts: 33
Joined: Sat Apr 11, 2020 12:35 pm

Re: Latest version not working with example files.

Post 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???

razvitm
Posts: 33
Joined: Sat Apr 11, 2020 12:35 pm

Re: Latest version not working with example files.

Post 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?

User avatar
fpiSTM
Posts: 792
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 30
Location: Le Mans
Contact:

Re: Latest version not working with example files.

Post by fpiSTM »

Use the git repo as described in the wiki.

User avatar
fpiSTM
Posts: 792
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 30
Location: Le Mans
Contact:

Re: Latest version not working with example files.

Post 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

stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: Latest version not working with example files.

Post by stas2z »


razvitm
Posts: 33
Joined: Sat Apr 11, 2020 12:35 pm

Re: Latest version not working with example files.

Post 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?

razvitm
Posts: 33
Joined: Sat Apr 11, 2020 12:35 pm

Re: Latest version not working with example files.

Post 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!

Post Reply

Return to “General discussion”