Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Mplab 7.10 ????

Status
Not open for further replies.
Given that this has gone away

ICDWarn0027: The selected baud rate is not supported by your system. Chances are it will work anyway, but if persistent communications occur, consider switching to a lower baud rate.
ICD0019: Communications: Failed to open port: (Windows::GetLastError() = 0x2, 'Systemet finner ikke angitt fil.
It seems you are making progress.

Before you reprogram the chip see if you can get MPLAB to reprogram it. Under debugger or programer in the main menu "Download New OS" or similar.
 
The PL2303 is common but can be tough to get running with the ICD2. Try different drivers (I have one in my downloads section that may work)
 
blueroomelectronics said:
The PL2303 is common but can be tough to get running with the ICD2. Try different drivers (I have one in my downloads section that may work)
I will try that.
I have just spent some time checking that everything is wiredup correctly and it is according to the schematics that Lothar Stoltz has made... Im using a MAX232A with 0.1uF caps...

It looks like crap but it should work (based on the schematics)
 

Attachments

  • DSC_2453.JPG
    DSC_2453.JPG
    359.9 KB · Views: 147
Does anyone know wehter its possibel to check ansd see if my MAX232A is faulty?

I dont have acesse to a scope only a DMM
 
If you remove your 876A and short pins 17 & 18 of the socket, you should be able to run hyperterminal and see what you type in the window. Make sure you select the right com port and set flow control to "none". If you can see what you type then you max232 is working fine.

Mike.
 
Kryten said:
Does anyone know wehter its possibel to check ansd see if my MAX232A is faulty?

I dont have acesse to a scope only a DMM

hi Kryten,
Look at this jpg.

I have indicated the states on the drawing.

On the loop back test link [bottom of MAX] the two states are shown one above the other.

Disconnect from thePIC while testing.!

Any questions, ask..:)
 
Last edited:
Hmm i think i must test both versions today (need only a hyperterminal cous there isnt one i Vista :( )
 
Kryten said:
Hmm i think i must test both versions today (need only a hyperterminal cous there isnt one i Vista :( )

hi,
Look here:

**broken link removed**
 
have a look at the first page here and see that i have been there in order to test my USB-to-series-adaptor. ;)

But i vill try it again (maybe only the software to check the max232)
And i found a HyperTerminal for download.. so i think it will work..
 
A loopback test will only check the connections, the timing or latency is not checked. USB to RS232 is only an emulation and as such may not be 100%
In my experience only one USB to RS232 adapter works perfectly and that's the expensive Digi (I/O networks) ones.
 
blueroomelectronics said:
A loopback test will only check the connections, the timing or latency is not checked. USB to RS232 is only an emulation and as such may not be 100%
In my experience only one USB to RS232 adapter works perfectly and that's the expensive Digi (I/O networks) ones.

Well all that are sugested works so i geuss i dont have a USB-to-serial-adaptor that will work with the ICD2 (I do have a old desktop PC with Serial but I dont know wheter it still works) HMMMM what to do.
 
Kryten said:
Well all that are sugested works so i geuss i dont have a USB-to-serial-adaptor that will work with the ICD2 (I do have a old desktop PC with Serial but I dont know wheter it still works) HMMMM what to do.

If you want to finish the project see if you can get the desktop fired up. Last time I checked MPLAB still worked with win98. Might be handy to have around as a control box anyway.

Or buy the USB based PICkit2 or Junebug that will work with your laptop.
 
Well its part of my final project so Im going to have to get it working.
I allready hav a PICKit2 to run from my laptop (school bought it for me ;) ).

And as far as i know i can program tha 18f4550 from the PICKit2 som im actually ok there. Just need to get the ICD2 Clone working so I can write about it...
 
Kryten said:
Well its part of my final project so Im going to have to get it working.
I allready hav a PICKit2 to run from my laptop (school bought it for me ;) ).

And as far as i know i can program tha 18f4550 from the PICKit2 som im actually ok there. Just need to get the ICD2 Clone working so I can write about it...

There must be a working windows box with serial at school. They should have piles of them that are too slow for everyday use. MPLAB 7.X runs fine on 600 and even 400 MHz boxes if you do not have anything else running. I think I have 8.01 running on my 600MHz laptop. Can not check, it is out on loan.

When you find the box you still have to debug the ICD2. We have been over this many times in the days prior to PICkit2. As said earlier, do the loopback test without a processor first. Do it at the RX TX processor pins to check the wiring all the way to the processor. That with a working processor/crystal should allow the ICD2 connect even if other things are not quite right.

In general ICD2s are not too difficult to get working. I have an assortment of them including several powered by a single 1 amp voltage regulator set to 13V, I did not have to generate VPP from RS232.

Bill got me started with his Junebug and the ICD2s are mostly paperweights.
 
Last edited:
The loopback test without the PIC (read loop in the socket for PIC) works but im not able to connect to ICD2 (Im using bills Bootlader and have a external power on the ICD2)

But at my school they sell out the old computers that they er changing to teachers only ( i have tried to get one without any luck)

edit:
But thinking of it it might be the crystal that are not working properly. Is there any way to check it? or it might be an ide to actually connect it !?!?!?! ;) :rolleyes:
 
Last edited:
No I dont have a ocillioscope but making the connection between the PIC and Crystal seems to have made it work (Im so stupid at times)

After checking everyother connection but the crystals i couldnt see any faults but it works now so: Im happy (as Droopy says)
Eidt:
But school has and they ar currently rebuilding the electronics deparment so no luck there
 
Last edited:
from: **broken link removed**
**broken link removed**

Pin 4 on the RS232 is connected to MCLR/RESET on the PIC. If your USB->RS232 does not handle this line correctly the PIC will never come out of reset or never be reset.

The loopback has to work but with a broken RESET it the ICD2 will not function.
 
Last edited:
Well it works fine now. I just need a 47k (or 50k) Pot to set the pic that are beeing programmeds MCLR everything else works fine just now :D
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top