Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    stackOverflow at Tasks.cpp

    Scheduled Pinned Locked Moved Solved
    Firmware developers
    firmware stack overflow
    2
    4
    337
    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.
    • pgoellnerundefined
      pgoellner
      last edited by

      Hello everyone!

      My second post here and got some stochastic “SoftwareResetReason::stackOverflow” when my robot moves (See attached screenshot).

      -> RepRapFirmware: v3.01-dev [Debug-Build] (Commit hash 5dda6c9d5aaa24ea94f9246db73e702580e5d0dc).

      In the function stackOverflowDispatcher(pulFaultStackAddress, pcTaskName) in Tasks.cpp I got the values pulFaultStackAddress= 0x2045ffac and pcTaskName= TMC.

      So thinking that there is maybe an issue in Stepper Drivers at TMC, but actually I don’t know exactly.

      Does anyone know this problem or how to fix it?

      Thanks in advance,
      Best Peter

      Hardware

      • Duet 3 Board (ATSAM70Q20)

      Duet 3 Firmware

      • RepRapFirmware: v3.01-dev [Debug-Build] (Commit hash 5dda6c9d5aaa24ea94f9246db73e702580e5d0dc).
      • RRFLibraries: dev
      • CoreNG: dev
      • FreeRTOS: master
      • DuetWiFiSocketServer: master

      [4_1593442677965_Duet3Firmware.bin](Uploading 100%) [3_1593442677965_Duet3Firmware.7z.002](Uploading 100%) [2_1593442677965_Duet3Firmware.7z.001](Uploading 100%) [1_1593442677965_config.g](Uploading 100%) ![0_1593442677965_Bug.PNG](Uploading 100%)

      1 Reply Last reply Reply Quote 0
      • pgoellnerundefined
        pgoellner
        last edited by

        Now with attachments 🙂

        Bug.PNG Duet3Firmware.7z.002_.g Duet3Firmware.7z.001_.g Duet3Firmware.bin_.g config.g

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          As you are running a debug build, I guess you have built the firmware yourself. Some of the task stacks need to be increased in debug builds. As the TMC task was running when the stack overflow was reported, the constant you need to increase is the size of the stack for the TMC task, which you will find in the TMC5160 driver file.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          pgoellnerundefined 1 Reply Last reply Reply Quote 1
          • pgoellnerundefined
            pgoellner @dc42
            last edited by

            @dc42 Thanks, that solve my Problem 🙂 . This should perhaps be covered by a "DEBUG-BUILD-FLAG".

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA