Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ports/stm32/boards/OPENMV_N6/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void board_enter_bootloader(unsigned int n_args, const void *args) {
NVIC_SystemReset();
}

static char _boot_mem[128] __attribute__((aligned(1024)));
static char _boot_mem[128] __attribute__((aligned(1024), section(".ram_function_data")));

__attribute__((naked, noreturn, section(".ram_function"))) void ram_reset(void) {
// NVIC_SystemReset doesn't get inlined here.
Expand All @@ -119,7 +119,7 @@ void board_early_init(void) {

void board_enter_standby(void) {
HAL_PWREx_EnableTCMRetention();
HAL_PWREx_EnableTCMFLXRetention();
HAL_PWREx_DisableTCMFLXRetention();

uint32_t *boot_mem = (uint32_t *)_boot_mem;
boot_mem[0] = (uint32_t)(_boot_mem + sizeof(_boot_mem));
Expand Down
Loading