Hi @saranbabu
I hope you are doing great!
Regarding: jump from bootloader to application area
We can take a look at the implementation made by Flashloader and mcuboot_opensource SDK examples.
For example the jump_to_application() function from the Flashloader project . The main goal of that function is to disable peripherals, update the vector table and call a function pointer to application entry point. However please refer to complete project for reference.
Regarding: how to switch from application to bootloader section
My first response is that you may use a similar a jump operation than the one from custom bootloader to application. However, feel free to let know if you mean to jump to ROM bootloader from application or if you can elaborate further.
Regarding : In bootloader code I can access the internal flash memory both read and write by using the ROM API.
I understand here that you are making use of the bootROM API functions, correct? If yes, here is a tip, do not forget to leave sufficient space for SRAM OC for the ROM execution , at least 64 KB. You can refer to AN12077.
All the best,
Diego