Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bshewan
Copy link

@bshewan bshewan commented Aug 22, 2024

Port for this board: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723

  • includes:
    • support for the QSPI Flash as the main CIRCUITPY drive
    • support for OLED display
    • support for the SD card

@bshewan bshewan force-pushed the weact-h723vg-lcd-port branch 3 times, most recently from 5bef472 to cec4a45 Compare August 23, 2024 13:05
@tannewt tannewt added stm board New board or update to a single board labels Aug 27, 2024
Copy link
Member

@tannewt tannewt left a 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;
Copy link
Member

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?

Comment on lines +1 to +2
USB_VID = 0x0483
USB_PID = 0x5740
Copy link
Member

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 */
Copy link
Member

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;
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

Why not set this?

Comment on lines -119 to +130
__HAL_RCC_USB2_OTG_FS_CLK_ENABLE();
__HAL_RCC_USB_OTG_HS_CLK_ENABLE();
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board New board or update to a single board stm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants