Jump to content
IGNORED

Sdrive Max Apple Mac batch file


Level42

Recommended Posts

Hey guys, I don't like typing in commands so I created a little batch file for the Mac to automatically execute the flashing of Sdrive Max.

 

Unzip the file and drag it into the folder where you have downloaded the eeprom_writer.hex and SDrive.hex files.

 

Sadly, you still need to manually find out what the name of your Arduino UNO's serial chip is though by opening terminal and entering:

 

cd /dev

ls

 

You get the list, find something looking like tty.wchusbserial620 or tty.usbmodem421 and replace it with what you found in the batch file by opening it in text editor. You only have to do this once though. Save the file.

​Now if you double click Flash Sdrice Max it should flash the Sdrive max completely.

 

If anyone has any idea how to autmatically figure out that tty. device name and integrate it into that batch file, that would be really nice.

Altneratively....could everyone with an SDrive-max please publish his tty.xxxxxxx device name here ? Maybe there are only a few and I could make a
simple selection menu. If the device doesn't exist (or if it's the wrong name) the programming simply will fail and there will be some error on the screen but nothing else happens so there is no harm in trying...

Edited by Level42
Link to comment
Share on other sites

OK....I think I did it :)

 

Please delete/ignore the message and batch file above.

 

This one should work without any "manual" labour :D

 

Be sure to have ONLY your Strive-Max Arduino Uno hooked up to your USB ports of your Mac. I am not sure if any other USB devices would interfere, but if it finds more serial (arduino?) ports, this batch script may fail (trying to flash the wrong device).

 

Unzip the attached file, move it to the correct folder where you downloaded the latest firmware version.

This depends on the display you used on your Sdrive Max, so drag 'Flash Sdrive Max Apple Mac' to either atmega328-iLi9341, iLi9329 or hx8347g

 

Now simply double click 'Flash Sdrive Max Apple Mac'

 

The batch file will print a welcome message and it figures out the name of the serial port to your Arduino Uno by itself and display it.

Next itflashes both files to it.

 

Note that this is my first attempt at writing a Mac batch file so bare with me if it doesn't work on your Mac/Arduino.... Please report any issues or successes....thanks !

 

Link to comment
Share on other sites

.....and It would be handy to actually attach the batch file.....

 

Well here it is.

 

I polished it a bit further:

- it will check to see if it finds the port name, if Sdrive Max is not connected it will report so and quit

- if it finds a Sdrixe Max (or something like it) it will show the port name it found and ask you if you want to flash to that port. Only a Y or y followed by an Enter will start the flashing process.

Again, do not connect more than just your Sdrive Max to your Mac to be sure this works.

Also, remove the SIO cable from your A8 before flashing from your Mac (nothing to do with my batch file, but still a MUST !).

Flash Sdrive Max Apple Mac.zip

Edited by Level42
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...