1.0.2 not working on my Mega 2560 and RAMPS.
I have multiple Mega 2560s, RAMPS and REPRAP DISCOUNT FULL GRAPHICS SMART CONTROLLERs. I can get 0.92 to load fine, but there is no TMC2130 support. I try to load 1.0.2 onto any of my boards and the LCD is just lit up and blank. When I go from 0.92 to 1.0.2 the screen locks up and never reboots on its own, I have to power cycle and then it's just a lit blank screen. I've tried changing many of the settings wondering if there is a configuration issue, but nothing helps. Is there something with 1.0.2 that I did wrong? I'm using the Arduino IDE to load the firmware. When I go back to 0.92 everything works except my steppers that use TMC2130 drivers.
Any suggestions are welcome and appreciated.
Any suggestions are welcome and appreciated.
Comments
The sd card is using the same hardware spi that the TMC is using and 1.0.2 has new sd fat library with own spi access. That might be tge main source of the problem. I guess without explicit TMC support it is working?
I'm the guy responsible for the Trinamic support. I've just tried to reproduce this issue using an SD Card slot connected to my RAMPS board and I cannot. It works just fine for me and I can start up the drivers with an SD card plugged in and read the card just fine.
I want to understand your setup better so I can figure out what is wrong there. Can you please post your connections for the trinamic drivers. Most importantly, where have you connected the CS lines to?
Better yet, post some pictures with the board and it's connections if you can.
When I upload firmware 1.0.2 into my board while the SD card is in the slot, the screen is just blank but lit up. As soon as I remove the SD card it reboots just fine. I have not tried just powering up the board with the SD card in it.
My other Mega 2560 and RAMPS won't load 1.0.2 at all. It will load 0.92 though. I just got another Mega 2560 in and will try it when I get a chance.
I had a brand new Mega 2560 I just removed from the anti static bag and uploaded the firmware and the exact same thing happens where the firmware uploads but I have no display. Now both of my only working boards have no display when using 1.0.x. They both work fine with 0.92, but there is no TMC support in that version. I've tried them both on 2 different LCDs and RAMPS with the exact same results.
I just got it to boot with 1.0.2 by unplugging the EXP2 cable then plugging it back in then unplugging it and when the logo comes up I plug it back in and it boots. Its definately an SD reader issue, but I'm trying to figure out if it's the firmware or hardware since it works fine with 0.92.
I just replicated this on the second Mega 2560 board.
There is nothing for motherboard 33, RAMPS_V_1_3, that has pin 32 in it. I also just tried pins 47 and 57 that are not used anywhere else. So I'm not sure if this is a pin thing or a TMC thing.
So back to your post above, now that I know it's a TMC thing. This is all happening with just the RAMPS plugged into the Mega2560 and RRD full graphics smart controller. No stepper drivers, no temp sensors, no heater. It happens while plugged into USB or 12v. I'm not sure how my other one was even working before it got toasted.
@Repetier
Referencing your question above, it does work fine if I disable TMC support.
I did try disabling SD support while TMC support was enabled but I get the same results.
It has some improvements to the initialisation code that should make it more tolerant. I'm trying to also add log messages for the init code soon.
Let me know if that version improves anything.
Thanks for your help and thanks for your patience while I work through all my little bugs. Half are user error and the rest are either cheep parts or little things like this. But I love experimenting and learning and helping out however I can.
I'm thinking to try and procure those and try to dig down into this.
https://www.amazon.com/gp/product/B071YV3FCL/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1
I don't know if I'm just off base, but it looks like the Mega 2560 has SPI issues with SD cards anyway. Not sure if this is the same issue though. I thought it may be the display but it works on the MKS board that has a similar chip. Maybe it's a hardware issue? I keep going back to the fact that unplugging the EXP2 cable and pluggin it back in makes it boot. Also my old board only worked if the SD card was removed. So 3 similar boards, 2 identical RAMPS boards and 2 displays do the same thing. I tried with my ANET A8 display, but never could get it working at all.
Here is what I've found with SPI issues on the MEGA 2560 only but not other boards.
https://joshuawoehlke.com/daisy-chaining-spi-arduino-mega-2560/
https://forum.arduino.cc/index.php?topic=63018.0
https://forum.arduino.cc/index.php?topic=437494.0 (may not be relevant)
https://www.circuitsathome.com/mcu/running-multiple-slave-devices-on-arduino-spi-bus/
http://www.matrixtsl.com/mmforums/viewtopic.php?t=14346
I set this in the SDCard.cpp "HAL::delayMilliseconds(100); // wait for stabilization of contacts, bootup ..." and it is working now ! It was set to 50. I need to get it working on my actual printer though and it's taking a bit more. I do have a RAMPSXB and a longer cable, if that makes a difference.
Thank you so much for your help on this and thank you for coding better than me by adding notes to the side and above (I've never been good at that lol).
Now to test it with the TMC2130 plugged in.
Edit: I got it working on my big printer, but not with USB. I have to power it on with a full 12v, but with as much as I have plugged into it I'm not surprised.
Thanks again for all your help! I printed last night and other than some slicer settings being off, it printed perfect!
@alexsomesan
If you have not gotten one yet, what can I do to help out? I love this firmware and do NOT want to have to switch back to Marlin.
The new one did not work either. It's something in the combo of the Mega 2560 and RRDFGSC. I now have a spare. Can I ship it to you so this can be figured out? I know I can't be the only person that will come across this.