![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Nope it still diddnt work...
What else to do? |
|
|
|
|
|
|
(permalink) | |
|
I googled and found some info but it only seems to apply to
Microsoft Windows XP Embedded SP2 But it goes like this: Quote:
Will do a bit more checking to see if I can find this for HOME or PRO. Which are you using ? |
||
|
|
|
|
|
(permalink) | |
|
This seems like a better bet:
"Group Policy" editor. Quote:
|
||
|
|
|
|
|
(permalink) |
|
no, It still isnt working...
WHY!!! I cant even open gpedit.msc... |
|
|
|
|
|
|
(permalink) |
|
It Works On My Other Computer!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
OK I followed the instructions. You run gpedit.msc That is you cllick on run from the start menu then type in gpedit.msc Not sure how how tried to open it. Maybe you got it right but could not tell from your post. I see that you are having better luck on another computer. Chances are you will hit another snag. Just be cool about it... please If you choose to go on to be an engineer or scientist you will run into things that do not work on a daily (some times seems hourly) basis. The drama just eats up time and raises the blood pressue. |
||
|
|
|
|
|
(permalink) |
|
My other computer has about 1 gig of total software and no internet, so it is a perfect canidate for C programming
I am going to program upstairs, because I have had way better chances upstairs. |
|
|
|
|
|
|
(permalink) |
|
Ok I have everything working, but I am recieving this error over and over:
Code:
Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Documents and Settings\user\My Documents\MPLABIDE\Hello World.asm.mcs". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "Hello World.asm" /l"Hello World.lst" /e"Hello World.err" Error[105] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 3 : Cannot open file (Include File "p 16F628A.inc" not found) Error[111] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 4 : Missing symbol Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 6 : Symbol not previously defined (STATUS) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 6 : Symbol not previously defined (RP0) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 8 : Symbol not previously defined (OPTION_REG) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 10 : Symbol not previously defined (TRISB) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 11 : Symbol not previously defined (STATUS) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 11 : Symbol not previously defined (RP0) Error[113] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 12 : Symbol not previously defined (PORTB) Error[173] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 15 : Source file path exceeds 62 characters (C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM) Halting build on first failure as requested. BUILD FAILED: Wed Oct 03 21:56:05 2007 |
|
|
|
|
|
|
(permalink) |
|
Well, I made good progress today...
1. Hooked up my HP laserjet 4 that I got for free (they have 3 others that I can have) 2. Connected Inchworm+ up to my other computer 3. Disabled FIFO buffers 4. Other little tasks. Cant wait until tomorrow to see where I get |
|
|
|
|
|
|
(permalink) |
|
Line by line
It is about to remove files from any previous build Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Documents and Settings\user\My Documents\MPLABIDE\Hello World.asm.mcs". Clean: Done. It is about to assemble "Hello World.asm" for the p16F628A the list file is "Hello World.lst" errors go to file "Hello World.err" Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "Hello World.asm" /l"Hello World.lst" /e"Hello World.err" It failed because it could not find the include file "p 16F628A.inc" Error[105] C:\DOCUMENTS AND SETTINGS\USER\MY DOCUMENTS\MPLABIDE\HELLO WORLD.ASM 3 : Cannot open file (Include File "p 16F628A.inc" not found) From Bill's Poster the 16F628A code Code:
;*** WDT reset toggles RB0 list p=16F628A include <p16F628A.inc> __CONFIG 0x3F34 include <p 16F628A.inc> You need to pay close attention. Computers do EXACTLY what you tell them. If you screw up by one space they crap out. |
|
|
|
|
|
|
(permalink) |
|
I did have that!
I fixed the code and it WORKS! I just gotta create a shorter directory and IT IS ALIVE!!! |
|
|
|
|
|
|
(permalink) |
|
That allows it to build.
Does it program and blink the LED ? |
|
|
|
|
|
|
(permalink) |
|
No, I keep getting the error that it doesnt have a valid target Device.
Sorry about blowing up, it appeared that the problem was human error |
|
|
|
|
|
|
(permalink) |
|
Here is my code:
Code:
;*** WDT reset toggles RB0 list p=16F628A include <p16F628A.inc> __CONFIG 0x3F34 org 0 bsf STATUS, RP0 movlw b'00001110' movwf OPTION_REG movlw b'11111110' movwf TRISB bcf STATUS, RP0 xorwf PORTB, f sleep end Code:
Connecting to MPLAB ICD 2 ICD0019: Communications: Failed to open port: (Windows::GetLastError() = 0x2, 'The system cannot find the file specified. ') ICD0021: Unable to connect with MPLAB ICD 2 MPLAB ICD 2 Ready ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled. Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x83, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x83, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0x7) Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x83, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready Programming Target... ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2. Would you like to attempt to reconnect? Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x83, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed ICD0082: Failed MPLAB ICD 2 operation ICD0275: Programming failed. MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0x7) Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready Reading... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ICDWarn0038: When using auto-calculate write range, reads cover the entire memory range. Do you wish to continue? ...EEPROM ...Program Memory (0x0 - 0x7FF) .. Config Memory ...User ID Memory ...Read Succeeded MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7FF) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ...EEPROM ...User ID Memory ...Verify Succeeded Programming Configuration Bits ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded 04-Oct-2007, 17:18:01 MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7FF) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ...EEPROM ...User ID Memory ...Verify Succeeded Programming Configuration Bits ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded 04-Oct-2007, 17:25:49 MPLAB ICD 2 Ready Reading... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ICDWarn0038: When using auto-calculate write range, reads cover the entire memory range. Do you wish to continue? ...EEPROM ...Program Memory (0x0 - 0x7FF) .. Config Memory ...User ID Memory ...Read Succeeded MPLAB ICD 2 Ready Reading... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...EEPROM ...Read Succeeded MPLAB ICD 2 Ready Blank Checking... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x3FFF, Val Read = 0x0) ...Device not blank MPLAB ICD 2 Ready Erasing Target Device... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Erase Succeeded MPLAB ICD 2 Ready Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x1683, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ...Validating configuration fields ...Erasing Part ...Programming EEPROM Memory ...Programming Program Memory (0x0 - 0x7) ...Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ICD0200: Operation Aborted (Warning 51). ICD0275: Programming failed. MPLAB ICD 2 Ready Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation ICD0200: Operation Aborted (Warning 51). |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
You will not be able to program the chip till you get that fixed. The problem is either the way you have the ICD2 hooked to the target or the Inchworm itself. Most often it is the first. What are you doing for a programming cable since you had a broken connector in your kit? We need to see your schematic. If you are using the schematic from Bill's poster you should tripple check each and every connection. Use a Ohm meter, Till you get a device ID other then zero the code does not matter. EDIT: Quote:
Last edited by 3v0; 4th October 2007 at 11:53 PM. |
|||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Capacitor Charge/Discharge question | ThermalRunaway | General Electronics Chat | 25 | 12th August 2008 04:48 PM |
| Basic Transmission question | CamNuge | General Electronics Chat | 2 | 8th March 2006 10:08 PM |
| High speed data logging question | cubdh23 | Micro Controllers | 3 | 19th August 2004 11:54 AM |
| Data Logging question with high speed!!!! | cubdh23 | General Electronics Chat | 4 | 16th August 2004 06:33 PM |
| PBX question | waqar | Electronic Projects Design/Ideas/Reviews | 0 | 30th March 2003 06:21 PM |