Error when sending program to P18F8680

Find out how to setup your programmer's software and how to solve many common problems.

Moderator: phalanx

Post Reply
mklllsupra
Posts: 4
Joined: Fri May 09, 2014 8:51 am

Error when sending program to P18F8680

Post by mklllsupra » Fri May 09, 2014 8:59 am

Hi, first off I have already looked through some posts and have not found anything that pertains to me, if you know of one that might help please let me know. I am not new to C code but do not have a lot of experience. I am in school learning embedded systems using the SSE8680 dev board(P18F8680). I am using the MPLAB IDE 9 with the C18 compiler and Tera Term. The codes build just fine and no errors in MPLAB.

The issue at hand is when I send the file to the chip instead of showing (................S) it shows

Ready to load
.EEEEEEEF <------------ (NOT RIGHT)has anyone seen this before
Hit enter to reset
PICMON 18F8680 v2.7.1 (c) 2004, Shujen Chen
Hit any key to enter monitor: 2.1.0

Stack underflow! <---------(NOT RIGHT)
W=00 NozDc PC=0000:EFCC GOTO 0xFF98



Now I have done some other codes in C and they transfer just fine and work. I am looking for an explanation on stack underflow and how to fix it. I have no clue, I have looked at other forums and the data sheet and still have no clue what it means or how to remedy it. I will have to attach my code later as I'm at work and do not have it on me at this time.Thanks

mklllsupra
Posts: 4
Joined: Fri May 09, 2014 8:51 am

Re: Error when sending program to P18F8680

Post by mklllsupra » Sat May 10, 2014 5:01 pm

Ok so after reading quite a bit of the dev board manual I found this.

When attempt to download outside of the user program address, an “E” is printed and the
line is ignored. This usually happened when CONFIG registers are programmed.
Download cannot modify CONFIG registers.

This says why Im getting the E's when transferring my HEX file but I don't know what it means or how to fix it. The manual doesnt go into detail about it.

Thanks

skimask
Support Volunteer
Posts: 1244
Joined: Sun Nov 09, 2008 2:11 am
Location: Minot, N.D.

Re: Error when sending program to P18F8680

Post by skimask » Sat May 10, 2014 5:34 pm

What?
The so-called "instructors" can't figure this one out or what?
You answered your own question.
I ignore "one post wonders".

mklllsupra
Posts: 4
Joined: Fri May 09, 2014 8:51 am

Re: Error when sending program to P18F8680

Post by mklllsupra » Sat May 10, 2014 6:22 pm

No they can not as of now, my teacher is still trying to figure it out. Yes I did answer my own question to extent but don't know what to do about it. I haven't put in any CONFIG changes in my code.

skimask
Support Volunteer
Posts: 1244
Joined: Sun Nov 09, 2008 2:11 am
Location: Minot, N.D.

Re: Error when sending program to P18F8680

Post by skimask » Sat May 10, 2014 9:00 pm

And you can't find the one tab that allows you to CONFIGURE whether or not the compiler inserts the CONFIGUREation bits into the code itself?
Really?
I ignore "one post wonders".

skimask
Support Volunteer
Posts: 1244
Joined: Sun Nov 09, 2008 2:11 am
Location: Minot, N.D.

Re: Error when sending program to P18F8680

Post by skimask » Sat May 10, 2014 9:13 pm

config1.jpg
config2.jpg
config3.jpg
Last edited by skimask on Sat May 10, 2014 9:17 pm, edited 2 times in total.
I ignore "one post wonders".

skimask
Support Volunteer
Posts: 1244
Joined: Sun Nov 09, 2008 2:11 am
Location: Minot, N.D.

Re: Error when sending program to P18F8680

Post by skimask » Sat May 10, 2014 9:18 pm

config4.jpg
R...T...F...M...
I ignore "one post wonders".

mklllsupra
Posts: 4
Joined: Fri May 09, 2014 8:51 am

Re: Error when sending program to P18F8680

Post by mklllsupra » Sun May 11, 2014 8:30 am

No, I found it. I tried with the box unchecked and checked, with CONFIG set in my code and not in my code and didn't make a difference.

Post Reply