Skip to content
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

Mac App not working #72

Open
cw1812 opened this issue Jun 17, 2023 · 6 comments
Open

Mac App not working #72

cw1812 opened this issue Jun 17, 2023 · 6 comments

Comments

@cw1812
Copy link

cw1812 commented Jun 17, 2023

Hi there,

Is there any advice for the "Bad CPU type in executable" error?

Thanks.


TERM environment variable not set.
Safecast

Firmware Uploader Mac

The following is a list of the available serial ports:

  1. /dev/tty.usbserial-AQ00PL19

One relevant port so selecting it automatically : /dev/tty.usbserial-AQ00PL19

  1. firmware.hex
    TERM environment variable not set.
    Safecast firmware Updater

Writing - firmware.hex
to port - /dev/tty.usbserial-AQ00PL19
IC - atmega328p

/private/var/folders/f1/4br1j83n78l1r1rtpck4gyrc0000gn/T/AppTranslocation/07ADACCA-1224-4FA2-B575-8EE18E49CE57/d/bGeigeiNano_V1.4.5_uploader.app/Contents/Resources/script: line 175: /private/var/folders/f1/4br1j83n78l1r1rtpck4gyrc0000gn/T/AppTranslocation/07ADACCA-1224-4FA2-B575-8EE18E49CE57/d/bGeigeiNano_V1.4.5_uploader.app/Contents/Resources/bin/avrdude: Bad CPU type in executable


@robouden
Copy link
Contributor

robouden commented Jun 17, 2023 via email

@dittohead
Copy link

got same on 14.2.1 intel

@robouden
Copy link
Contributor

ditohead,

Seems you are using an older version (32 bit only) of the uploader script. Can you try the V1,4,5 uploader for Mac? That should be 64 bit.

Regards,
Rob

@dittohead
Copy link

dittohead commented Feb 16, 2024

@robouden, thats for 1.4.5
I pull Resources folder and replace avrdude, with fresh one, but now got problem with

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

UPD: resolved with adding DTR line

@robouden
Copy link
Contributor

robouden commented Feb 16, 2024 via email

@dittohead
Copy link

dittohead commented Feb 16, 2024

@robouden

I just try to start avrdude from 1.4.5 uploader, but get:

bad CPU type in executable: ./avrdude

Quick googling says, that is 32bit app try to be runned in x64 env. for ARM macbooks this can be fixed with installation Rosetta2, but for Intel powered MBs this is solution is not suitable.

Quick way to fix:

  1. Unpack 1.4.5 uploader
  2. cd ./Resources/bin
  3. Put into /bin fresh avrdude and avrdude.conf (I take from Arduino app v6.3, trying using v7.3 from brew , but it don't have config for arduino programmer in avrdude.conf, and config from 1.4.5 uploader not suitable for 7.3)
  4. cd ..
  5. chmod +x script
  6. ./script
    ...
    Voila!

Or you can publish updater with fresh avrdude : )

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