[Deprecated: old core]Introducing the new delivery for STM

The official STMicroelectronics Arduino core
nikosx
Posts: 25
Joined: Sun May 07, 2017 4:33 pm

Re: [Deprecated: old core]Introducing the new delivery for STM

Post by nikosx » Tue Nov 07, 2017 9:14 pm

Hi Rick.

Yes i'm not an experienced C++ programmer....

I put here the problem since i'm using STM core and not some other framework that handles timers in another way....

As far as i can see STM core does not have yet API for timer's use but has internal definitions that pose problems even using HAL to have timer & interrupts... It seems to me the problem is not that easy to solve...

I don't know somewhere else to put it since it refers only to STM core.... Have you something in mind ?

User avatar
Rick Kimball
Posts: 1077
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Deprecated: old core]Introducing the new delivery for STM

Post by Rick Kimball » Tue Nov 07, 2017 9:22 pm

nikosx wrote:
Tue Nov 07, 2017 9:14 pm
I don't know somewhere else to put it since it refers only to STM core.... Have you something in mind ?
Yes start another thread in this forum subsection and title it: "Problems using STM core with Visual Studio 10"

The minute you mentioned this:
nikosx wrote:Ok.... Does NOT compile for VS 10 + VS Arduino but it did compile and run OK for ARDUINO IDE...
it also workd OK
it stopped being a problem with the STM Core and a problem with your Visual Studio setup.
-rick

fpiSTM
Posts: 316
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: [Deprecated: old core]Introducing the new delivery for STM

Post by fpiSTM » Thu Nov 09, 2017 10:26 am

Rick is right. It should be in a dedicated topic.

Anyway, I've tested your sketch.
So, first issue is the multiple definition of the TIM3_IRQHandler.

I think the best fix is to define it as WEAK.
I've tested and it is ok.

extern "C" is mandatory to avoid any c++ function name decoration.

nikosx
Posts: 25
Joined: Sun May 07, 2017 4:33 pm

Re: [Deprecated: old core]Introducing the new delivery for STM

Post by nikosx » Thu Nov 09, 2017 4:37 pm

Hello.

a) Where do you think should the topic be ?

b) I know extern "C" is mandatoty but where should the WEEK be put ?

thanks

Post Reply