-
Notifications
You must be signed in to change notification settings - Fork 1k
Add new Thunderpack v1.1: STM32F411 #1013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @jgillick diff --git a/variants/THUNDERPACK_F411/variant.cpp b/variants/THUNDERPACK_F411/variant.cpp
index 2e1c0a2..7ea64d8 100644
--- a/variants/THUNDERPACK_F411/variant.cpp
+++ b/variants/THUNDERPACK_F411/variant.cpp
@@ -101,8 +101,8 @@ WEAK void SystemClock_Config(void)
}
// Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2 clocks dividers
- RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
- |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
+ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
+ | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; |
Could you also update this file: to ignore both THUNDERPACK as you rename one and create a new one. Thanks. |
Since NUM_ANALOG_FIRST is defined and analog pins are contiguous Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is possible to merge both in the same variant directory.
I will propose you a version.
Signed-off-by: Frederic Pillon <[email protected]>
Hi @jgillick |
@fpistm Your changes work great on both boards. I also made an additional small commit to remove an unused macro. |
I though you have a HSE at 24 MHz. I saw it on your schematics. |
From here And by default HSE_VALUE is 8 MHz:
|
@jgillick |
This reverts commit 12f3360.
Ah, you're absolutely right, thanks for the correction I've reverted that commit. |
@jgillick I'm working on some USB refactoring. Can you tell me if there is an external 1.5k pullup on the board? Or are you relying on the internal pullup (which would be better AFAICS)? |
@matthijskooijman |
Ok, great! I couldn't find any schematic to confirm yesterday, but this looks good. Thanks, I'll update my commit I'm about to push accordingly. |
here: https://github.com/jgillick/ThunderPack/blob/master/hardware/Standard_18650/schematic.pdf Even if it is F412 this is the same. |
Yes, that's the correct schematic. I clearly need to update the chip reference, but the rest of the circuit is the same. |
Summary
Adds the new Thunderpack board (v1.1), which replaces the STM32L07 chip from v1 with an STM32F411.
Version 1.1 branch of the project: https://github.com/jgillick/ThunderPack/tree/STM32F4