Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
calint committed Apr 27, 2024
1 parent 055ce28 commit 3739403
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 52 deletions.
13 changes: 10 additions & 3 deletions etc/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
about 'User_Setup.h'
# clipboard.txt
* various command lines and notes

# todo.txt
* todo list and suggestions

# User_Setup.h
* manufacturer provided 'TFT_eSPI' settings
* specified in 'platformio.ini'
* settings specified in 'platformio.ini' instead of copying the file into 'lib/TFT_eSPI-2.5.43'

if device does not show up as '/dev/ttyUSB0' on linux
# troubleshooting
device does not show up as '/dev/ttyUSB0' on linux
* service 'brltty' might be the problem
* disable it and related services or uninstall it
50 changes: 1 addition & 49 deletions etc/clipboard.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-objdump -S .pio/build/esp32dev/src/main.cpp.o | less

# stack trace. copy 'back trace' addresses as argument
~/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-addr2line -pfiaC -e .pio/build/esp32dev/firmware.elf 0x400D2230:0x3FFD7CB0 0x400D846A:0x3FFD7CE0
~/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-addr2line -pfiaC -e .pio/build/esp32dev/firmware.elf

# revert changes to last commit
git reset --hard HEAD
Expand All @@ -12,51 +12,3 @@ git add . && git commit -m "." && git push

# tag with date and time
TAG=$(date "+%Y-%m-%d--%H-%M") && git tag $TAG && git push origin $TAG

# stack trace
#include "esp_debug_helpers.h"
esp_backtrace_print(10);

----------------------------------------------------------------------
// allocate DMA buffers
dma_buf_1 = static_cast<uint16_t *>(malloc(dma_buf_size_B));
dma_buf_2 = static_cast<uint16_t *>(malloc(dma_buf_size_B));
if (!dma_buf_1 or !dma_buf_2) {
printf("!!! could not allocate DMA buffers");
while (true)
;
}
----------------------------------------------------------------------
// clang-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