In your programmer, do you have an option of reading actual configuration fuses and re-inserting it into the hex file?
----------------
In your programmer, do you have an option of reading actual configuration fuses and re-inserting it into the hex file?
----------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi Scott,
MPASM doesn't like it when you have config fuse settings in your source code,
and in the PBP device header file.
To insert them in your source you need to comment them out in 18F452.inc.
Open 18F452.INC in your PBP directory, comment these out, save it, then add
config fuse options in your source.
Now you can drop them into your source;Code:LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F452.INC" ; MPASM Header ;__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H ;__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H ;__CONFIG _CONFIG4L, _LVP_OFF_4L
I'm not familiar with the device programmer you're using, but make sure youCode:asm __CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H __CONFIG _CONFIG4L, _LVP_OFF_4L endasm
always erase the target before trying to program it.
Bruce,
The ICD-U40 is the CCS USB Programmer!
I have tried all that everyone suggested but it will not program the PIC18F452. It may be my version of PICBAsic Pro 2.43. I may rewrite the code with the CCS Compiler. I hate to start over since I have had everything working in PICBASIC Pro for the PIC16F877.
Thanks anyway,
Scott
Hi Scott,
Bummer. Have you contacted CCS? I beleive they have firmware updates for
their programmers. May or may not help, but I don't think there's any reason
to port over from PBP to CCS if it's just a problem with the programmer.
I know people get tired of hearing this one, but it's also a good idea to keep
PBP & MPLAB updated as well.
If it would help, I could send you a known working .hex file for a 452 compiled
with PBP. If it doesn't go in, then at least you're 100% sure it's your device
programmer, and CCS should be able to get you sorted out on that one.
I like/use the CCS compilers, but I don't use their programmers. MeLabs U2 is
all I use now. All my other programmers are gathering dust...;o}
Bruce, And i feel one of those is obsolete and no longer on the market![]()
His name begin with W and you already carry those in the past.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Bruce,
I have been looking at upgrading but timing is an issue here! I would like to test your sample .hex file just to see if it works. I will test this tonight and let you know. At least I will hopefully know were the problem is!!!
Thanks again,
Scott
Hi Scott,
No problem. Shoot me an email. I'll just respond with the .hex file in .zip
format back to you.
Let me know the osc frequency, and whatever config fuse settings you
prefer.
Scott,
Instead of using ICD-U software, try download and use MACH X software. But you need to use the newest ICDU software, and upgrade the firmware first prior of using the the new MACHX software.
Downloading step :
1. Open MACH X
2. Browse /open the *.hex generated by PBP
3. in the MACHX click CONFIGURATION/ID, then click on any
configuration hex number located in the left side row.
Do NOT change the number just click it, as if you want to change.
4. Then click SAVE AS button, save the *.hex to a new name
(whatever.hex)
5. Then click BURN CHIP
6. Trust this would work.
Bookmarks