M500 Always Fails


  • Moderator

    Waiting for @chrishamm to take a look.



  • 2 things i see from the m122.

    I could be totally wrong as I don't have a RPI4 to test. I run mine in standalone.

    First, in the initial line, it says SBC mode. Should it not show the other mode? RPI mode?)

    Second, it says SD Card 0 not detected. Isn't M500 trying to write configoverride.g on the SD card? (again, could be wrong in the RPI mode)



  • nevermind, I just read some more and SBC (I thought SBC standed for single board computer aka standalone mode, I was wrong) is the RPi mode and the SD card isn't supposed to be in for the RPi mode.



  • I tried re-imaging the micro SD card with a downloaded image of the OS (rather than the one that came pre-loaded on the card). The OS from the downloaded image looks very different. It uses a different desktop environment, and it presents me with a setup wizard on first boot for configuring location, networking, password and initial updates. The pre-loaded image never did that.

    However I still can't run M500 without getting the error message listed above. I'm not sure what I'm doing wrong.


  • Moderator

    Yes the latest image is based of an updated version of the recent pi image, so it's a bit more polished.

    Did you do a sudo apt update sudo apt upgrade after?

    Can you try capturing some extended debug information?

    https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Monitoring_optional



  • @Thalios said in M500 Always Fails:

    I thought SBC standed for single board computer

    that bit is correct, but its the Pi and not the Duet that is an SBC.

    (I suppose you could argue PanelDue is a graphics port and the Duet is a single board computer, but its commonly used for more general purpose computers like the Raspberry Pi, with the Duet being a specialized embedded computer



  • @Phaedrux Yes, I made sure all packages were up to date and I rebooted. Here's a log output when I try to run M500:

    Oct 16 18:05:08 duet3 DuetControlServer[1464]: [error] Code M500 has thrown an exception
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    System.NullReferenceException: Object reference not set to an instance of an object.
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Files.ConfigOverride.WriteModelParameters(StreamWriter writer) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/ConfigOverride.cs:line 77
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Files.ConfigOverride.Save(Code code) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/ConfigOverride.cs:line 34
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Codes.MCodes.Process(Code code) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Codes/MCodes.cs:line 652
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.ProcessInternally() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 479
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.Process() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 400
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.ExecuteInternally() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 336
    Oct 16 18:05:08 duet3 DuetControlServer[1464]: [error] IPC#46: Failed to execute SimpleCode
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    System.NullReferenceException: Object reference not set to an instance of an object.
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Files.ConfigOverride.WriteModelParameters(StreamWriter writer) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/ConfigOverride.cs:line 77
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Files.ConfigOverride.Save(Code code) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/ConfigOverride.cs:line 34
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Codes.MCodes.Process(Code code) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Codes/MCodes.cs:line 652
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.ProcessInternally() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 479
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.Process() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 400
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.ExecuteInternally() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 336
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.ExecuteInternally() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 383
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.Code.<Execute>b__27_0(Task`1 task) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Code.cs:line 277
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.Commands.SimpleCode.Execute() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/SimpleCode.cs:line 136
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetAPI.Commands.Command`1.Invoke() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetAPI/Commands/BaseCommand.cs:line 67
    Oct 16 18:05:08 duet3 DuetControlServer[1464]:    at DuetControlServer.IPC.Processors.Command.Process() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/IPC/Processors/Command.cs:line 63
    
    


  • Is there some other kind of official support medium than this forum? Because I spent a lot of money on these control boards and I really don't think I'm trying to do anything fancy or outside of reasonable use. It's literally been over a week now.



  • @GoremanX said in M500 Always Fails:

    Is there some other kind of official support medium than this forum?

    This is "it", the developers do frequent the forum, but what you seem to be after seems to be "officially" not supported

    https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M500



  • @bearer Thank you!

    That would've been nice to know right off the bat. Especially since none of the guides take it into account. Seems like I could've saved a whole lot of head-banging if that had been cleared up immediately.



  • Also, that's a super bizarre omission that makes no sense at all. I hope it gets rectified soon. Having only M500 and M501 not work in SBC mode is seriously odd



  • It boils down to differences in the virtual sd card used on the pi which isn't fully compatible with the code that uses the real sd card when in stand alone mode.

    I think it was scheduled for 3.2 but haven't kept up with stuff lately (also, its possible the Wiki is out of date, but it doesn't work odds are its still at thing)

    Edit: Calling it an omission isn't quite fair, is clearly been on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of the Leopard.”



  • Do you need any of the features the Pi offers? Might be better to switch to stand alone mode where M500 is supported while they implement the filesystem support for the SBC mode? The Pi/SBC doesn't really offer much at the present?



  • @bearer The main thing it gives me right now is the ability to have the Pi 4 outside of the electronics enclosure, which gives me functional wifi without requiring any additional adapters (the base of my delta printer is all aluminum). I also have it hooked up to a Pi touchscreen, which gives me a much more complete interface at the printer itself, rather than the limited interface of a PanelDue. Plus I have a Bluetooth keyboard and touchpad paired, which has been convenient. And having the Pi 4 right there makes it super simple to have a camera hooked up for monitoring progress and/or capturing time lapses. Honestly, I'm loving the SBC thing compared to my other Duet-powered setups. If it's only the lack of M500, I'll deal with that until it's fixed. I just wish I hadn't wasted a week on trying to resolve this.

    I haven't seen any mention of M500 or M501 in the recent 3.2 beta fixes and changes, so it doesn't look like it'll be making it into this release.



  • If you replace the ribbon cable with ethernet and stick an sd-card in the duet, you can use the pi to bridge ethernet to wifi and keep using the screen to access DWC running on the duet's ethernet interface. Should -give you the same-ish functionality + M500 while the devs fix the file system stuff that is missing

    (edit: suppose you don't have to remove the ribbon cable actually, it can supply power or just sit there unused as long as the Duet has a sd-card with a config file it will ignore the SBC interface afaik)



  • I don't want to spend more money on an ethernet bridge. Pi4s and touchscreens I have littered about the workshop practically for free 😂 All I need to do is put my heater autotune parameters and delta auto-configure results manually in config.g. I run auto-config before every print anyways. I can't think of anything else I use M500 for. It's only tedious initially because of the initial configuration which requires adjusting those settings multiple times until I zero in on the right ones.



  • It's also super comforting to know that I'M NOT DOING ANYTHING WRONG and there's nothing wrong with my setup that'll bite me later. That was my main concern.



  • @GoremanX said in M500 Always Fails:

    I don't want to spend more money on an ethernet bridge

    you can use the pi for that


  • Moderator

    @GoremanX said in M500 Always Fails:

    @bearer Thank you!

    That would've been nice to know right off the bat. Especially since none of the guides take it into account. Seems like I could've saved a whole lot of head-banging if that had been cleared up immediately.

    Sorry about that. I should have clued into checking the unsupported list first. I hope the road to feature complete isn't much longer.


Log in to reply