Default LED Pin for STM32 min dev board


E.Eigbe@...
 

Hello!


We are a group of four Embedded Systems graduate students from TU Delft who are working on analyzing the architecture of the Zephyr project for our Software Architecture class. We want to contribute to the project as well. 


  • When we tried to build Zephyr's blinky example for STM32 minimum development board we found a bug where in the default pin for the on board LED is mapped to PC13 whereas the Zephyr documentation as well as the board's data sheet says it is on PB12 (there is some variability depending on the exact version of the board). Should we open an issue which describes this (along with a solution)?

 

Thanks and Regards,

Eghonghon, Jure, Oxana & Suryansh


Marti Bolivar <marti@...>
 

Hi Eghongon (et al),

Welcome to Zephyr!

This sounds like a quick fix - mind just sending a patch? You can link to the datasheet in the GitHub comments for your pull request. Please look at the contributing guide in the docs for details on the procedure.

Thanks,
Marti


On Mon, Mar 11, 2019, 10:18 AM Eghonghon Eigbe <E.Eigbe@...> wrote:

Hello!


We are a group of four Embedded Systems graduate students from TU Delft who are working on analyzing the architecture of the Zephyr project for our Software Architecture class. We want to contribute to the project as well. 


  • When we tried to build Zephyr's blinky example for STM32 minimum development board we found a bug where in the default pin for the on board LED is mapped to PC13 whereas the Zephyr documentation as well as the board's data sheet says it is on PB12 (there is some variability depending on the exact version of the board). Should we open an issue which describes this (along with a solution)?

 

Thanks and Regards,

Eghonghon, Jure, Oxana & Suryansh


Erwan Gouriou
 

Hi,

So, actually, what you request is a revert of https://github.com/zephyrproject-rtos/zephyr/pull/11736,
which was fixing LED pinmux from PB12 to PC13, thought which missed doc update.
As you mention, there are actually two versions of that board, one based on stm32f103C8 using PC13 and the other one based on stm32f103C6 (led on PB12), which appears to be a "fake/alternate" one.(https://embeddedtronicsblog.wordpress.com/2018/12/29/fake-stm32-blue-pill-boards/)
So, since the board version in zephyr today is based on stm32f103C8, it makes sense to keep LED on PC13.
But, it would be nice to get the doc updated at least.

Erwan


On Mon, 11 Mar 2019 at 17:18, Eghonghon Eigbe <E.Eigbe@...> wrote:

Hello!


We are a group of four Embedded Systems graduate students from TU Delft who are working on analyzing the architecture of the Zephyr project for our Software Architecture class. We want to contribute to the project as well. 


  • When we tried to build Zephyr's blinky example for STM32 minimum development board we found a bug where in the default pin for the on board LED is mapped to PC13 whereas the Zephyr documentation as well as the board's data sheet says it is on PB12 (there is some variability depending on the exact version of the board). Should we open an issue which describes this (along with a solution)?

 

Thanks and Regards,

Eghonghon, Jure, Oxana & Suryansh