Open cw1812 opened 1 year ago
Hi,
What Mac OSX version?
Regards, rob Oudendijk
On Sat, Jun 17, 2023 at 5:46 PM cw1812 @.***> wrote:
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:
- /dev/tty.usbserial-AQ00PL19
One relevant port so selecting it automatically : /dev/tty.usbserial-AQ00PL19
- 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
— Reply to this email directly, view it on GitHub https://github.com/Safecast/bGeigieNanoKit/issues/72, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKSVNWME7X476257UF5H7TXLVVDHANCNFSM6AAAAAAZKDE3GQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
got same on 14.2.1 intel
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
@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
Arsen,
You do seem to understand a bit about programming. Can you try to extract the binary and use avrdude to flash the Nano?
Regards Rob Oudendijk
On Fri, Feb 16, 2024 at 4:43 PM Arsen @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/Safecast/bGeigieNanoKit/issues/72#issuecomment-1947896280, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKSVNUV42ZV4SAVGARK7QTYT4EYXAVCNFSM6AAAAAAZKDE3GSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXHA4TMMRYGA . You are receiving this because you commented.Message ID: @.***>
@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:
cd ./Resources/bin
/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)cd ..
chmod +x script
./script
...
Voila!Or you can publish updater with fresh avrdude
: )
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:
One relevant port so selecting it automatically : /dev/tty.usbserial-AQ00PL19
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