I can not reproduce your error here. My guess is when you changed the *.inc to use the internal OSC something else got changed?
Post the configs .
I can not reproduce your error here. My guess is when you changed the *.inc to use the internal OSC something else got changed?
Post the configs .
Dave
Always wear safety glasses while programming.
Several years ago, Microchip had erroneously called that bit _FCMEM_OFF_1H.
I think mister-e pointed it out to me.
You could ...
- Rename your config bit to that.
The bit is in your c:\pbp\18F4550.INC file
- Correct the misspelled bit in Microchip's c:\program files\microchip\mpasm suite\P18F4550.inc file.
- Update MPLAB and it should go away.
http://www.microchip.com/stellent/id...&part=SW007002
If someone has a PBP version prior to 2.60 ...
Use this one instead ... (MPLAB V8.15a)
http://melabs.com/support/mplab_old_versions.htm
Last edited by Darrel Taylor; - 30th November 2010 at 07:21.
DT
Code:;**************************************************************** ;* 18F4550.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 03/20/09 * ;* Version : 2.60 * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F4550.INC" ; MPASM Header __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H __CONFIG _CONFIG2L, _PWRT_OFF_2L & _BOR_ON_2L & _BORV_3_2L & _VREGEN_ON_2L __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H __CONFIG _CONFIG3H, _CCP2MX_ON_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 32
Ok I changed them all to _FCMEN.
Now my led does not blink anymore...but the error is gone!
That is what you had ??
Error[113] c:\pbp\18f4550.inc 21 : Symbol not previously defined (_FCMEN_OFF_1H)You code appears that you want to use the internal OSC but the configs show an external.Now my led does not blink anymore...but the error is gone!
Try this
_FOSC_INTOSC_HS_1H
in place of
_FOSC_HSPLL_HS_1H
You can go to the MPASM Suite in program files\microchip, look at the *.inc file there to see all of the config options. Do not modify that file.
Dave
Always wear safety glasses while programming.
Thank a bunch...I changed the MPASM file back to FCMEM and made the PBP .INC to match, also set it to the internal OSC as you showed.You code appears that you want to use the internal OSC but the configs show an external.
Try this
_FOSC_INTOSC_HS_1H
in place of
_FOSC_HSPLL_HS_1H
You can go to the MPASM Suite in program files\microchip, look at the *.inc file there to see all of the config options. Do not modify that file.![]()
Are you up and running now?
Dave
Always wear safety glasses while programming.
Bookmarks