Например TDA7294

Форум РадиоКот • Просмотр темы - ESP32 и его отладка через FT232H
Форум РадиоКот
Здесь можно немножко помяукать :)

Текущее время: Пн фев 23, 2026 17:37:44

Часовой пояс: UTC + 3 часа


ПРЯМО СЕЙЧАС:



Начать новую тему Ответить на тему  [ 1 сообщение ] 
Автор Сообщение
Не в сети
 Заголовок сообщения: ESP32 и его отладка через FT232H
СообщениеДобавлено: Пн фев 10, 2020 14:51:17 
Потрогал лапой паяльник

Зарегистрирован: Чт авг 12, 2010 10:16:32
Сообщений: 360
Рейтинг сообщения: 0
Дорвался до ESP32, также разжился платкой FT232H
Чего хочу? Отлаживать, точки останова тулить, переменные палить.....

Что получилось?
Соединил проводки правильно :)))
Подкрутил драйвера FT232H на WinUsb
Подкрутил настройки OpenOCD
Теперь OpenOCD видит платку с ESP32

Код:
C:\Users\dae>L:\openocd-esp32\bin\openocd.exe -f L:\openocd-esp32\share\openocd\scripts\interface\ftdi\ft232h-module-jtag.cfg -f L:\openocd-esp32\share\openocd\scripts\target\esp32.cfg
Open On-Chip Debugger  v0.10.0-esp32-20191114 (2019-11-14-14:19)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 200 kHz
Warn : Transport "jtag" was already selected
Info : Configured 2 cores
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: type 'esp32' is missing virt2phys
Info : clock speed 200 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : Target halted. CPU0: PC=0x400E40BE (active)
Info : Target halted. CPU1: PC=0x400E40BE
Info : Listening on port 3333 for gdb connections

Теперь GDB
тут тоже всё ок
Код:
C:\Users\dae\.platformio\packages\toolchain-xtensa32\bin>xtensa-esp32-elf-gdb.exe
GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target remote :3333
Remote debugging using :3333
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Bogus trace status reply from target: OK
(gdb) c
The program is not being run.
(gdb) target remote :3333
Remote debugging using :3333
0x400e40be in ?? ()
(gdb) c
Continuing.
esp32: Debug controller 0 was reset.
esp32: Core 0 was reset.
esp32: Debug controller 1 was reset.
esp32: Core 1 was reset.
cpu0: Detected debug stubs @ 3ffc0350
Target halted. CPU0: PC=0x400E40BE (active)
Target halted. CPU1: PC=0x400E40BE


Теперь о непонятном.... Visual Studio Code
пытаюсь в него прикрутить отладчик
в файле launch.json например но внятных результатов я не добился
у кого был подобный опыт

P.S. FT232H одноканальная, и прошивка происходит через встроенный PLпереходник, в плате ESP32. А не так как в оригинальном WROWER с FT2232


Вернуться наверх
 
Показать сообщения за:  Сортировать по:  Вернуться наверх
Начать новую тему Ответить на тему  [ 1 сообщение ] 

Часовой пояс: UTC + 3 часа


Кто сейчас на форуме

Сейчас этот форум просматривают: Google [Bot], Sergi и гости: 135


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Русская поддержка phpBB
Extended by Karma MOD © 2007—2012 m157y
Extended by Topic Tags MOD © 2012 m157y