EmbDev.net

Forum: µC & Digital Electronics PIC16F84 + minipro/linux (+ gpasm)


von lash (Guest)


Rate this post
useful
not useful
Hey all.

I Have a Minipro TL866II+ and would like to program a PIC16F84 with 
using linux. The only software I found that seems to work with this 
combination is https://gitlab.com/DavidGriffith/minipro . I've checked 
that the hardware and software is working together, by writing binary 
data to a 24C32:
1
$ dd if=/dev/urandom of=foo.bin count=8 bs=512 && ./minipro -p 24C32 -w foo.bin && ./minipro -p 24C32 -r bar.bin && diff bar.bin foo.bin && echo $?
2
8+0 records in
3
8+0 records out
4
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000526638 s, 7.8 MB/s
5
Found TL866II+ 04.2.103 (0x267)
6
Warning: Firmware is newer than expected.
7
  Expected  04.2.99 (0x263)
8
  Found     04.2.103 (0x267)
9
Erasing... 0.05Sec OK
10
Writing Code...  1.99Sec  OK
11
Reading Code...  0.61Sec  OK
12
Verification OK
13
Found TL866II+ 04.2.103 (0x267)
14
Warning: Firmware is newer than expected.
15
  Expected  04.2.99 (0x263)
16
  Found     04.2.103 (0x267)
17
Reading Code...  0.61Sec  OK
18
0

---

Then I tried to read from a chip already programmed (and verified 
working) with MPLABX;
1
minipro -p PIC16F84 -r out.bin

But: code was all zeros, config was all zeros and when specifying 
retrieve data it just fails on "async data transfer."

Browsing for clues, I found one place hinting that this chip needs to be 
programmed with ICSP. There's an ICSP connector on the programmer, but 
I'm not sure how this is supposed to work. With MPLABX I've used a 
PicKit3, and I tried to connect the board the PicKit ICSP plugs into and 
run with the ICSP option, but it doesn't make a difference.
1
minipro -p PIC16F84 -i -r out.bin

When writing to the PIC16F84, the progress indicator tells it's writing, 
but ultimately fails saying "Verification failed at address 0x0000: 
File=0x83, Device=0x00"


---

Any hints would be welcome, either on how to make this setup work, or 
alternative setups that could work that are not the proprietary PIC 
stuff.

Thanks.

von one (Guest)


Rate this post
useful
not useful
Microchip use intel hex as format to file .hex

$ minipro -p "PIC16F84" -f ihex -r read.hex

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.