56F8323 How to put code into bootsector...

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

56F8323 How to put code into bootsector...

1,583件の閲覧回数
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
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

512件の閲覧回数
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 件の賞賛
返信