Hi
I didn't have a clear idea about how code will execute in different banks when function calls.
Assume : I have a USB Bootlodaer. It is size is 64KB(0x0000 to 0xFFFF). I have Application Firmware.it will reside in the remaining Flash area(0x10000 to 0x3FFFF). After power up If didn't press a Key, It will start to execute Application firmware(0x10000). For this I should do FMAP = 0x02,it will map 0x10000 to 0x17FFF code into uppper 32KB(0x8000 to 0xFFFF).So I should jump to 0x8000,it will start to execute Application Firmware. I am clear until this.
Incase if there is a function call in the application firmware and if that function resides at 0x18100 how can I come to know to map bank 3(0x18000 to 0x1FFFF) in FMAP = 0x03.
Thanks and Regards
Raja Sivasankaran
www.e-consystems.com