MSPM0G3519: upgrading firmware with the hex file received over bluetooh

Part Number: MSPM0G3519
Other Parts Discussed in Thread: MSPM0G3507

Hello, 

I am using MSPM0G3519 Launchpad and CCS 20.4. I am able to access the UART0 and UART1 as well as emulated EEPROM. I have connected a bluetooth module to UART1. I am able to receive the hex file of another code i.e. gpio toggle code through this UART1 and I am able to print it in the console connected to UART0. Now I want to upgrade the firmware. I am not understanding how to do this? Please give some idea and where I can find any example related to this. I got stuck in between. I want to upgrade the firmware after complete receiving of the hex file. Is it needed to store the file somewhere? What is the correct way of doing this. Please help me on this