• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    pgoellner
    last edited by 29 Jun 2020, 14:59

    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
    • undefined
      pgoellner
      last edited by 29 Jun 2020, 15:03

      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
      • undefined
        dc42 administrators
        last edited by 29 Jun 2020, 21:47

        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

        undefined 1 Reply Last reply 1 Jul 2020, 07:08 Reply Quote 1
        • undefined
          pgoellner @dc42
          last edited by 1 Jul 2020, 07:08

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

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