-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
port for WeAct Studio H723VG-LCD dev board #9550
base: main
Are you sure you want to change the base?
Conversation
5bef472
to
cec4a45
Compare
cec4a45
to
6004174
Compare
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.
Thanks for the changes! I'd love to support the 723. However, I'm concerned that some of these changes will break the existing H7 support.
@@ -80,7 +80,7 @@ SECTIONS | |||
_ld_d1_ram_bss_start = ADDR(.bss); | |||
_ld_d1_ram_bss_size = SIZEOF(.bss); | |||
_ld_heap_start = _ld_d1_ram_bss_start + _ld_d1_ram_bss_size; | |||
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM); | |||
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM) - 1; |
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.
What is the last byte used for?
USB_VID = 0x0483 | ||
USB_PID = 0x5740 |
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.
This is a generic STM VID/PID. If you don't work for WeAct you can request a USB PID from: https://pid.codes/ If you do work for WeAct, then you should sublicense a unique PID from STM or acquire your own VID from the USB folks.
@@ -37,7 +37,7 @@ extern "C" { | |||
* (when HSE is used as system clock source, directly or through the PLL). | |||
*/ | |||
#if !defined(HSE_VALUE) | |||
#define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */ | |||
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */ |
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.
Why change the default? Shouldn't the board define this?
@@ -44,12 +48,12 @@ void stm32_peripherals_clocks_init(void) { | |||
RCC_OscInitStruct.HSEState = BOARD_HSE_SOURCE; | |||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; | |||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; | |||
RCC_OscInitStruct.PLL.PLLM = HSE_VALUE / 2000000; | |||
RCC_OscInitStruct.PLL.PLLM = 2; |
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.
Does this break other H7 boards?
@@ -185,7 +185,7 @@ void port_internal_flash_flush(void) { | |||
uint32_t sector_size; | |||
uint32_t sector_start_addr = 0xffffffff; | |||
#if defined(STM32H7) | |||
EraseInitStruct.Banks = get_bank(_cache_flash_addr); | |||
// EraseInitStruct.Banks = get_bank(_cache_flash_addr); |
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.
Why not set this?
__HAL_RCC_USB2_OTG_FS_CLK_ENABLE(); | ||
__HAL_RCC_USB_OTG_HS_CLK_ENABLE(); |
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.
Do some H7 have two USB peripherals? The board should probably configure which to use.
Port for this board: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723