|
![]() MCU User Forum
![]() Bootloader C8051F120 TCP/IP library help
|
| next newest topic | next oldest topic |
| Author | Topic: Bootloader C8051F120 TCP/IP library help |
|
panacea New Member |
Hi, I written a Bootloader code for C8051F120. I am able to update firmware through ethernet. I have changed the start address to 0x2800 instead of 0x2400. All codes are working fine , but if I try to create application code for TCP/IP, I need to change the library files of TCP/IP with start address of 0x2800. Can any one send me the library files for the bootloader with start address of 0x2800. Thanks, IP: Logged |
|
Tsuneo Member |
> have changed the start address to 0x2800 instead of 0x2400. You mean that the code size of your bootloader has increased, compared with the original for 'F34x. When the start address is altered, the TCP/IP library should be re-compiled, as you've pointed out. The library files contain fixed address reference for redirected interrupt vectors, starting from 0x2400. Instead of moving the start address, split the bootloader mapping into two areas at top and end on the program FLASH. And then, you can do without touching to existing libraries. It is done by linker flag. Tsuneo IP: Logged |
|
panacea New Member |
Thanks for your reply TSUNEO, Can you guide me how to change the linker settings to split the bootloader into two parts. Venkat Raju IP: Logged |
|
Tsuneo Member |
I'll explain the idea on the original bootloader for 'F340. Because of banked code space, the procedure for 'F120 is much elaborated than 'F340. The project of original F34x_Ethernet_Bootloader apply these linker flags. RS(256) PL(68) PW(78) CODE(?CO?CRC(0xFA00)) The last directive, CODE(?CO?CRC(0xFA00)), places CRC table at 0xFA00 CODE(0 - 0x23FF, 0xF800 - 0xFBFE ?CO?CRC(0xFA00)) Linker allocates the code as follows. In this way, you can split the bootloader code into two parts, so that the range (0x2400 - 0xF7FF) is reserved for the application firmware. For the details of CODE directive, see Keil linker manual. CODE Linker Directive You'll find more examples in this SiLabs KB, Tsuneo IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?