PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 Next > End >>
Re:USB Bootloader
Date: 2006/11/15 22:19 By: NAB Status: Visitor  
 
Thanks for your reply and for your offer, we'll see where this project goes.

I would just like you to clarify your answer if you could.
We're not talking about having to reserve particular memory addresses, just reserving enough free RAM to allow our firmware to grow...right?

Currently, the Memory Usage Gage indicates I have used 10000 bytes out of 16384 bytes for program memory and 973 bytes out of 2048 bytes for data memory. How will this change with the addition of a bootloader and how much should I assume we will need for USB development? If you don't know then just take a wag at it !

TIA
reply | quote

Re:USB Bootloader
Date: 2006/11/15 22:40 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Hi TIA,

This is a bit of a guess, but from one of my compiles I would be looking at around 1700 for the program memory and 350 for the data memory. You will need this for the boot loader and for the usb code, so in total, 3400 and 700 respectively would be my estimate.

If you take a look in the linker files with the microchip demo code, you will be able to see the memory break down, I would try and avoid the usb areas, although I can't see any reason why these can't be moved around, it just might complicated things later on, if you try to integrate the microchip usb code into your application.

Mat
reply | quote

Re:USB Bootloader
Date: 2006/11/15 23:17 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Forget that, i'm being really stupid its late here in the UK (23:12) and my brain wasn't quite functioning right. Bank 4 of the RAM can be used for general purpose, however if you want to use the USB port then bank 4 will be required by the SIE (USB controller), as it is the dual port RAM, and therefore cannot be used for any other purpose, if the USB is being used. See section 5.3.1 of the pic18f4550 data sheet.

So rearrange your RAM usage around Bank 4 for the time being and that should help you out a bit later on.

Sorry about the mistake before, its been a long day.

Mat
reply | quote

Re:USB Bootloader
Date: 2007/07/11 15:16 By: Mike Status: Visitor  
 
Not an example as such because all the useful code is hidden in the dll!

Mike
reply | quote

Re:USB Bootloader
Date: 2007/09/26 21:50 By: anonymous :) Status: Visitor  
 
Hi 2 all
What is the SW2?
reply | quote

<< Start < Prev 1 2 3 Next > End >>
::post new topic::