added win debug script
This commit is contained in:
parent
9ed1b24316
commit
f8fac7acfb
2
doku.md
2
doku.md
@ -109,10 +109,12 @@ linker puts them together ?!?
|
||||
### TODO Treppe
|
||||
- dynamic lighting with ldr
|
||||
- http control over active pwm ... => set_active_pwm()
|
||||
-> is implemntiert, kann mit % oder abs eingestellt werden
|
||||
- testing if dimming crashes when two animations
|
||||
-> ldr does not interrupt animation, animation get's finished and stairs fade out -> FSM works without collisions
|
||||
- interrupt to pending from sensors
|
||||
- settings struct
|
||||
-> implemented with EEPROM
|
||||
- script for gdb on windows
|
||||
- dynamic time for dimming => set_time_per_stair()
|
||||
- welcome animation ?
|
||||
|
@ -298,6 +298,7 @@ void Treppe::setup() {
|
||||
|
||||
Serial.printf("Treppe: stufen=%d\n", stufen);
|
||||
}
|
||||
|
||||
void Treppe::saveParam() {
|
||||
EEPROM.put(EEP_START_ADDR,
|
||||
parameters); // copy Parameters so "EEPROM"-section in RAM
|
||||
|
@ -13,5 +13,5 @@ mem 0x60000000 0x60001fff rw
|
||||
set serial baud 460800
|
||||
|
||||
file .pio/build/debug/firmware.elf
|
||||
target remote \\.\COM23
|
||||
target remote /dev/ttyUSB0
|
||||
thb loop
|
||||
|
17
scripts/gdboptions_win
Normal file
17
scripts/gdboptions_win
Normal file
@ -0,0 +1,17 @@
|
||||
set remote hardware-breakpoint-limit 1
|
||||
set remote hardware-watchpoint-limit 1
|
||||
set remote interrupt-on-connect on
|
||||
set remote kill-packet off
|
||||
set remote symbol-lookup-packet off
|
||||
set remote verbose-resume-packet off
|
||||
mem 0x20000000 0x3fefffff ro cache
|
||||
mem 0x3ff00000 0x3fffffff rw
|
||||
mem 0x40000000 0x400fffff ro cache
|
||||
mem 0x40100000 0x4013ffff rw cache
|
||||
mem 0x40140000 0x5fffffff ro cache
|
||||
mem 0x60000000 0x60001fff rw
|
||||
set serial baud 460800
|
||||
|
||||
file .pio/build/debug/firmware.elf
|
||||
target remote \\.\COM23
|
||||
thb loop
|
5
start_xtensa_gdb_stub.cmd
Normal file
5
start_xtensa_gdb_stub.cmd
Normal file
@ -0,0 +1,5 @@
|
||||
SET GDB_PATH=C:\Users\simon\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\bin\xtensa-lx106-elf-gdb.exe
|
||||
|
||||
echo "Starting gdb"
|
||||
echo %GDB_PATH%
|
||||
%GDB_PATH% -x ".\scripts\gdboptions_win"
|
@ -1,6 +1,5 @@
|
||||
#!/bin/bash
|
||||
GDB_PATH=~/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/bin/xtensa-lx106-elf-gdb
|
||||
|
||||
cd ..
|
||||
echo "Starting gdb"
|
||||
$GDB_PATH -x scripts/gdboptions
|
||||
$GDB_PATH -x scripts/gdboptions
|
Loading…
x
Reference in New Issue
Block a user