Jump to content
Sign in to follow this  
marcob

I Don't Know If It's A Bug

Recommended Posts

Hi,

I'm writing code for PIC16f876 with BoostC and I've seen a strange thing: when I debug the code and I press the "Reset button" it appears the sentence "Can't locate source line for the current instruction". Then, when I use the "Step Over" Command the same sentence appears for 3 times, and then the debug starts correctly. Do you know why?

 

Another request: do you know why I'm permitted to write only 4k of code for this PIC instead of the 8k that can be used with 16f876?

 

Thank you, bye

marcob

Share this post


Link to post
Share on other sites
...I'm writing code for PIC16f876 with BoostC and I've seen a strange thing: when I debug the code and I press the "Reset button" it appears the sentence "Can't locate source line for the current instruction". Then, when I use the "Step Over" Command the same sentence appears for 3 times, and then the debug starts correctly. Do you know why?
Debugger can't find corresponding source line for the current assembly instruction. It's hard to say why without looking on your code and project settings.

 

 

Another request: do you know why I'm permitted to write only 4k of code for this PIC instead of the 8k that can be used with 16f876?
The limitations depend if you use registered version and what kind of license you have. For no technical limitations you need Pro or Full license.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

marcob,

 

I'm writing code for PIC16f876 with BoostC and I've seen a strange thing: when I debug the code and I press the "Reset button" it appears the sentence "Can't locate source line for the current instruction". Then, when I use the "Step Over" Command the same sentence appears for 3 times, and then the debug starts correctly. Do you know why?

 

This is probably because you have the "skip over startup code" option disabled.

When you start your program in the debugger its execution at the reset location, no source code exists for this and a few of the following instructions, so you will see the "Can't locate source line for the current instruction" message. This message will no longer appear once execution reaches the void main() function.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...