PDA

View Full Version : Microcode studio "device not found"



AndrewC
- 3rd September 2007, 20:40
I think I'm missing something really basic here. I've got a simple program that compiles easily with no faults in MPLAB. Open the file in meProg and it programs with no probs. I try it in Microcode Studio and I just get "Target device does not match selected device" when trying to program if MPASM is unchecked in the MCS Assembler options. If MPASM is checked it seems to think it can not find the c:\pbp\16f628a.inc

I've noticed that MPLAB is using MPASM v5.0.1 whereas MCS is using v02.15

Where do I tell MCS where to look for the right version assuming that is my problem ?
If not, what is the problem ?

MCS seems a much nicer programming tool than MPLAB but I can't get it to work :(

Andrew

srspinho
- 4th September 2007, 13:43
Hi Andrew,

I had this problem two times : the first time in my Desktop computer and the second one in my Notebook.

Both were fixed the same way :

When the MPLAB was installed on my computers, the directories used were :

C:\Program Files\Microchip\Docs
C:\Program Files\Microchip\MpAM
C:\Program Files\Microchip\MPASM Suite
C:\Program Files\Microchip\MPLAB ASM30 Suite
C:\Program Files\Microchip\MPLAB IDE
C:\Program Files\Microchip\MPLAB IDE Common
C:\Program Files\Microchip\Third Party

When I started using the Darrel Instant interrupts I had to change to MPASM, but he <Find Automatically> button found the MPLAB installed by the Proteus VSM. I think that MCS uses the first MPASM found on the Disk, and the 16f877.inc could not be found.

I had to change manually to (in my case) :

C:\Program Files\microchip\mpasm suite

And then, everything become ok !

I hope this could help you !

Bye

Sérgio

AndrewC
- 5th September 2007, 16:53
Hi Sergio,

That sorted out the MPASM version, thanks, but I'm still getting "Target device does not match selected device".

Andrew

malc-c
- 5th September 2007, 22:31
You are selecting the correct PIC in the dropdown list in MCS ?

The other thing you can do is copy all the .inc files from the Microchip folder to the PBP folder

AndrewC
- 7th September 2007, 20:46
You are selecting the correct PIC in the dropdown list in MCS ?

The other thing you can do is copy all the .inc files from the Microchip folder to the PBP folder

Selected the correct PICS but they come up as

Microcode Studio (3.0.0.5): 16F628A
Melabs programmer (4.20 beta): PIC16F628A

Does that matter ?

Rooting around what I find for the .INC files is:

PBP folder: M16F62XA.INC
MPASM Suite folder: P16F628A.INC

Again, does that matter ??