Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

[examples] Add examples for STM32F103C8T6 Minimum System Development … #154

Conversation

strongly-typed
Copy link
Member

…Board.

@salkinium
Copy link
Member

Is this the "blue pill" board from eBay?

@salkinium
Copy link
Member

Please fix the commit message length ;-P

{

/// STM32F103 running at 72MHz generated from the external 8MHz crystal
using systemClock = SystemClock<Pll<ExternalCrystal<MHz8>, MHz72> >;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works only by accident! SystemClock is only configured for the F100 chip.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what to do?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may be able to use the F103RB clock tree from the Nucleo board and modify it to the C8 clock tree.

@salkinium
Copy link
Member

I think "blue_pill" is a better name for it.

@salkinium
Copy link
Member

Can you split this commit into two? One for adding the board and one for adding the example. This will make it easier to cherry pick the boards in future.

Please update the ReadMe with a link of the blue pill and the number of stars (4 stars) in the first commit.

@strongly-typed
Copy link
Member Author

Yes, it's the "Blue Pill".
VCC-GND.com is dead, so linked to STM32Duino

@strongly-typed
Copy link
Member Author

strongly-typed commented Jul 2, 2016

@salkinium Are you fine with all these commits or did I miss something?

@salkinium
Copy link
Member

salkinium commented Jul 2, 2016

The system clock should be implemented manually. Reasoning. I know it's ugly, but this way it's a lot less magic for devs who want to port to another board.

The way I figure out the peripherals is to look at the reference manual section 3.3 (memory map), which gives you the peripheral and the attached bus. You can use the F103RB board target as a starting point and modify it.

@ekiwi ekiwi mentioned this pull request Jul 3, 2016
@strongly-typed
Copy link
Member Author

Oh, you implicitly and politely asked me to do that?
Sorry, missed it and I look into it now.

@salkinium
Copy link
Member

Oh, you implicitly and politely asked me to do that?

I think the UK is getting to me…

@salkinium
Copy link
Member

Awesome, will merge manually.

@salkinium salkinium closed this Jul 21, 2016
@strongly-typed strongly-typed deleted the feature/stm32f103msdb branch March 27, 2017 09:07
@rleh rleh mentioned this pull request Jan 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants