DavidGriffith / minipro-import-test

An open source program for controlling the MiniPRO TL866xx series of chip programmers
GNU General Public License v3.0
3 stars 0 forks source link

Error opening device #129

Closed DavidGriffith closed 11 months ago

DavidGriffith commented 5 years ago

In GitLab by @alxgarza on Oct 3, 2018, 09:44

On I just installed mini pro on OS X 10.11.6 And am getting "Error opening device".

Is there something I am missing?

DavidGriffith commented 5 years ago

In GitLab by @radiomanV on Oct 5, 2018, 10:43

I'm not mac os user so i can't say what is wrong there. Maybe this is something related to device access permission? try to run minipro as superuser if you can.

DavidGriffith commented 5 years ago

In GitLab by @alxgarza on Oct 5, 2018, 10:45

After rebooting everything works great!

thanks

DavidGriffith commented 5 years ago

In GitLab by @radiomanV on Oct 5, 2018, 10:57

Great! if you want and have time please test my fork here: https://gitlab.com/radiomanV/minipro
I have added some features wanted by users. I have not submitted yet an merge request (i want to implement something new).
Thanks.

DavidGriffith commented 5 years ago

In GitLab by @alxgarza on Oct 5, 2018, 11:03

Hi,

I will test it.

Can you use intel hex files?

Can you program avr fuses?

Regards,

Alex

signature.asc

DavidGriffith commented 5 years ago

In GitLab by @radiomanV on Oct 5, 2018, 11:09

The hex files are not supported yet directly but with the help of miniprohex.
Regarding to avr fuses yes you can program them.

DavidGriffith commented 5 years ago

In GitLab by @alxgarza on Oct 5, 2018, 11:47

How do you program the fuses?

Is there a wiki?

DavidGriffith commented 5 years ago

In GitLab by @radiomanV on Oct 5, 2018, 12:16

You must supply a config file. Unfortunately this software have a bug reading or writing fuse config files. This is why i said to test my fork; i fixed this bug.
So to program fuses first you should read them like this:

minipro -p "atmega8" -r ./fuses.conf -c config

Then look at the fuses.conf file format and change the desired fuse value.
When you want to write the fuses back you should use the -e flag to skip erasing (if you omit it the avr will be erased first and then fuses will be programmed leaving the memory blank which is not desired).
So a write should look like this:

minipro -p "atmega8" -w somefile.bin -c code

and after that fuses:

minipro -p "atmega8" -w fuses.conf -c config -e

You can combine the two commands with &&

DavidGriffith commented 5 years ago

@radiomanV Could you submit a merge request based on what you have now that works?

DavidGriffith commented 5 years ago

This issue had me very confused as to exactly what the problem was. #135 finally clued me in and the problem is now fixed: garbage was being written to the terminal when it was partially opened for pager output and then minipro_open() aborted because no programmer was attached. So the terminal was left in an inconsistent state.

DavidGriffith commented 5 years ago

closed