Re: Porting Zephyr to STM32F103C8T6 Minimum System Development Board
Siddharth Chandrasekaran <siddharth@...>
Hi Erwan, Thanks for your speedy response, that was very helpful. After adding the pin mux settings, I was able to get the UART to work. I added a new CONFIG value for STM32F103X8 and had to do a bunch of other things to get it to work. Here is an updated patch http://embedjournal.com/board_stm32_min_dev_v1.patch please have a look. The part that I am worried about is, diff --git a/ext/hal/st/stm32cube/stm32f1xx/soc/stm32f1xx.h b/ext/hal/st/stm32cube/stm32f1xx/soc/stm32f1xx.h index 333095b..8dc37db 100644 --- a/ext/hal/st/stm32cube/stm32f1xx/soc/stm32f1xx.h +++ b/ext/hal/st/stm32cube/stm32f1xx/soc/stm32f1xx.h @@ -145,7 +145,7 @@ #include "stm32f102xb.h" #elif defined(STM32F103x6) #include "stm32f103x6.h" -#elif defined(STM32F103xB) +#elif defined(STM32F103xB) || defined(STM32F103x8) #include "stm32f103xb.h" #elif defined(STM32F103xE) #include "stm32f103xe.h" Since, I couldn't find a stm32f103x8.h (ST's own sdk ships with an stm32f10xxx.h), I am just using stm32f103xb.h instead. Is this acceptable?. For now things look okay, but will have to validate this a little further to know for sure. Once I document the board, will send the PR. -Siddharth. ---- On Mon, 15 May 2017 13:42:46 +0530 Erwan Gouriou <erwan.gouriou@...> wrote ----
|
|