Commit Graph

73 Commits

Author SHA1 Message Date
Valerii Koval cdd0867de6 Update bootloader image headers before debugging or uploading via debug tools
This approach is less intrusive than merging the entire application into one binary
implemented in #006d64e8b268e479703a0aac7eed8bef1ebea587

In this implementation we safely copy the required bootloader binary to the
build directory, adjust the headers via esptoolpy and the "merge_bin" command
according to --flash-size and --flash-mode arguments.

Resolves #872
2022-08-15 17:59:36 +03:00
Valerii Koval 006d64e8b2 Merge firmware before flashing via OpenOCD
Arduino core v2.0.4 contains updated bootloader images that have innacurate default headers. This results in bootloops if firmware is flashed via OpenOCD (e.g. debugging or
uploading via debug tools). For this reason, before uploading or debugging we need to merge all binaries (firmware, bootloader, partitions, etc.) via esptoolpy so that
the image headers will be adjusted according to --flash-size and --flash-mode arguments.

Note that this behavior doesn't occur if uploading is done via esptoolpy, as esptoolpy  overrides the binary image headers before flashing.
2022-07-30 21:09:01 +03:00
Valerii Koval bba9d55bab Update Arduino core to v2.0.4 2022-07-19 15:20:05 +03:00
Valerii Koval f84dc9a3c8 Add ESP-based debug probes
Resolve #828
2022-06-14 14:55:32 +03:00
Valerii Koval bc284f7c6a Update IDF build script according to v4.4.1 2022-06-14 14:53:54 +03:00
Ivan Kravets 9f8a221957 Minor fixes 2022-05-27 17:56:49 +03:00
Ivan Kravets 2b15a4eeee Add compatibility with PIO Core 6.0 2022-05-27 17:27:53 +03:00
Valerii Koval cca778e55a Temporarily disable the esp_usb_jtag debug interface 2022-05-20 20:28:25 +03:00
Valerii Koval 9f9f39d8d5 Add support for Arduino core v2.0.3
Resolve #799, resolves #762, resolves #674
2022-05-16 13:18:16 +03:00
Valerii Koval ce4c273ed2 Add CMSIS-DAP as available debug probe
Resolve #771
2022-04-25 13:36:01 +03:00
Valerii Koval 272f8ef020 Update Arduino package to v2.0.1 2022-04-21 16:43:24 +03:00
Valerii Koval c74e09e69a Set type for dynamically configured toolchains // Resolves #765
In some cases toolchain packages may be missing in platform manifest
2022-04-20 21:42:25 +03:00
Valerii Koval e9c81536b9 Minor fixes 2022-04-20 16:59:17 +03:00
Valerii Koval d342bced2d Deprecate support for Simba and Pumbaa frameworks 2022-04-18 12:45:21 +03:00
Valerii Koval 4371944c6b Add support for new filesystems
Resolves #546, resolves #570, resolves #643
2022-04-17 23:58:10 +03:00
Valerii Koval 581c7d0325 Add support for Arduino v2.0
Resolve #619, resolve #652, resolve #591
2022-04-14 14:40:12 +03:00
valeros f82d9bc5eb Tidy up dynamic toolchain resolution 2021-11-09 12:12:06 +02:00
valeros 4bea81ffed Make new toolchains for ESP-IDF v4.3.1 mandatory
Resolve #665
2021-11-08 16:40:05 +02:00
valeros 93b71b66e7 Update ESP-IDF to v4.3.1
Resolve #655, resolve #635
2021-11-05 14:54:41 +02:00
valeros ad40c11fc6 Use esptoolpy v3.1 by default
Resolve #569
2021-06-30 14:11:16 +03:00
valeros b073ed8440 Initial support for ESP32C3
Resolve #568, resolve #497
2021-06-23 18:33:52 +03:00
valeros 5384f152f1 Initial support for ESP-IDF v4.3
Resolve #566, resolve #471, resolve #561
2021-06-23 18:33:32 +03:00
Ivan Kravets 2061bafb21 Implement Platform::configure_debug_session interface (PlatformIO Core 5.2+) 2021-03-18 22:50:48 +02:00
valeros 883518fa60 Use generic debug interface name for on-board esp32-s2-kaluga-1 2021-01-28 19:32:36 +02:00
valeros 8d1b13f274 Allow overriding debug adapter speed using "debug_speed" option
Resolve #459, #463
2021-01-28 16:43:39 +02:00
valeros 7e5f3f56fa Initial updates for ESP-IDF v4.2 2021-01-25 17:36:44 +02:00
valeros 115f98151e Dynamically configure partition offsets for ESP-IDF 2020-12-02 13:10:37 +02:00
Ivan Kravets f2df24ff08 Use "program_esp" command for new openOCD 2020-10-26 19:24:18 +02:00
Ivan Kravets d10bbbe7dc Extend debugging options with flash images 2020-10-26 19:18:36 +02:00
valeros f5ffb5896c Initial support for new OpenOCD package 2020-10-26 16:02:27 +02:00
valeros ff997d3677 Update support for ESP-IDF v4.1 2020-09-01 21:26:55 +03:00
Valerii Koval 32d50ab593 Add preliminary support for ESP32-S2 2020-05-11 21:17:48 +03:00
valeros 9bc9c3a59f Add mbctool to the list of non debug protocols 2020-03-24 17:30:16 +02:00
valeros d56752bbb2 Skip installing "tool-mbctool" by default when upload target is invoked
It's requried since PlatformIO automatically installs uploaders
2020-03-23 12:36:02 +02:00
valeros 90d8203d0f Make "tool-mbctool" package optional
It's made to isolate users from possible broken packages in briki manifest
2020-03-17 13:49:43 +02:00
valeros 4f35220c1d Tidy up briki files 2020-03-17 13:10:52 +02:00
AlbertoPimpo 98df86243e Add initial support for briki core (#294) 2020-03-17 12:51:38 +02:00
Valerii Koval 0f7d2de7e2 Initial support for ESP-IDF v4.0 (#297) 2020-03-05 11:18:07 +02:00
Ivan Kravets 7e23bf8569 Define custom GDB "pio_reset_run_target" function 2019-11-13 16:09:16 +02:00
valeros 8d08246acd Add initial support for ULP programming // Issue #95 2019-06-20 13:42:21 +03:00
Ivan Kravets 0dbb36de4d Automatically configure openOCD scripts folder 2019-06-13 20:48:15 +03:00
Ivan Kravets 0fdfebb5f6 Exclude "espota" from debugging probe list 2019-05-21 11:53:00 +03:00
Ivan Kravets d6981a0e98 Implement "espota" protocol 2019-05-11 22:13:26 +03:00
Ivan Kravets e00754c19e Revert "Use SourceForge CDN for CI"
This reverts commit dfefed57fc.
2019-01-29 22:10:08 +02:00
Ivan Kravets dfefed57fc Use SourceForge CDN for CI 2019-01-29 01:02:53 +02:00
Ivan Kravets 21a6c67707 Automatically generate upload protocols based on debug tools 2018-12-26 18:09:10 +02:00
Ivan Kravets 2817577da4 Automatically generate known debug tools and upload protocols 2018-11-24 15:10:10 +02:00
Ivan Kravets 41d3051984 Update default debug tools 2018-10-26 01:43:59 +03:00
Ivan Kravets 036ab5ad2d Add support for IOT-BUS JTAG debugging tool 2018-10-26 01:37:16 +03:00
Ivan Kravets c841fa34e5 Add support for debugging via J-Link 2018-10-19 20:06:47 +03:00