Burn .hex into Arduino UNO 3.

Hi; I have a .hex file written for ST CORTEX-M3 ( ST32F103C8 @ 72MHZ,32BIT). I want to burn it inside Uno 3. How I can burn it ? Will the file work properly after burning because Uno 3 has Atmega 328 and the file is written for ARM Cortex :roll_eyes:
After burning I have to remove the Atmega 328 chip from UNO 3 ?

Will the file work properly

No. It won't work at all. There's no point in even trying.

oh but why it will not work ?

Because the processor architecture, and machine language are entirely different. One is an 8 bit cpu, the other is 32 bit. Opcode lengths are different. Register sizes are different.

You can't just take binaries compiled for one architecture and run them on a different architecture.