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

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

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

@@ -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

+ 1
- 1
scripts/gdboptions View File

@@ -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
- 0
scripts/gdboptions_win View 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
- 0
start_xtensa_gdb_stub.cmd View 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
- 2
start_xtensa_gdb_stub.sh View File

@@ -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…
Cancel
Save