Jump to content
Sign in to follow this  
Mike Schafer

Boostc Multiplication

Recommended Posts

PIC18F4620 is the target. 1.7 Alpha release.

 

The following code compiles but gives a linker error.

 

#include <system.h>

 

void main(void)

{

short temp2;

short temp3;

short temp4;

temp2 = 4;

temp3 = 5;

temp4 = temp2 * temp3;

}

 

Linker says:

 

Var not found id:0xFF000004

Failed

Exit code was -1. [No error]

 

What am I missing?

Thanks.

Share this post


Link to post
Share on other sites

Mike,

 

Its a mistake in the header file for the PIC18F4620.

 

locate the PIC18F4620.tdf file, its in the config folder.

Open the file in a text editor, and make the following change.

 

RegisterSF PROD

{

Description = "PROD","";

Address = FF3h;

}

 

should be:

 

RegisterSF PRODL

{

Description = "PRODL","";

Address = FF3h;

}

 

Regards

Dave

Share this post


Link to post
Share on other sites
Mike,

 

Its a mistake in the header file for the PIC18F4620.

 

locate the PIC18F4620.tdf file, its in the config folder.

Open the file in a text editor, and make the following change.

 

RegisterSF PROD

{

    Description = "PROD","";

    Address = FF3h;

}

 

should be:

 

RegisterSF PRODL

{

    Description = "PRODL","";

    Address = FF3h;

}

 

Regards

Dave

 

Thank you. Solved the problem.

 

Mike

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