1
\$\begingroup\$

Is it possible to flash and run a compiled code (.hex-file) for a specific Microcontroller (for example STM32F205RC) on a Microcontroller from the same family with bigger flash-memory and RAM (without creating a new compiled version.)?

Example: .hex for STM32F205RC (128K flash memory and 64K RAM) on STM32F205RE (512K flash memory and 128K RAM)

(it is obvious that the larger memories is not used)

\$\endgroup\$
2
  • \$\begingroup\$ Are you sure is only difference between two MCU is a size of programm memory? You need to compare datasheets ? \$\endgroup\$
    – user263983
    Commented Feb 8, 2021 at 13:24
  • \$\begingroup\$ st.com/resource/en/datasheet/stm32f205rc.pdf Page 167 \$\endgroup\$
    – kimliv
    Commented Feb 8, 2021 at 13:56

1 Answer 1

2
\$\begingroup\$

Datasheet says the MCUs are fully compatible, only memory size is different. The compiler should only use different linker script to change the RAM and Flash memory sizes. The compiled binaries should be identical, and you can also verify this.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.