Keith Burzinski
5a103543c4
[esp32] Set logger default interface for C6 ( #8126 )
2025-01-22 23:00:40 +00:00
Keith Burzinski
e229ed0da3
[logger] clang-tidy fixes for #7822 ( #7875 )
2024-11-28 11:23:40 +13:00
Ramil Valitov
b274d6901a
[fix] deprecated functions warnings for logger component with ESP IDF version 5.3.0+ ( #7600 )
2024-10-16 16:25:47 +13:00
tomaszduda23
2a8424a7f2
[code-quality] Organise logger imports ( #7205 )
2024-08-07 19:32:06 +12:00
Jesse Hills
ccab57fc58
[logger] Fix defines for development ( #6870 )
...
* [logger] Fix defines for development
* Set debugging flags for rp2040
2024-06-06 23:30:49 -05:00
tomaszduda23
8796a4c1a7
print task name if logger is called from other than main thread ( #6630 )
2024-05-06 10:10:49 +12:00
luar123
6104e7591e
Fix uart to work with new enum definition in esp-idf-v5.2.1 ( #6487 )
2024-04-17 16:57:26 +12:00
DAVe3283
b637fb3adc
Fix logger compile error on ESP32-C6 ( #6323 )
2024-03-21 12:57:27 +13:00
tomaszduda23
d4489ac373
dump config after logging CDC port is opened by host ( #6169 )
2024-03-11 11:43:33 +13:00
Clyde Stubbs
0bc645ded7
Fix build failures on host platform caused by #6167 ( #6338 )
...
* Fix build failures for logger component on host platform
* Add climits header
* Restore logger functionality on host
* Install libsodium in ci
2024-03-09 21:08:58 -06:00
tomaszduda23
de2d5a65b5
Separate logger implementations for each hardware platform into different files ( #6167 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2024-03-05 10:52:52 +13:00
Clyde Stubbs
f3ef05f5c3
host platform: improvements and bugfixes ( #6137 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-02-07 14:24:06 +13:00
Keith Burzinski
082d9fcf0e
ESP32-C3 USB_CDC fixes ( #6069 )
2024-01-11 08:05:34 +09:00
Keith Burzinski
059e4cee58
Add workaround for crash in Arduino 2.0.9 when CDC is configured ( #5987 )
2023-12-22 10:42:12 +09:00
Keith Burzinski
d99598bba6
Use the correct UART/Serial
when CDC is enabled ( #5957 )
2023-12-18 07:33:12 +00:00
Clyde Stubbs
300343ae24
ESP32-S3 and ESP-IDF don't play well with USB_CDC and need USB_SERIAL_JTAG ( #5929 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2023-12-15 11:24:52 +11:00
Fabian
8c37066ed9
[Logger] ESP32 S3 serial logger ( #4853 )
...
* Add support for ESP32 S3 logger.
* fix default
* Remove cpp & h changes to combine with PR #4658
* Not enough attention to details.
* Add build flag
* Validation fix
* Fix validation for real this time
---------
Co-authored-by: Your Name <you@example.com>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2023-12-13 22:47:31 -06:00
Jesse Hills
777cdb1c21
Allow use of CDC/JTAG loggers on esp32 variants with Arduino ( #4658 )
...
* Allow use of CDC/JTAG loggers on esp32 variants with Arduino
* Only on s2/s3
* Separate C3 from S2/S3
* C code builds & runs correctly, still needs work though
* Works on S2
* It works!
* Remove unnecessary header
---------
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2023-12-13 22:24:16 -06:00
Keith Burzinski
b632ae49d4
Improv Serial support via USB CDC and JTAG ( #5559 )
2023-10-19 19:53:09 +13:00
Austin
fa0dcac2c7
Initial ESP32-H2 Support ( #5498 )
2023-10-09 07:34:12 +13:00
Kuba Szczodrzyński
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
Co-authored-by: Sam Neirinck <git@samneirinck.com>
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com>
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com>
Co-authored-by: Sam Neirinck <github@samneirinck.be>
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com>
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com>
2023-09-05 10:16:08 +12:00
Clyde Stubbs
2bb5f53b98
Make uart error message go away ( #5329 )
...
* Make error message in log go away.
* Test for IDF version.
2023-09-01 17:10:08 -05:00
Austin
fe7893d1b3
Support for ESP32-C2 & ESP32-C6 ( #4377 )
...
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2023-08-21 09:42:03 +12:00
Sergey Dudanov
cd72a2ed7e
Bump clang-tidy from 11 to 14 ( #5160 )
2023-07-31 07:44:56 +12:00
Jesse Hills
c835b67bac
Add host target platform ( #4783 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2023-05-10 11:38:18 +12:00
Jörg Thalheim
421ebcc8b2
use PRIx macros for printing u32/i32 ints ( #4671 )
...
This fix compilation issues with the latest esp-idf.
2023-04-10 22:20:02 +00:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
Jesse Hills
de79171815
RP2040 uart support ( #3990 )
2022-11-07 10:01:40 +13:00
Jesse Hills
6153bcc6ad
Initial Support for RP2040 platform ( #3284 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-10-20 16:50:39 +13:00
André Klitzing
0ecf9f4f2f
Fix compilation with ESP32-S3 ( #3543 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-06-14 20:36:38 +12:00
Unai
3a3d97dfa7
Add SERIAL_JTAG/CDC logger option for ESP-IDF platform for ESP32-S2/S3/C3 ( #3105 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-05-10 13:28:22 +12:00
Jens-Christian Skibakk
d2f37cf3f9
Support for Arduino 2 and serial port on ESP32-S2 and ESP32-C3 ( #3436 )
2022-05-09 16:17:22 +12:00
Guillermo Ruffino
05dc97099a
New vscode schema gen ( #3336 )
2022-04-03 19:30:22 +12:00
Jesse Hills
5ff7c8418c
Implement Improv via Serial component ( #2423 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-11-11 08:55:45 +13:00
Oxan van Leeuwen
ced11bc707
Autodetect ESP32 variant ( #2530 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-10-18 13:36:18 +13:00
Oxan van Leeuwen
63d6b610b8
Don't define UART_SELECTION_UART2 when UART2 is unavailable ( #2512 )
2021-10-14 11:25:10 +02:00
Oxan van Leeuwen
6bbb5e9b56
Disallow using UART2 for logger on ESP-32 variants that lack it ( #2510 )
2021-10-14 09:21:43 +13:00
Maurice Makaay
d13134135b
Fix LoadProhibited crash for logger baud_rate 0 ( #2498 )
...
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
2021-10-12 13:51:41 +02:00
Otto Winter
5342edf04a
Misc fixes for esp-idf ( #2386 )
2021-09-25 10:05:32 +02:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-20 11:47:51 +02:00
dependabot[bot]
dbb195691b
Bump pylint from 2.10.2 to 2.11.1 ( #2334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-19 19:22:28 +02:00
Otto Winter
a4867a00ea
Activate owning-memory clang-tidy check ( #1891 )
...
* Activate owning-memory clang-tidy check
* Lint
* Lint
* Fix issue with new NfcTag constructor
* Update pointers for number and select
* Add back the NOLINT to display buffer
* Fix merge
* DSMR fixes
* Nextion fixes
* Fix pipsolar
* Fix lwip socket
* Format
* Change socket fix
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-13 11:31:02 +02:00
Otto Winter
dba502c756
Logger prevent recursive logging ( #2251 )
2021-09-08 08:57:20 +12:00
Stefan Agner
e5366dbbe7
Add deassert_rts_dtr option to force RTS/DTR low when using miniterm ( #2089 )
2021-08-11 07:55:36 +12:00
Oxan van Leeuwen
4c4099966a
Fix invalid escape sequences in regex ( #1814 )
2021-07-05 10:04:18 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
aebad04c0b
Convert core components to async-def coroutine syntax ( #1658 )
...
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-05-23 22:10:30 +02:00
André Klitzing
dce9d59dfe
Do not use Serial2 for ESP32C3, too ( #1798 )
...
src/esphome/components/logger/logger.cpp: In member function 'void esphome::logger::Logger::pre_setup()':
src/esphome/components/logger/logger.cpp:142:29: error: 'Serial2' was not declared in this scope
this->hw_serial_ = &Serial2;
2021-05-18 19:16:51 +12:00
André Klitzing
a546677b08
Fix build issues for idf 4.2 (Support ESP32-S2) ( #1433 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-05-12 08:31:40 +12:00
Maurice Makaay
7665a220a0
Fix error when using %% in printf format. ( #1713 )
...
For printf formatting, a check is done to see if the number of
arguments matches the number of printf formatting placeholders.
The escape code `%%` that is used for representing a literal `%`
is also counted as a placeholder, but no argument will be provided
for that one.
This makes it impossible to use something like `("%f%%", percentage)`
in the code. In such case, one gets the error:
`Found 2 printf-patterns (%f, %%), but 1 args were given!`
This commit fixes this behavior by omitting the `%%` from the matches.
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
2021-05-11 12:15:29 -03:00