Commit Graph

304 Commits

Author SHA1 Message Date
Valerii Koval bb9b135803 Properly handle "memory_type" option 2022-09-26 15:13:52 +03:00
Jason2866 2f2a8d4b51 Better handling of bootloader configuration (#880) 2022-09-26 12:19:53 +03:00
Jason2866 4f51150708 Take into account "memory_type" option to properly select boot mode (#913)
Use correct bootloader `opi` when `"boot": "opi"` is not set for Arduino framework

Resolves #837, enhances #904
2022-09-26 12:11:48 +03:00
Jason2866 ad4f417ad3 Fix flash mode for opi (#904)
opi needs to be flashed in mode `dout` to work. Changed flash mode for `qout` since it can be flashed in `dio`.
This is the way espressif now does in IDF
2022-09-13 19:31:16 +03:00
Valerii Koval 0abe8d30e1 Update ESP-IDF to v4.4.2
Resolve #906, resolve #889
2022-09-13 15:12:59 +03:00
Valerii Koval 2edc2b2581 Remove obsolete workaround for propagating debug configurations
Resolves #883 and similar issues with build targets that don't run the platform build scripts
2022-08-23 13:51:03 +03:00
Valerii Koval e58a222e44 Move the process of patching bootloader to the Arduino build script 2022-08-23 13:46:12 +03:00
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 358e84835d Allow overriding reset operation via project file
Resolve #874
2022-08-09 14:52:59 +03:00
Valerii Koval 0ed9a8524b Update default flash size value in merging procedure 2022-07-30 22:50:59 +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 f2a5977c91 Properly propagate additional data to configure debug session
- Add extra data to "projenv" as well so that the extra data it can be overridden after the BuildProgram routine
- Use the new INTEGRATION_EXTRA_DATA env variable instead of IDE_EXTRA_DATA
2022-07-29 17:53:19 +03:00
Valerii Koval e66e12cc57 Add default nameOnDisk value for external CMake projects
Issue #863
2022-07-25 21:54:16 +03:00
Valerii Koval 019ee098c3 Propagate Arduino build flags to global scope for mixed IDF/Arduino projects
Resolve #848
2022-07-14 21:16:39 +03:00
Valerii Koval bc284f7c6a Update IDF build script according to v4.4.1 2022-06-14 14:53:54 +03:00
Andrew Metcalf d4bfc01d9a Support esp-idf 4.4 (#716)
Resolves #711
2022-06-14 14:45:19 +03:00
Valerii Koval 3bff25083b Explicitly exit from build process when there is default IDF component
Resolve #823
2022-05-31 13:52:59 +03:00
Ivan Kravets 609a87f8b5 Improve support for assembly programming 2022-05-27 18:46:16 +03:00
Ivan Kravets 886f388e4d Improve support for assembly programming 2022-05-27 17:27:28 +03:00
Ivan Kravets de59b730a0 Remove unnecessary files 2022-05-27 16:17:38 +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 6295224609 Refactor processing of IDF linker fragments
Resolve #760
2022-05-09 23:20:59 +03:00
Valerii Koval 20e866c74f Compile IDF bootloader with optimizations by default
By default the size of bootloader is limited to 0x2000 bytes,
in debug mode the footprint can be easily grow beyond this limit

Issue #793
2022-05-06 12:52:39 +03:00
Valerii Koval 6ef0330d7f Use GetBuildType for detecting debug mode 2022-04-22 18:34:19 +03:00
Valerii Koval cefdfb4793 Properly detect debug mode in IDF build script 2022-04-22 18:28:24 +03:00
Valerii Koval eff0222cd1 Process app offset in debug mode 2022-04-20 22:20:13 +03:00
Valerii Koval 2752112002 Use flash size from board manifest by default // Resolve #300 2022-04-19 13:45:36 +03:00
Valerii Koval 8980729628 Take into account application image offset when uploading via esptool
Resolve #538
2022-04-18 21:24:40 +03:00
Valerii Koval a0b6ac6ba0 Minor fixes 2022-04-18 21:16:41 +03:00
Valerii Koval 58cb2d0a45 Allow filesystem image uploading via debug tool
Resolves #177, resolves #422
2022-04-18 17:36:37 +03:00
Maximilian Gerhardt ed65206ab0 Use correct object copy for TxtToBin (#714)
* Use correct objectcopy binaries and corresponding flags for ESP32S2 and ESP32C3
2022-04-18 17:27: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
Ivan Kravets 495c689133 Use official $PROJECT_DATA_DIR 2021-12-02 22:08:28 +02:00
valeros c00f016f75 Typo fix 2021-11-09 15:13:58 +02:00
valeros 5e6f2bf70b Use legacy toolchain for mixed IDF/Arduino projects 2021-11-09 14:16:39 +02:00
valeros 0e104fd9e1 Update ULP build process according to IDF v4.3.1 2021-11-09 13:48:42 +02:00
valeros 824c5fb93c Properly embed non-text files for IDF-based projects
Resolve #639
2021-11-05 16:13:39 +02:00
valeros f7bcd7e692 Revert "Use default flash mode when uploading via esptoolpy"
Resolve #584, resolve #630, resolve #623

This reverts commit fe5d2796d4.
2021-11-05 15:09:59 +02:00
valeros c4ad0942ee Properly calculate partition offsets
Resolve #627
2021-11-05 14:55:53 +02:00
valeros 93b71b66e7 Update ESP-IDF to v4.3.1
Resolve #655, resolve #635
2021-11-05 14:54:41 +02:00
valeros 5001ac45c7 Properly handle ESP-IDF package version for custom packages
Resolve #593
2021-08-17 15:59:17 +03:00
valeros bec7adeabc Properly handle file names specified as binary data
Resolve #604
2021-08-16 16:31:41 +03:00
valeros fe5d2796d4 Use default flash mode when uploading via esptoolpy
Resolve #584
2021-07-26 21:08:34 +03:00
valeros 637992878c Updated sdkconfig files should trigger CMake to regenerate project
Resolve #588
2021-07-22 17:50:41 +03:00
valeros 6c30a4a4b5 Disable global IDF_TOOLS_PATH variable when invoking IDF build system
Resolve #555
2021-06-23 18:33:52 +03:00
valeros 46b0e6126a Add env-specific suffix to distinguish "sdkconfig" files
Resolve #539
2021-06-23 18:33:52 +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