Skip to content

Commit 97638a4

Browse files
authored
Merge branch 'main' into refactor/EXTI
2 parents 696c602 + fff660e commit 97638a4

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

.vscode/launch.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"monitor reset halt"
2525
],
2626
"postLaunchCommands": [
27-
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
27+
"monitor rtt setup 0x20000000 0x20020000 \"SEGGER RTT\"",
2828
"monitor rtt start",
2929
"monitor rtt server start 9090 0"
3030
],
3131
"postRestartCommands": [
3232
"monitor halt",
33-
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
33+
"monitor rtt setup 0x20000000 0x20020000 \"SEGGER RTT\"",
3434
"monitor rtt start",
3535
"monitor rtt server start 9090 0"
3636
],
@@ -69,13 +69,13 @@
6969
"monitor reset halt"
7070
],
7171
"postLaunchCommands": [
72-
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
72+
"monitor rtt setup 0x20000000 0x20020000 \"SEGGER RTT\"",
7373
"monitor rtt start",
7474
"monitor rtt server start 9090 0"
7575
],
7676
"postRestartCommands": [
7777
"monitor halt",
78-
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
78+
"monitor rtt setup 0x20000000 0x20020000 \"SEGGER RTT\"",
7979
"monitor rtt start",
8080
"monitor rtt server start 9090 0"
8181
],
@@ -105,7 +105,7 @@
105105
"svdFile": "${workspaceFolder}/STM32H723.svd",
106106
"showDevDebugOutput": "parsed",
107107
"postAttachCommands": [
108-
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
108+
"monitor rtt setup 0x20000000 0x20020000 \"SEGGER RTT\"",
109109
"monitor rtt start",
110110
"monitor rtt server start 9090 0"
111111
],

Core/Src/stm32h7xx_it.c

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,22 @@ __attribute__((noreturn, optimize("O0"))) void my_fault_handler_c(sContextStateF
273273
&metadata_buffer,
274274
sizeof(metadata_buffer)
275275
);
276-
// reboot the system
276+
// In debug builds, stop here instead of forcing a reset loop.
277+
#ifndef NDEBUG
278+
__BKPT(0);
279+
while (1) {
280+
}
281+
#else
282+
// In debug sessions on release binaries, stop here as well.
283+
volatile uint32_t* dhcsr = (volatile uint32_t*)0xE000EDF0;
284+
if ((*dhcsr & 0x1U) != 0U) {
285+
__BKPT(0);
286+
while (1) {
287+
}
288+
}
289+
#endif
290+
291+
// Reboot the system in non-debug runs.
277292
volatile uint32_t* aircr = (volatile uint32_t*)0xE000ED0C;
278293
__asm volatile("dsb");
279294
*aircr = (0x05FA << 16) | 0x1 << 2;
@@ -407,7 +422,19 @@ void FDCAN3_IT0_IRQHandler(void) { HAL_FDCAN_IRQHandler(&hfdcan1); }
407422
*/
408423
void FDCAN3_IT1_IRQHandler(void) { HAL_FDCAN_IRQHandler(&hfdcan1); }
409424

425+
<<<<<<< refactor/EXTI
410426
void FMAC_IRQHandler(void) { HAL_FMAC_IRQHandler(&hfmac); }
427+
=======
428+
/**
429+
* @brief This function handles DMA1 stream0 global interrupt.
430+
*/
431+
432+
void FMAC_IRQHandler(void) { HAL_FMAC_IRQHandler(&hfmac); }
433+
434+
/**
435+
* @brief This function handles SPI3 global interrupt.
436+
*/
437+
>>>>>>> main
411438

412439
/**
413440
* @brief This function handles Ethernet global interrupt.

0 commit comments

Comments
 (0)