This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ACCESS SOURCE CODE of MCU msp430 ez430-F2013

Hello

I'm trying to access the source code of an already programmed MCU

Does aynone know how can I do that?

Thanks

  • Hi Joaquim,

    If you don't have access to the original source code files, then the short answer is "no".

    However, you can still get a "disassembly" of what's already on the controller, but that may or may not be useful to you (unless you're doing instruction level debugging or the like). You just have to set the debugger to "Debug without Downloading" (for IAR), and browse the memory in Disassembly view, or dump and disassemble the flash contents.

    Tony

  • Hi,

    if you mean the souce code in C the answer is no. The compiler produces a fast and/or small machine code and therefore most of the inital structure will be lost and it is very complicated to get your(?) source code back. What you can do is to read the contents of flash memory (but only if the security fuse is not blown or if it is and the msp has a boot strap loader you know the password) and disassemble it. The result will be an assembler listing which will be somehow difficult to understand without any comments (and an optimizing compiler also produces "magic" assembly.

    So best way is to get the code from the author :-)

  • Jan said:
    without any comments

    Also without any symbolic names for functions, variables, types, constants, etc, etc,...

    Jan said:

    So best way is to get the code from the author :-)

    Indeed.

    Or write your own code!

**Attention** This is a public forum