Jump to content
Sign in to follow this  
Guest Joe

Simulator Has Stopped Working

Recommended Posts

Guest Joe

< new porject, .c file only, 16F628A target >

 

#include <system.h>

unsigned char a = 5;
unsigned char b = 10;

void interrupt()
{
 while(a > 0)
 {
   nop();
 }
}

void main()
{
 tmr0 = 0xfe;   	 
 option_reg = 101b;
 intcon = 160;
 
 for(;;)
 {
   nop();
 }
}

 

Compile and link without error, hit simulator button:

 

Debugging...

 

Can't locate source line for the current instruction

 

Why doesn't it work?

 

Am i missing somthing?

 

I've tried several targets and none will simulate.

Share this post


Link to post
Share on other sites

Joe,

 

I can't reproduce this, it all works fine for me.

 

Maybe its how you are creating the project - what are the steps you are performing to create the project?

 

Please send a project demonstrating the problem to support@picant.com for further investigation.

 

Regards

Dave

Share this post


Link to post
Share on other sites
Guest Joe

I've sent the project to you. It was created by

 

project -> new -> empty with source.

 

Please let me know what you find.

Share this post


Link to post
Share on other sites

Joe,

 

This is a problem that has been reported before - I can't seem to find the original post though.

 

Because we currently use a coff file format compatible with HiTech PIC C, we have a problem, files name less than 5 characters don't work inside the coff (debug file) generated.

 

Regards

Dave

Share this post


Link to post
Share on other sites
Guest Joe

Can a more descriptive error mesage be added to the sim output?

 

Somthing like:

 

Cannot open file (maybe filename < 5 chars)

 

 

or somthing?

 

- Just a sugestion.

 

 

Joe

Share this post


Link to post
Share on other sites

Joe,

 

This limitation is due to be fixed, at the same time as we make coff output compatible with MPLABs.

 

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...