Move .gdbinit to the firmware directory
This commit is contained in:
18
firmware/.gdbinit
Normal file
18
firmware/.gdbinit
Normal file
@@ -0,0 +1,18 @@
|
||||
file watch.elf
|
||||
tar rem :4242
|
||||
|
||||
set $PERIPH_BASE = (uint32_t)0x40000000U
|
||||
set $APBPERIPH_BASE = $PERIPH_BASE
|
||||
set $AHBPERIPH_BASE = ($PERIPH_BASE + 0x00020000U)
|
||||
set $IOPPERIPH_BASE = ($PERIPH_BASE + 0x10000000U)
|
||||
|
||||
set $RCC = (RCC_TypeDef *)(0x40000000 + 0x00020000U + 0x1000U)
|
||||
set $RTC = (RTC_TypeDef *)(0x40000000 + 0x00002800U)
|
||||
set $PWR = (PWR_TypeDef *)(0x40000000 + 0x00007000U)
|
||||
set $EXTI = (EXTI_TypeDef *) ($APBPERIPH_BASE + 0x00010400U)
|
||||
set $GPIOA = (GPIO_TypeDef *)($IOPPERIPH_BASE + 0x00000000U)
|
||||
set $LPTIM1 = (LPTIM_TypeDef *)($APBPERIPH_BASE + 0x00007C00U)
|
||||
|
||||
set history filename .gdb_history
|
||||
set history save on
|
||||
set history size 1024
|
||||
Reference in New Issue
Block a user