Skip to content

Unable to upload example Blink.bin to Artemis Thing Plus on macOS Sequoia on M3 MacBook Pro #18

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

Closed
bblacey opened this issue Sep 23, 2024 · 13 comments

Comments

@bblacey
Copy link

bblacey commented Sep 23, 2024

I downloaded the 3.0.0 release and tried to flash the example Blink.bin to an Artemis Thing Plus board but it fails as follows.

Screenshot 2024-09-23 at 2 51 13 PM

Is there a way to enable debug logging?

@bblacey bblacey changed the title Unable to upload example.bin to Artemis Thing Plus on macOS Sequoia on M3 MacBook Pro Unable to upload example Blink.bin to Artemis Thing Plus on macOS Sequoia on M3 MacBook Pro Sep 23, 2024
@andreer
Copy link

andreer commented Dec 8, 2024

It may help to disconnect and re-connect the board after hitting the upload button.

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

Hi Bruce (@bblacey ),

Apologies for the delay. Thank you for reporting this - both here and on the Forum.

I'm taking a look now. I'll post updates here as I go.

Best,
Paul

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

Pre-update testing - Windows:

Can I load the latest OpenLog Artemis firmware binary onto the Artemis?

On Windows:
Windows 11 Pro 24H2 64-bit running on Core_i5 12th Gen
Artemis-Firmware-Upload-GUI v3.0.0
CH340 driver wch.cn 3.9.2024.9 16/09/2024
OLA has Artemis SVL Bootloader - Version: 5 already loaded
I can Upload Firmware:

Image

But Update Bootloader fails:

Image

I remember seeing the Update Bootloader fail previously. I put it down to the Artemis already having the version 5 bootloader already loaded. But maybe the RTS issue is behind this too?

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

Pre-update testing - macOS:

Mac mini - Apple M2
macOS Sequoia 15.3.1
WCH drivers from CH34xVCPDriver.pkg

I can Upload Firmware at 460800:

Image

But Update Bootloader fails:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

Ah. A second Upload Firmware fails:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

OK. I think this is all heading in the right direction. The fix from farrell works well. The trick is to generate a reset using RTS / DTR before attempting to upload the binary.

The issue with Update Bootloader failing was probably down to baud rate. The baud rate must be reduced to 115200 when updating the bootloader. This was done automatically with version 2 of the GUI, but we'd missed it with version 3.

@PaulZC
Copy link
Contributor

PaulZC commented Mar 2, 2025

I spoke too soon...

I have Update Bootloader and Upload Firmware working on Windows.

On macOS, Upload Firmware works. But Update Bootloader fails.

There must be some small difference in the way RTS is configured on macOS compared to Windows.

I'll try and poke at this a bit more tomorrow.

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

OK. We are back in business. RTS behaves differently on macOS. Here is the Update Bootloader RESET and BOOT sequence (Digital and Analog) on macOS:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

And here is the Upload Firmware RESET on macOS:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

Here is Update Bootloader on Windows. Exact same code, different sequence:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

And here is Upload Firmware on Windows:

Image

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

I think we are done. I'll release the updated code shortly.

@PaulZC
Copy link
Contributor

PaulZC commented Mar 3, 2025

Closed by v3.1.0

@PaulZC PaulZC closed this as completed Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants