Ah alright, thank you. Sadly, kill is not appropriate to use with my application. My idea was to stop the current G-Code from executing and move on to the next G-Code in queue. In my interrupt, what I tried is to do: queue.inject("M0 S5\n"); queue.advance(); My idea was to advance the queue to instantly perform the injected M0-task. At the top of "GCodeQueue::advance() is the following code: /by alex939 - Firmware - Marlin
With inject_P and inject I had no luck unfortunately. It adds the stop at the end of the queue. enqueue_one_now does not work at all. Right now, my setup is: "Is a force detected that is too high?"(DMA and ADC, so the detection itself is really fast) --> Interrupt. Here I call queue.inject("M0 S5\n"); The M0 command only starts at the end of the queue, which is too late for a force overprotecby alex939 - Firmware - Marlin
That's a good idea, thank you. Do you know how I can parse directly from code? Do you know the function_x to call like function_x("M108"); , so that M108 gets executed?by alex939 - Firmware - Marlin
Hello, I am working on the Marlin-firmware of an Marlin-Robin-Nano-v3 board with an STM32F4. I want to include a safety-feature which is called directly and does not have to wait for its turn in the queue. Specificially, I am detecting when an applied force is too large and want to instantaniously lower the force without waiting for the queue. Alternatively, is there a way to write directly toby alex939 - Firmware - Marlin
Hallo zusammen. Das Problem hat sich "gelöst". Der Fehler der mir unterlaufen ist: In der PIO-Config ist ein board_build.offset und eine board_upload.offset_address angegeben. Diese standen ursprünglich auf 0x0800C000. Dummerweise habe ich per STM32CubeProgrammer das binary aus Versehen an die Adresse 0x08000000 geflasht und damit wohl einen Bootloader von FLSUN übergebügelt. Tja, blöd gelaufen.by alex939 - Software
Hallo zusammen, ich arbeite derzeit an einem Projekt, in das der FLSUN SR eingebunden ist. Die Firmware dieses Druckers muss bearbeitet werden. Im SR sind ja wohl diverse Motherboards verbaut. In meinem Fall ist es das Mks Robin Nano v3 mit einem STM32F407VGT6 an Bord. Die Sourcen findet man hier. Ich konnte bereits wenige Veränderungen im Code vornehmen. Konkret habe ich in der Config.h die maxby alex939 - Software