Jump to content


Pic18F24J11 Probramming Error?

1 reply to this topic

#1 mityeltu



  • EstablishedMember
  • Pip
  • 81 posts
  • Gender:Male
  • Location:Tennessee
  • Interests:Communications

Posted 02 November 2016 - 03:19 PM

I have been trying for the last couple of days to program the 18f24j11. I know there are some problems with the header file included in boostc, but I think I have fixed them. Section of header file is attached.


However, fixing the header file doesn't fix the chip. I still have no life. Program is primitive, but I am just trying to get anything to work. I am using pickit2 to program the chip. No errors when programming.


Is there anything you guys see that is wrong with the code/header? Is there some wierd way to program the chip that is different from other 18f chips? I am using 3.3v power supply, so I know that is not the issue.


Any thoughts on this?

Attached Files

#2 joli



  • EstablishedMember
  • Pip
  • 81 posts
  • Gender:Male
  • Location:Portugal

Posted 22 November 2016 - 04:02 AM

try this out instead of your #pragma's:

#pragma config OSC = INTOSCPLL      // Internal osc PLL can be enable/disable
#pragma config CP0 = OFF            // Program memory is unprotected
#pragma config FCMEN = ON           // Enable osc monitor
#pragma config WDTEN = OFF          // Watchdog OFF
#pragma config WDTPS = 512          // 1:512
#pragma config XINST = OFF          // Disable extended instruction set (mandatory)
#pragma config IOL1WAY = OFF        // works either way

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users