Is there a way to download C files/project from embedded system

224 views Asked by At

I am asking this question in a hope that someone might have done this before.I want to download software from embedded system so that modification can be done in the software. Is it possible to do and how? Information I have for the system is : Platform : iMX7 ARM

Thank you

1

There are 1 answers

0
Lundin On

Since the job of a C compiler is to translate source code to machine code assembler before the program is downloaded in a microcontroller, then no, you cannot upload C code from it.

Also, for the past 20 years or so, "copycat" read protection of microcontrollers has been a standard feature. Meaning an on-chip hardware restriction that forces you to erase the flash before you can access it. So it might even be impossible to upload the raw assembler.

In case the MCU isn't protected and you have the original debugger files corresponding to the code downloaded, then decent debuggers can connect to the existing program "on the fly" and then view it together with the C source, without re-programming anything. (This is useful for investigating NVM changes and memory corruption.) But again, you would need access to the original files.