/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

Username:     
Password:     
             

Forum
  • Index
  •  » circleOS
  •  » CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

# 1   2009-02-19 20:56:30 CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

jingxizhang
Member
Registered: 2007-12-13
Posts: 35

CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

I used the Ride7 (7.15.0) and CircleOS 3.5 for Primer1 project and I got the compiling error when NVIC_Init() is called:
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_GetBASEPRI': 
stm32f10x_nvic.c:(.text.NVIC_GetBASEPRI+0x2): undefined reference to `__GetBASEPRI' 
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_BASEPRICONFIG': 
stm32f10x_nvic.c:(.text.NVIC_BASEPRICONFIG+0x6): undefined reference to `__BASEPRICONFIG' 
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_RESETFAULTMASK': 
stm32f10x_nvic.c:(.text.NVIC_RESETFAULTMASK+0x2): undefined reference to `__RESETFAULTMASK' 
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_SETFAULTMASK': 
stm32f10x_nvic.c:(.text.NVIC_SETFAULTMASK+0x2): undefined reference to `__SETFAULTMASK' 
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_RESETPRIMASK': 
stm32f10x_nvic.c:(.text.NVIC_RESETPRIMASK+0x2): undefined reference to `__RESETPRIMASK' 
C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_thumb.lib(stm32f10x_nvic.o): In function `NVIC_SETPRIMASK': 
stm32f10x_nvic.c:(.text.NVIC_SETPRIMASK+0x2): undefined reference to `__SETPRIMASK' 

I check the source, those macro are defined in cortexm3_macro.s. Is that the Primer1 Circle did not include the assemble file?

Thanks,

Jingxi

Last edited by jingxizhang (2009-02-19 20:57:33)

Offline

 

# 2   2009-02-20 08:55:31 CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

Hi,

It's a problem related to the update of the STM32 lib. When that happened, we did not notice this additionnal file that was in version 2.0 but not in previous versions, so we did not include it in the CircleOS, nor in the precompiled lib. (it is not required in many cases) The update of the STM32 lib was included in Ride at the same time as the new version of CircleOS, and that's why it looks like it is related to the version of CircleOS.

You must just add this cortexm3_macro.s file (or a local copy of it) in your project and everything should be fine.

That should not happen in the next version of Ride.

Best Regards,

Vincent

Last edited by VincentC (2009-02-20 09:00:26)

Offline

 

# 3   2009-05-10 16:41:14 CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

tokuba
New member
Registered: 2009-04-30
Posts: 1

Re: CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

I've got the same problem with Primer2 (Ride7 ver.7.15).
I added to my application cortexm3_macro.s file using Project/Add Item in Ride7. Error messages about undefined references disappeared but project can't be built due to:

...Raisonance\Ride\examples\objdebug\Application0.elf section .text will not fit in region FLASH 
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.2.3/../../../../arm-none-eabi/bin/ld.exe: region FLASH overflowed by 536 bytes 
collect2: ld returned 1 exit status

May it be the issue with Ride7 configuration? I installed what was on the CD without any further update nor manipulation in configuration. First simple applications worked OK but the one using NVIC can't be build.

Any hint?

Offline

 

# 4   2009-05-11 14:00:18 CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

....region FLASH overflowed by 536 bytes

It means that the overall code size is not sufficent. BY default, the projects are limited up to 32KB (8KB for a Primer application) to allow debugging. You can easily over pass this limitation (the software tools are not limited) by editing the LD file of the CircleOS application. See in the project directory, the file named: .\Circle_App.ld

Offline

 

  • Index
  •  » circleOS
  •  » CircleOS 3.5 for Primer1 NVIC_Init() posted compile error

Board footer