🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Atom Linking Problem

    SOFTWARE
    2
    3
    5.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      entrusc
      last edited by

      Hi all,

      I just successfully uploaded one of the examples onto my new M5Atom, after I changed the upload speed to 1500000. Now I wanted to proceed to make the unit into an MQTT button, but there seem to be a problem with the Arduino WIFI library together with the M5Atom library. I'm getting this error from the linker:

      Linking .pio\build\pico32\firmware.elf
      .pio\build\pico32\lib731\libFastLED_ID126.a(FastLED.cpp.o): In function `atexit':
      d:\Coding\C\m5atom/.pio\libdeps\pico32\FastLED_ID126/FastLED.cpp:236: multiple definition of `atexit'
      C:\users\florian\.platformio\packages\framework-arduinoespressif32\tools\sdk\lib\libc_nano.a(lib_a-atexit.o):/Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/atexit.c:64: first defined here
      

      My assumption is that the M5Nano library somehow has its own atexit implementation and therefore the linker is confused when it finds a second definition in the default espressif framework. I'm using platformio to build.

      Any help is highly appreciated.

      1 Reply Last reply Reply Quote 0
      • G
        Grey
        last edited by

        Exact same issue here, specifically when using IotWebConf (example here). Haven't been able to narrow it down any further yet.

        1 Reply Last reply Reply Quote 0
        • E
          entrusc
          last edited by

          @Grey good to see that I'm not the only one having that issue. For now I switched to just using Micropython which works fine. Still it would be nice to also be able to deploy C programs to the Atom.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post