Jump to content
Sign in to follow this  
dbowden

16f616 Rom Size Error

Recommended Posts

Microchip says the 16F616 ROM (program space) is 3.5Kbytes, but

BoostC Optimizing C Compiler Version 6.87 (for PIC16 architecture) will only compile a program up to 1024 words (2Kbytes).

 

It gives the following output at the end of build:

 

Memory Usage Report

===================

RAM available:128 bytes, used:75 bytes (58.6%), free:53 bytes (41.4%),

Heap size:53 bytes, Heap max single alloc:20 bytes

ROM available:1024 words, used:759 words (74.2%), free:265 words (25.8%)

 

I'm using MPLAB, but get the same results from SourceBoost IDE.

 

I also get the same results for 16F610 PIC, which should be 2K bytes, so that one looks correct.

 

Thanks for any help,

 

David

Share this post


Link to post
Share on other sites
Microchip says the 16F616 ROM (program space) is 3.5Kbytes, but

BoostC Optimizing C Compiler Version 6.87 (for PIC16 architecture) will only compile a program up to 1024 words (2Kbytes).

 

It gives the following output at the end of build:

 

Memory Usage Report

===================

RAM available:128 bytes, used:75 bytes (58.6%), free:53 bytes (41.4%),

Heap size:53 bytes, Heap max single alloc:20 bytes

ROM available:1024 words, used:759 words (74.2%), free:265 words (25.8%)

 

I'm using MPLAB, but get the same results from SourceBoost IDE.

 

I also get the same results for 16F610 PIC, which should be 2K bytes, so that one looks correct.

 

Thanks for any help,

 

David

 

Ha - found it. There's a file "PIC16F616.TDF" in C:\Program Files\SourceBoost\config which contains the memory specs for the chip. If you change line 19 from:

AddressRange = 0000h -> 03FFh;

to

AddressRange = 0000h -> 06FFh;

it now works properly.

 

David

Share this post


Link to post
Share on other sites
Ha - found it. There's a file "PIC16F616.TDF" in C:\Program Files\SourceBoost\config which contains the memory specs for the chip. If you change line 19 from:

AddressRange = 0000h -> 03FFh;

to

AddressRange = 0000h -> 06FFh;

it now works properly.

PIC16F616 has 2048 words of program memory, so it should be:

AddressRange = 0000h -> 07FFh;

 

This will be corrected in the next release.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
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  

×