Menu

#193 VTOR addition breaks compilation for STM32F030x8

Next release
closed-fixed
STM32F0 (1)
5
2015-08-07
2015-08-05
No

Problem:
line 42 in initialize_hardware.c (leading underline removed because of Web editor) gives the following error when compiling for STM32F030x8:

'SCB_Type' has no member named 'VTOR'

Line 42 says:

SCB->VTOR = (uint32_t)(&__vectors_start);

Probable cause:
I am told that Cortex-M0 has no VTOR field, so I guess that line should be compiled conditionally (only for M3/M4?)

Workaround:
commenting out that line, compilation succeeds.

Steps to reproduce:
follow Carmine Noviello's tutorial here:
http://www.carminenoviello.com/en/2015/06/04/stm32-applications-eclipse-gcc-stcube/comment-page-1/
(also look at the thread started by Erix)

Configuration:
GNU ARM Eclipse: 201508011813
Eclipse Mars (4.5.0) Build id: 20150621-1200
Java 8 update 51 (build 1.8.0_51-b16) - x64
Windows 8.1
toolchain: gcc-arm-none-eabi-4_9-2015q2-20150609-win32

(I hope I got the right Owner, I am not familiar with the plugin)

Discussion

  • Liviu Ionescu (ilg)

    please try to 'install new software' from updates-test and retry, the problem should have been fixed.

     
  • Liviu Ionescu (ilg)

    • status: open --> open-accepted
     
  • Enrico Colombini

    Yes, the problem looks fixed in 201508051724. Thanks!

     
  • Liviu Ionescu (ilg)

    • status: open-accepted --> closed-fixed
     
  • Liviu Ionescu (ilg)

    fixed in 2.9.2-201508071246

     
MongoDB Logo MongoDB