SAM-BA operation failed - Firmware Upload Archim 1

Dear All,

I had my MPCNC for some time now, and it was working great with a Mini Rambo.

Couple of months back I ordered a Archim from here, as I wanted to try out the end-stops, as I am planning to try some precision work.

So, I simply disconnected the Rambo, connected the Archim, and when I started Repetier Host to try to move the MPCNC manually, it would not work… or just a very small movement on the Z axis, otherwise I would just hear noise. The more commands I put in, the more noise I hear…

I read on another topic that this migh by a software issue, so I tried to flash a new one, the pre-configured MPCNC_Archim1_T8_16T_LCD_DualEndstop, directly from the V1 Github page.

I followed all the steps on the Firmware upgrade page from the V1 webpage, but the upload always failed… I even tried to reset the board with the Reset and Erase botton, that would get me to te Bossa Bootloader, and even that way, I would still get the SAM-BA error… Please find below the upload log.

Would anyone have a solution to this?

Thanks a lot!

Arduino: 1.8.10 (Windows 7), Board: “Archim”

Sketch uses 123724 bytes (23%) of program storage space. Maximum is 524288 bytes.
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.031 seconds

Write 127004 bytes to flash (497 pages)

[ ] 0% (0/497 pages)
[== ] 9% (49/497 pages)
[===== ] 19% (98/497 pages)
[======== ] 29% (147/497 pages)
[=========== ] 39% (196/497 pages)
[============== ] 49% (245/497 pages)
[================= ] 59% (294/497 pages)
[==================== ] 69% (343/497 pages)
[======================= ] 78% (392/497 pages)
[========================== ] 88% (441/497 pages)
[============================= ] 98% (490/497 pages)
[==============================] 100% (497/497 pages)
done in 46.034 seconds

Verify 127004 bytes of flash

[ ] 0% (0/497 pages)
[== ] 9% (49/497 pages)
[===== ] 19% (98/497 pages)
[======== ] 29% (147/497 pages)
[=========== ] 39% (196/497 pages)
[============== ] 49% (245/497 pages)
[================= ] 59% (294/497 pages)
[==================== ] 69% (343/497 pages)
[======================= ] 78% (392/497 pages)
[========================== ] 88% (441/497 pages)
[============================= ] 98% (490/497 pages)
[==============================] 100% (497/497 pages)
Verify successful
done in 30.795 seconds

SAM-BA operation failed
Set boot flash true
CPU reset.
An error occurred while uploading the sketch

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

1 Like

Only the old files I have linked on the firmware page work like that, I have it linked and explained there.

The new firmware will work if you uninstall and remove the u8glib, Ultimachine build it into there drivers for us…

Thank, I will try!

So, it works now :slight_smile: Thanks!

Nevertheless, I now have the issue that the Z Axis is reversed, and the end stops do not seem to work as well. They are detected, and when I trigger manually the two closest ones to the zero I get

19:55:42.926 : x_min: open
19:55:42.926 : x2_min: open
19:55:42.926 : y_min: open
19:55:42.926 : y2_min: TRIGGERED
19:55:42.926 : z_min: open
19:55:53.219 : Reporting endstop status
19:55:53.219 : x_min: open
19:55:53.219 : x2_min: TRIGGERED
19:55:53.219 : y_min: open
19:55:53.219 : y2_min: open
19:55:53.219 : z_min: open

But when I move the gantry manually in Repetier host, they both get trigegered, but I can still continue pass them.

The endstops are only active during a G28, If the X2 and Y2 are backwards you can wire them the other way or change the firmware. I have made a note to have a look at my branch.

Thanks for the answer, I need to study these end stops more in details.

My main issue at this moment is the reversed Z. When I hit the upper arrow in manual control in Repetier, the drill moved down, and when I hit down, it goes up. Previously this work well with the Mini Rambo. Any idea about this?

Thanks for your great support.

https://docs.v1engineering.com/software/reverse-motor/

You can flip the plug (while it is off)

2 Likes

Thanks :slight_smile: Works fine now.

So, as I continue my transition from the Rambo 1.3 to the Archim, I have another issue… at that is with the LCD. It is plugged in, it lights up, but nothig is displayed…

I tried looking around if other people had such issues, and I did not find an answer.

Any suggestions?

Thanks a lot!

You should be able to face the LCD plugs on the archim the other direction, same port.

Sorry, what do you mean by “to face”?

When I flip the plugs 180 degrees, the screen does not turn on, if that is what you mean?

Thanks

Yeah, if the ports are correct there should only be two options, and both should face the same way.

Yes, so this is how they are plugged. And this is the situation that corresponds to the picture from my previous post, when the LCD lights up, but I only see the pixels. When I flip both plugs 180 degrees, the LCD does not power up.

Another thing I tried is flipping screen one and two plugs, while keeping them facing the same way as on this picture. Then the screen lights up as well, but I do not see the pixels, only the back light.

Can you show a picture of both at the same time. I will plug in and flash one and compare pictures, and update the instructions.

So, here are the two situations.

The first picture is how it should be, I believe. You can see the pixels.


The second picture I inverted the connectors. You can see that only the blue back light is on.

On my Archim setup, I have the connectors on the LCD panel with the red closer to the edge, not pointing to the middle of the board. The control board ribbon on yours is as I have mine, with red toward the center of the board. It was a bit of a muddle figuring it out because the diagrams and schematics aren’t evident to me. I also have the plug that goes into EXP2 on the LCD plugged into the slot closer to the stepper drivers on the control board. It was not as the schematic would dictate or that I could read.

Thank you Marion for the feedback.

I double checked the cables on the LCD screen as well, and they are plugged and labeled correctly. Nor the cables nor the LCD screen seem damaged. I tried connecting the ribbon cables in all possible ways (swap 1 and 2, reverse one, then reverse second, face to face, back to back…) and nothing worked.

@vicious1 did you have any luck on your side?

BTW, I noticed another item; on Repetier Host, when I click on “connect”, it writes “no signal detected - forcing start”. Do you think that this might be related? The steppers move and are homing fine. The end stops are working as well.

Thanks a lot for your help.

1 Like

I found the issue. Line 1870 of the dual archim version need to get un-commented.

Fixed it, you can re-download and flash it now. Tested and verified.

3 Likes

You rock Ryan!! Thanks a lot!

1 Like