Comments (5)
C2 needs the setting NO_USE_SML_CANBUS
since there is no CAN BUS support from the MCU.
The Audio libs needs to be added to the lib ignore section for the C2.
With this setup scripting does work to compile with the C2.
from tasmota.
@gemu2015 Please have a look to fix the warning
/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:2741:40: warning: ignoring attribute 'section (".iram1.27")' because it conflicts with previous 'section (".iram1.5")' [-Wattributes]
2741 | void IRAM_ATTR SML_CounterIsr(void *arg) {
| ^
/tasmota/tasmota.ino:5094:16: note: previous declaration here
from tasmota.
C2 needs the setting
NO_USE_SML_CANBUS
since there is no CAN BUS support from the MCU. The Audio libs needs to be added to the lib ignore section for the C2. With this setup scripting does work to compile with the C2.
OK.
Updating files from #21407 to my active source
I also add
#if defined ESP32-C2
#define NO_USE_SML_CANBUS
#endif
to file user_config_override.h
Files tasmota32c2(.factory).bin are now being compiled but still with warnings.
These warnings in CompilerLog now are here:
Building in release mode
Compiling .pio\build\tasmota32c2\src\tasmota.ino.cpp.o
Compiling .pio\build\tasmota32c2\lib78f\WiFiHelper\WiFiHelper_ESP32.cpp.o
D:/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:2741:40: warning: ignoring attribute 'section (".iram1.27")' because it conflicts with previous 'section (".iram1.5")' [-Wattributes]
2741 | void IRAM_ATTR SML_CounterIsr(void *arg) {
| ^
D:/Tasmota/tasmota/tasmota.ino:5094:16: note: previous declaration here
Compiling .pio\build\tasmota32c2\lib664\default\be_modtab.c.o
Archiving .pio\build\tasmota32c2\lib78f\libWiFiHelper.a
...
Creating esp32c2 image...
Merged 2 ELF sections
Successfully created esp32c2 image.
esp32_create_combined_bin([".pio\build\tasmota32c2\firmware.bin"], [".pio\build\tasmota32c2\firmware.elf"])
Read partitions from partitions/esp32_partition_app2880k_fs320k.csv
//# Name, Type, SubType, Offset, Size, Flags
nvs data nvs 0x9000 0x5000
otadata data ota 0xe000 0x2000
safeboot app factory 0x10000 0xD0000
app0 app ota_0 0xE0000 0x2D0000
spiffs data spiffs 0x3B0000 0x50000
Creating filesystem with content:
No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!
safeboot binary already in place.
Offset | File
- 0x0000 | D:\Tasmota.pio\build\tasmota32c2\bootloader.bin
- 0x8000 | D:\Tasmota.pio\build\tasmota32c2\partitions.bin
- 0xe000 | C:\Users\Station.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin
- 0x10000 | D:\Tasmota\variants/tasmota\tasmota32c2-safeboot.bin
- 0xe0000 | D:\Tasmota.pio\build\tasmota32c2/firmware.bin
esptool.py v4.7.2
SHA digest in image updated
Wrote 0x2d4ca0 bytes to file D:\Tasmota.pio\build\tasmota32c2/firmware.factory.bin, ready to flash to offset 0x0
bin_map_copy([".pio\build\tasmota32c2\firmware.bin"], [".pio\build\tasmota32c2\firmware.elf"])
map_gzip([".pio\build\tasmota32c2\firmware.bin"], [".pio\build\tasmota32c2\firmware.elf"])
firm_metrics([".pio\build\tasmota32c2\firmware.bin"], [".pio\build\tasmota32c2\firmware.elf"])
C:\Users\Station.platformio\penv\Scripts\python.exe -m tasmota_metrics "D:\Tasmota\firmware.map"
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Station.platformio\penv\Lib\site-packages\tasmota_metrics_main.py", line 4, in
main()
File "C:\Users\Station.platformio\penv\Lib\site-packages\tasmota_metrics\core.py", line 508, in main
detected_target, segments, sections = load_map_data(args.map_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Station.platformio\penv\Lib\site-packages\tasmota_metrics\core.py", line 237, in load_map_data
detected_chip = detect_target_chip(map_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Station.platformio\penv\Lib\site-packages\tasmota_metrics\core.py", line 307, in detect_target_chip
raise RuntimeError('Target not detected')
RuntimeError: Target not detected
*** Error 1
== [SUCCESS] Took 138.19 seconds ==
Environment Status Duration
tasmota32c2 SUCCESS 00:02:18.190
== 1 succeeded in 00:02:18.190 ==
- Terminal will be reused by tasks, press any key to close it.
from tasmota.
@gemu2015 warning just fixed.
from tasmota.
Thx at Support Team.
#21411 installed.
Compiler warnings are fixed.
from tasmota.
Related Issues (20)
- Problems receiving data from vbus interface (sensor53) since Release 14.0.0 HOT 2
- google Chart options not work with c=columnchart HOT 2
- Thermostat current temperature (measured) goes to 0.0
- PZEM-004-T and DS18x20 are not work simultaneously HOT 1
- Recalled: Making a Tasmota device smarter, really smarter !
- xsns_102_ld2410.ino syntax error HOT 3
- PID PID_LOCAL_SENSOR_NAME doesn't seem to update Pv HOT 7
- xsns_102_ld2410.ino: Modification for reading Engineering Mode Data
- PowerOnState<x> for multi relay devices like the shelly 2.5PM HOT 1
- picture with an esp01f and ufs
- how to use modbus
- Failed to start Z2M after updating Tasmota > 13.2.0 HOT 1
- SML interface with 3 phase meters
- HA discovery message empty when Smart Meter interface is configured
- SonOff POWR320 Elite reset in loop after flash HOT 4
- SonOff POWR320 Elite reset in loop after flash
- Sonoff (Wifi) Only works on serial and not AC on 14.2.0 But work on AC on 12.2.0 HOT 4
- Support for APDS9930 HOT 2
- DS18B20 no longer reporting after upgrading to version 14.2.0
- MEROSS MS310R Plug with CSE 7759b Power Meter Chip causes restarts by whatchdog on ESP12-F
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasmota.