[build] Rename the build folder to scripts

This commit is contained in:
Romain Goyet
2019-03-05 17:25:12 +01:00
committed by LeaNumworks
parent 4f2c7a3763
commit 2af792cf88
24 changed files with 13 additions and 13 deletions

View File

@@ -1,44 +0,0 @@
# Add a routine to debug ARM exceptions
define armex
printf "SCB_CFSR 0x%x\n", *0xE000ED28
printf "SCB_HFSR 0x%x\n", *0xE000ED2C
printf "SCB_MMAR 0x%x\n", *0xE000ED34
printf "SCB_BFAR 0x%x\n", *0xE000ED38
printf "xPSR 0x%x\n", *(int *)($msp+28)
printf "ReturnAddress 0x%x\n", *(int *)($msp+24)
printf "LR (R14) 0x%x\n", *(int *)($msp+20)
printf "R12 0x%x\n", *(int *)($msp+16)
printf "R3 0x%x\n", *(int *)($msp+12)
printf "R2 0x%x\n", *(int *)($msp+8)
printf "R1 0x%x\n", *(int *)($msp+4)
printf "R0 0x%x\n", *(int *)($msp)
printf "Return instruction:\n"
x/i *(int *)($msp+24)
end
document armex
ARMv7 Exception entry behavior.
xPSR, ReturnAddress, LR (R14), R12, R3, R2, R1, and R0
end
# Let's connect to OpenOCD
target remote localhost:3333
# GDB pagniation is annoying
set pagination off
# Load our executable
load
# Tell OpenOCD to reset and halt
monitor itm ports on
monitor tpiu config internal swo.log.bin uart off 16000000
monitor reset halt
break init
break abort
break __assert
watch *(int *)(&_stack_end)
continue

View File

@@ -1,19 +0,0 @@
/data_section_start_ram/ { data_start = $1 }
/data_section_end_ram/ { data_end = $1 }
/bss_section_start_ram/ { bss_start = $1 }
/bss_section_end_ram/ { bss_end = $1 }
/heap_start/ { heap_start = $1 }
/heap_end/ { heap_end = $1 }
/stack_start/ { stack_start = $1 }
/stack_end/ { stack_end = $1 }
function log_section(name, start, end) {
printf("%s: 0x%x - 0x%x (0x%x = %d = %dK)\n", name, start, end, end-start, end-start, (end-start)/1024)
}
END {
log_section("DATA ", data_start, data_end);
log_section("BSS ", bss_start, bss_end);
log_section("HEAP ", heap_start, heap_end);
log_section("STACK", stack_end, stack_start);
}

View File

@@ -1,7 +0,0 @@
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/stm32f4x.cfg]
#reset_config srst_only