56F8323 How to put code into bootsector...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56F8323 How to put code into bootsector...

1,241 Views
Tomppi
Contributor I
Hello,
 
I am targeting 56F8323 and ran out of PMem. I am using CW 8.2 with PE and have no Bootloader.
Can I put a part of the program into the Bootloader segment? How?
Does it need large memory model?

Thanks
Tamás


Message Edited by Tomppi on 2008-08-27 01:36 PM
Labels (1)
Tags (1)
0 Kudos
1 Reply

170 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
If you're using the small memory the size of code is limited:
— Compiler generates a more efficient switch table, provided that code fits into the range 0x0—0xFFFF.
 
There is a table showing the memory ranges:
Section  Small Model   Large Model
  Size  Range  Size  Range
CODE
(P: memory) 128 KB  0 - 0xFFFF  1 MB  0 - 0x7FFFF
DATA
(X: memory) 128 KB  0 - 0xFFFF  32 MB  0 - 0xFFFFFF
DATA
(X: memory)
character data 64 KB  0 - 0x7FFF  16 MB  0 - 0x7FFFFF
 
If small memory is limited for your project, we recommend you to switch to the large.
 
Regards
Pascal

 

0 Kudos