-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] BTT MMU DIP not connecting to SKR Mini E3 v3 #24677
Comments
looks more like you have an issue with the mmu pinda probe since it crashed when you ask it to read the pinda state |
It crashes at different points in the debug not always at P0
… On 25/08/2022, at 15:28, ellensp ***@***.***> wrote:
looks more like you have an issue with the mmu pinda probe since it crashed when you ask it to read the pinda state
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Using external power? Usb is not sufficient |
All external power
… On 25/08/2022, at 16:23, ellensp ***@***.***> wrote:
Using external power? Usb is not sufficient
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
I checked code, for specified event, there is nothing evidentely wrong in code. Code is in 'case -4' waiting for an answer. |
P0 command is sent also time to time then it may be a canditate for the cause. |
You may add a debug print in case -4, before sscanf and print rx_buffer. Just to see if it enters here or not |
Thank you I will try that and post the result |
oh, add the same "debug print" in case 2. This is when P0 is sent periodically |
is this message ("test output") what you get in rx_buffer? |
and "'P0' complete" where does it come from? |
That's not what I meant when I said to print out rx_buffer and also, in case - 4, inside Else you do an unnecessaru sscanf. if (rx_ok()) {
DEBUG_ECHOLNPGM ("answer=>", rx_buffer, "<");
sscanf(rx_buffer, "%hhuok\n", &finda); or similar in output (if this doesn't compile) From your code it seems that it hang while waiting for "ok" answer, or because of sscanf |
Thanks I tried your code and got the above response. Marlin then reboots continuously. |
Since I don't see message: |
hi, have tried %hhi and same result |
below is the output from pronterface: Connecting... |
What you get here is a PC error, not a Marlin fault. |
Googling the error shows "The error you see happens when the device on the other side of the connection resets or closes the connection for any other reason." Yes its a system error, to the serial port abruptly vanishing Here is where is gets "interesting" The MMU is connected the the controllers serial UART 2 Which mean hard crash or power issue. Do you have a lcd? (no config, so cannot check myself) Does the Controller reboot or just stop talking? (if you have a lcd you would see the boot screen again) |
@ellensp I suspect he has a lcd due to his statement:
What I don't understandi is that a message before sscanf is printed while the one after isn't. Does Marlin reboot because of sscanf? |
I checked and C89 is really old and we are using, as older, c++11 that is year after C89 |
Here are the config files. Yes @GMagician, I have an LCD connected and the machine reboots continuously which is why the serial connection disappears |
I don't know where to look at. All seems bring to sscanf, but no real evidence, just suspects. To remove any doubt you may replace sscanf, where |
@GMagician thank you, I have tried the above, commented sscanf out and finda = true; now receive the MMU - Enabled message and marlin then reboots which again drops the serial connection. |
Then sscanf is not guilty. No idea how to find where/why marlin hangs, sorry |
This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Main board is SKR Mini E3 v3 trying to connect to MMU DIP via TFT port. Connection below
SKR me3v3 MMU DIP
TFT Pins Pins
+5v--------------------+5v
Gnd-------------------Gnd
Tx----------------------Rx
Rx----------------------Tx
Reset------------------Reset
Port settings
Marlin 2.1.x Bugfix
Configuration.h
#define SERIAL_PORT -1
#define BAUDRATE 115200
//#define SERIAL_PORT_2
Configuration.adv.h
MMU2_SERIAL_PORT 2
#define MMU2_DEBUG
The above setup sends Marlin into a boot loop. Serial monitor returns attached error. Any help would be appreciated.
Bug Timeline
New issue after setup and install of MMU2S with BBT MMU DIP board
Expected behavior
I expected the MMU to connect with the printers board
Actual behavior
Communication between the two boards fails.
Steps to Reproduce
Restart printer
Version of Marlin Firmware
2.1.x Bugfix
Printer model
AM8
Electronics
BTT SKR MINI E3 V3, MMU DIP
Add-ons
MMU2S
Bed Leveling
ABL Bilinear mesh
Your Slicer
Simplify3D
Host Software
OctoPrint
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: