Topic : undefined reference to `NVIC_Init'

Forum : ARM

Original Post
Post Information Post
February 7, 2011 - 2:19pm
Guest

Hi there.

I've got a problem with the Ride7 compiler. This is version: 7.30.10.0159 with the patch 7.30.10.0169 and my question is, why do I get compiler error on an older project all the time? The examples works ok, but this annoying warning keeps coming! And it show another undefined reference to '__RESETPREMASK'. I presume that it has something to do with STMF103.c ? And the chip is a STMF32F103VBT6 from STM :o)

Thanks,

Slynge

Replies
Post Information Post
+1
0
-1
February 7, 2011 - 2:49pm
Raisonance Support Team

Hi Slynge,

Can you download the latest RKit-ARM version from http://www.mcu-raisonance.com/mcu_downloads.html and check if the problem persists?
If this is the case, please send us a zipped archive containing your whole project, so that we can reproduce the problem in our Labs.

Regards,

+1
0
-1
February 8, 2011 - 9:24am
Guest

Hi Bruno.

Thank you for the quick response. I did as you proposed, and downloaded the software once again. I forgot to mention, that I'm using win 7. After I downloaded the software and installed it, I can't see any configurations for the project? That is, I can't see the processor type nor anything else. And now it won't compile at ALL :( .. It just says "Build failed".. And another issue, it didn't install the Examples library and other libraries??

Regards,

Simon

+1
0
-1
February 8, 2011 - 4:46pm
Raisonance Support Team

Simon,

It's a weirdo of our tools: You probably forgot to install the RKit-ARM. Ride7 is just the environment, but requires a RKit in order to properly work.
Go back to our download page and install the RKit-ARM.

Regards,

+1
0
-1
February 9, 2011 - 9:37am
Guest

Hi Bruno.

Thank you for your answer. OK i've installed what we talked about: the new version of Ride7 with the patch and RKit-ARM. But I still encounter the same problem, 'undefined reference to: ' so I've emailed you the project file to and ask you not to export our project file to others.

Best regards,

Simon

+1
0
-1
February 9, 2011 - 4:28pm
Guest

I forgot to mention, that the project compiles nicely under the same enviroment (Windows 7, Ride7) but on a desktop. I'm using an Acer (Travelmate 4230). And here's the same post from my.st.com :

https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/undefined%20reference%20to%20%27__SETPRIMASK%27%20%20Ride7&currentviews=17

Thanks,

Slynge

+1
0
-1
June 24, 2011 - 3:33pm
Guest

Hi Guys

I have the same error, could you please suggest a solution.

undefined reference to `NVIC_Init'

O and I downloaded the new Ride and Arm-kit today, the problem started after that, I haven't worked on the project in a few months, was working fine on the older version of the compiler.

Regards
Charl

+1
0
-1
June 24, 2011 - 4:46pm
Raisonance Support Team

@charlvz: Can you check that the examples provided with Ride work fine?
I guess you forget to include the misc.c file from the ST libraries (CMSIS file). This should fix the problem.

Best Regards,

+1
0
-1
June 27, 2011 - 9:51am
Guest

Hi Bruno

I copied the demo project in the Examples\ARM\ST\STM32Lib-v203 directory to my workspace with the libraries folder, and then just loaded my own main file and include files in, and it worked. The problem was something with the include directories.

Thanks
Charl

+1
0
-1
October 4, 2011 - 7:38pm
Guest

Bruno wrote:
@charlvz: Can you check that the examples provided with Ride work fine?
I guess you forget to include the misc.c file from the ST libraries (CMSIS file). This should fix the problem.

Adding misc.c to the project solved the problem for me. Thanks!

Michael