Missing STM32F030x4 declaration Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
ceremcem
Posts: 67
Joined: Mon Aug 10, 2015 6:57 am
Has thanked: 7 times
Been thanked: 6 times

Missing STM32F030x4 declaration  Topic is solved

Postby ceremcem » Fri Mar 01, 2019 3:39 pm

Patch provided for the issue: viewtopic.php?f=16&t=5018#p34978

Code: Select all

From b84f4a6193d73b234083ac3adb74012eefc7cf7b Mon Sep 17 00:00:00 2001
From: Cerem Cem ASLAN <cem@aktos.io>
Date: Fri, 1 Mar 2019 17:34:48 +0300
Subject: [PATCH] fixed STM32F030x4 declaration

See http://www.chibios.com/forum/viewtopic.php?f=16&t=5018#p34978
---
 os/common/ext/ST/STM32F0xx/stm32f0xx.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/os/common/ext/ST/STM32F0xx/stm32f0xx.h b/os/common/ext/ST/STM32F0xx/stm32f0xx.h
index e432a4bc8..cd2d3d062 100644
--- a/os/common/ext/ST/STM32F0xx/stm32f0xx.h
+++ b/os/common/ext/ST/STM32F0xx/stm32f0xx.h
@@ -129,7 +129,10 @@
   * @{
   */
 
-#if defined(STM32F030x6)
+
+#if defined(STM32F030x4)
+  #include "stm32f030x6.h" // see Line:82 in this file
+#elif defined(STM32F030x6)
   #include "stm32f030x6.h"
 #elif defined(STM32F030x8)
   #include "stm32f030x8.h"
--
2.20.1


User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Missing STM32F030x4 declaration

Postby Giovanni » Sat Mar 16, 2019 4:53 pm

Hi,

Same comment as here: viewtopic.php?f=35&t=5029

The workaround could be to define both x4 and x6 in board.h.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 14 guests