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
|
### TODO Treppe
|
||||||
- dynamic lighting with ldr
|
- dynamic lighting with ldr
|
||||||
- http control over active pwm ... => set_active_pwm()
|
- http control over active pwm ... => set_active_pwm()
|
||||||
|
-> is implemntiert, kann mit % oder abs eingestellt werden
|
||||||
- testing if dimming crashes when two animations
|
- testing if dimming crashes when two animations
|
||||||
-> ldr does not interrupt animation, animation get's finished and stairs fade out -> FSM works without collisions
|
-> ldr does not interrupt animation, animation get's finished and stairs fade out -> FSM works without collisions
|
||||||
- interrupt to pending from sensors
|
- interrupt to pending from sensors
|
||||||
- settings struct
|
- settings struct
|
||||||
|
-> implemented with EEPROM
|
||||||
- script for gdb on windows
|
- script for gdb on windows
|
||||||
- dynamic time for dimming => set_time_per_stair()
|
- dynamic time for dimming => set_time_per_stair()
|
||||||
- welcome animation ?
|
- welcome animation ?
|
||||||
|
@ -298,6 +298,7 @@ void Treppe::setup() {
|
|||||||
|
|
||||||
Serial.printf("Treppe: stufen=%d\n", stufen);
|
Serial.printf("Treppe: stufen=%d\n", stufen);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Treppe::saveParam() {
|
void Treppe::saveParam() {
|
||||||
EEPROM.put(EEP_START_ADDR,
|
EEPROM.put(EEP_START_ADDR,
|
||||||
parameters); // copy Parameters so "EEPROM"-section in RAM
|
parameters); // copy Parameters so "EEPROM"-section in RAM
|
||||||
|
@ -13,5 +13,5 @@ mem 0x60000000 0x60001fff rw
|
|||||||
set serial baud 460800
|
set serial baud 460800
|
||||||
|
|
||||||
file .pio/build/debug/firmware.elf
|
file .pio/build/debug/firmware.elf
|
||||||
target remote \\.\COM23
|
target remote /dev/ttyUSB0
|
||||||
thb loop
|
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
|
#!/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
|
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"
|
echo "Starting gdb"
|
||||||
$GDB_PATH -x scripts/gdboptions
|
$GDB_PATH -x scripts/gdboptions
|
Loading…
x
Reference in New Issue
Block a user