Crashing to Blank LCD Screen on Archim Board

okay the newest marlin builder version is on the board using p.io…I am going to tweak a few things to see if I should upload a PR. I will let the board sit after a few more things.

Heffe when you get a minute, any ideas why this works, but not in the file? I tried the same exact commands, p.io says it can’t find the commands. Or maybe why does thinkyhead want them in a file instead of in the p.io file?


I used my old info from ultimachine. For whatever reason we do not have need the lib_ignore.
https://github.com/MarlinFirmware/Marlin/pull/17405

Wow that is definitely interesting news! I was getting really doubtful that this is the firmware. FYI if you look at the thread I was able to upload 505 with P.IO however a really bad result was that the steppers didn’t work (whole bunch of weirdness). I assumed in the thread it was a problem with the 505 firmware, but searching through your forum showed another thread (don’t have the link handy) where I think someone else had uploaded an older firmware with p.io and had the same weird stepper motor functionality. He did not get that behavior when uploading via Arduino.

So you might want to make sure steppers work if you upload via p.io and if they don’t then you may want to try getting the Arduino upload to work before assuming the firmware is bad.

Thanks so much for looking into it. Glad I’m not going crazy, sad that this is so tricky. Especially if this truly only does happen with the LCD controller and that this wasn’t a fluke. In that case my mind goes to all sorts of weird places like hardware interrupts, or possibly something with how Archim communicates with SD card reader (even when no card is there). Hopefully you have better ideas :wink:

Well I still have not plugged in a stepper. Mail just came, I did not pack any of Sunday or Mondays orders because I want to fix this…doing what I can here.

1 Like

Okay, no steppers but found an error in the marlin builder. compiling and flashing now.

actually, it is probably been an issue for a while, even in the old firmware…wrong current settings.

2 Likes

I think it is because the command in other OSs isn’t bossac. But I don’t know more than you’ve told me.

The file is setting the variable. Did the variable name change? Is it still setting it before it gets used? I haven’t looked at any of the pio builder stuff.

Oh…so he can use the “if windows” statement. Okay I get that, means I have some more digging to do.

I have more questions but I am digging deeper…I cant find a working archim firmware to test from. 402 is not working

Okay, I need a faster computer, compiling is taking forever. 425 works fine with the steppers. I will see if there are any obvious errors and work backwards. Cross those fingers.

1 Like

Crap.

Well. Good news, there was a fix for the steppers not working after a platform.io flash at one point.

Changing this line in variant.h fixes it for me:

C:\Users%USERNAME%.platformio\packages\framework-arduinosam\variants\arduino_due_x

#define TC_FREQUENCY 1000

To:

#define TC_FREQUENCY 31000

To which I replied, “how do we get that change submitted as a PR?”

The reply was,

I’ve successfully made the changes within the Marlin repo by using a custom board and variant for platformio.

Example is here:

platformio support for Archim using a custom variant. · ultimachine/Marlin@508553e · GitHub

Such a tiny change results in a huge huge PR. This PR is also very old at this point. He never submitted it to marlin.

Way above my pay grade.

So there are two issues, the bossa thing not working and the steppers not working. I have workarounds for both but need to figure out how to understand them to be able to submit a PR and not a work around.

This PR is huge because they have copied a whole config and then changed one line (and renamed some stuff).

We could add some code to MarlinBuilder to edit that line only in the archim builds. I would really rather get this upstream instead. You could also edit that one line and check it in on your 425 branch.

1 Like

Can you share the exact issue when you run the bossa thing without your workaround? What happens in macos and linux, I wonder?

That is what I assumed but whatever config that is, is not in the platform.io boards folder in the current version of marlin. I am willing to do an updated version but am not sure where the original comes from. PS I am asking here because of the fast responses. If we can solve it on a few days that is usually what it takes to get a response.

Will do.

Good archim flash, the errors are a spell checker I need to remove.

Bad, several variants.

The location seems correct,

extra_scripts = ${common.extra_scripts}

  Marlin/src/HAL/DUE/upload_extra_script.py

It sees it I made a change and got errors so the location is correct.

That is bossac complaining. The format in the ini file has $SOURCE at the end of it.

I don’t think it is having trouble finding the extra script. I think it is having trouble sending the right arguments to bossac.

I swear I tried adding that earlier, trying again just to double check.

https://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#custom-upload-tool

are you f’ing kidding me…that was it.

I swear I tried at least twice…that is it the shop laptop is getting an upgrade.

okay, I will double check that with a fresh unzipped folder…I have been monkeying around with all sorts of folders.

So frustrating, I swear I double checked that.

Okay problem one solved, I can hit a PR…but I should probably wait just in case your big brains sees a solution to the other issue.

I am checking the configs again, just in case something is missing.

PS…Thank You!!!

1 Like