Browse Source

added win debug script

tags/v1.0.0
Simon Schmidt 2 years ago
parent
commit
f8fac7acfb
6 changed files with 27 additions and 3 deletions
  1. 2
    0
      doku.md
  2. 1
    0
      lib/treppe/treppe.cpp
  3. 1
    1
      scripts/gdboptions
  4. 17
    0
      scripts/gdboptions_win
  5. 5
    0
      start_xtensa_gdb_stub.cmd
  6. 1
    2
      start_xtensa_gdb_stub.sh

+ 2
- 0
doku.md View File

### 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 ?

+ 1
- 0
lib/treppe/treppe.cpp View File



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

+ 1
- 1
scripts/gdboptions View File

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
- 0
scripts/gdboptions_win View File

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
- 0
start_xtensa_gdb_stub.cmd View File

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
- 2
start_xtensa_gdb_stub.sh View File

#!/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…
Cancel
Save