CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

18F2550 vs 18F27J53 Bootloader size...

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
spilz



Joined: 30 Jan 2012
Posts: 220

View user's profile Send private message

18F2550 vs 18F27J53 Bootloader size...
PostPosted: Mon Jun 08, 2015 6:04 am     Reply with quote

hello,

I'm using CCS usb bootloader on 18F2550 for a while, and it works well.
the usb bootloader takes : ROM 19% RAM 24-30%

I'm trying to use a 18F27J53 with the same usb bootloader, and it takes :
ROM 5% RAM 39-42%

I don't understand why the RAM increase instead of decrease.

Is it normal ?

thanks for your help

Spilz
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

Re: 18F2550 vs 18F27J53 Bootloader size...
PostPosted: Mon Jun 08, 2015 6:30 am     Reply with quote

spilz wrote:
I'm using CCS usb bootloader on 18F2550 for a while, and it works well.
the usb bootloader takes : ROM 19% RAM 24-30%

I'm trying to use a 18F27J53 with the same usb bootloader, and it takes :
ROM 5% RAM 39-42%

I don't understand why the RAM increase instead of discrease.

Is it normal ?


Without looking at how much RAM is on each PIC, I dont know if it's "normal" but certainly sounds reasonable. To be honest, I'd expect a well written bootloader to take the maximum advantage of the RAM available to it. With more RAM, I'd expect it to buffer more data and write and verify in larger chunks.

You see, it doesn't matter how much RAM the bootloader uses; the application will re-use all of it. Only the ROM used by the bootloader matters, as the code has to live alongside the application code. WiIth RAM, however, either the application uses it, or the bootloader uses it, but they NEVER run at the same time.
spilz



Joined: 30 Jan 2012
Posts: 220

View user's profile Send private message

PostPosted: Mon Jun 08, 2015 7:00 am     Reply with quote

thanks for your reply,

PIC18F2550 :
- Program Memory : 32K (ROM?)
- SRAM : 2048 (RAM?)

PIC18F27J53 :
- Program Memory : 128K (ROM?)
- SRAM : 3.8K* (RAM?)

*Dual access RAM for USB and/or general purpose use

So if I understand well : RAM is bigger in PIC18F27J53

I think you're right about RAM use, as it's never at the same time, it doesn't mater,
But I prefer asking Smile

thanks for your help
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group