Go Down

Topic: Simple hex uploader (Read 186 times) previous topic - next topic

kenny_-_

Apr 22, 2016, 08:56 am Last Edit: Apr 22, 2016, 09:37 am by kenny_-_
Created a simple hex uploader with the use of avrdude.

I think the ones I've found online are to complicated for non developers to work with.
I use this to give to people to program my boards without having to give my source.

(This if just for the 328p-pu(uno) for now)

Hope someone will enjoy...

dwalsh62

Targeting windows, what a shame, useful would have been source to target other environments because not all people use windows.

While I have it on a couple of desktops and laptops, other than a machine to browse the internet or google something, due to windows it's a waste of hardware.

CrossRoads

Quote
Targeting windows, what a shame, useful would have been source to target other environments because not all people use windows.
'course, us Windows users making up 88.77% of market share could say the same about other target environments.
https://www.netmarketshare.com/operating-system-market-share.aspx?qprid=10&qpcustomd=0
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

And we use both at home - Windows for PCB creation & coding. Mac for browsing.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

dwalsh62

The issue is more based on the lack of flexibility in the package offered by the OP.

A developer who targets only a specific OS is one who has a narrow view of the world.

Surely the software isn't so proprietary that the source couldn't be provided so that it could be utilized by everyone and people like me wouldn't have to disassemble it to generate source.

It would have at least spawned improvements in the code/solution to the benefit of everyone.

Despite the environment, a disassembly using IDA-Pro shows me the code is rudimentary and it wouldn't hurt to rewrite some of the functions.

Basically it's a binary wrapper to execute avrdude with a pre defined hex file.

I've since made significant modifications to avrdude 6.1, libusb and zlib to make use of an embedded zip compressed hex file for a single executable solution that requires nothing but double-clicking but I still see no value in the app, basically it's moot since I can execute avrdude directly in ubuntu and OSX and specify the hex file to flash and I don't have to go through the effort of turning the hex file into compressed data for embedding requiring me to recompile for every time I change the firmware.

I fail to see why a simple terminal command couldn't be provided to flash the hex file or a batch file for winbloze users instead of a app that does it for you in windows only thus offending linux and OSX users who can't update the firmware in his goods.

It's not like he combined his source with the avrdude source to target his specific device, reducing avrdude source to it's bare minimum, targeting a single serial device with values preset and the payload embedded would have been a better approach over a binary wrapper and I guess this thought didn't cross his mind as a better solution or he's never considered such a solution.

Maybe he'll take some of what I said in this post as a direction to move his app, you don't need libusb to be a DLL if you embed the functions in the app, same as zlib, I've used this embedded decompression technique to do make self sustaining apps and I'm sure I'm not the only one who's done this.

I'm done with the thread, there's nothing of value to me, good luck to everyone involved in it.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy