Giter Site home page Giter Site logo

Comments (5)

Jason2866 avatar Jason2866 commented on September 26, 2024

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.

Jason2866 avatar Jason2866 commented on September 26, 2024

@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.

HofeBY avatar HofeBY commented on September 26, 2024

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.

arendst avatar arendst commented on September 26, 2024

@gemu2015 warning just fixed.

from tasmota.

HofeBY avatar HofeBY commented on September 26, 2024

Thx at Support Team.

#21411 installed.
Compiler warnings are fixed.

from tasmota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.