Skip to content

Commit

Permalink
fix H563 'too much RAM' issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile committed Oct 31, 2023
1 parent deab677 commit ac240f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ jobs:
run: sudo apt -y update; sudo apt -y install gcc-arm-none-eabi
- if: ${{ env.GO == 1 }}
run: make -C examples/stm32/nucleo-h563zi-make-baremetal-builtin test VCON_API_KEY=${{secrets.VCON_API_KEY}}
# - if: ${{ env.GO == 1 }}
# WIP run: make -C examples/stm32/nucleo-h563zi-make-freertos-builtin test VCON_API_KEY=${{secrets.VCON_API_KEY}}
- if: ${{ env.GO == 1 }}
run: make -C examples/stm32/nucleo-h563zi-make-freertos-builtin test VCON_API_KEY=${{secrets.VCON_API_KEY}}

test_rt1020:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion examples/stm32/nucleo-h563zi-make-freertos-builtin/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ static void blinker(void *args) {
}

int main(void) {
uart_init(UART_DEBUG, 115200); // Initialise UART
uart_init(UART_DEBUG, 115200); // Initialise UART
SysTick_Config(SystemCoreClock / 1000); // tick every 1ms (see sysinit.c)

// Start tasks. NOTE: stack sizes are in 32-bit words
xTaskCreate(blinker, "blinker", 128, ":)", configMAX_PRIORITIES - 1, NULL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ void SystemInit(void) { // Called automatically by startup code
while ((RCC->CFGR1 & (7 << 3)) != (3 << 3)) spin(1); // Wait until done

rng_init(); // Initialise random number generator
SysTick_Config(CPU_FREQUENCY / 1000); // Sys tick every 1ms
// defer SysTick initialization until RAM has been initialized
}

0 comments on commit ac240f7

Please sign in to comment.