How do I generate a S-record file of the executable?

eTPU_C

To generate an S-record executable file, do the following:

  1. Open your project in BCLIDE.

  2. Choose Project|Properties, and click on the Compiler Properties tab.

  3. In the Hex Dump File dropdown box, choose either "S1", "S2", or "S3" for the appropriate S-record output.

  4. Ensure that the command line option +delf is not present in the Additional Options below.

  5. Click OK, and compile your project as usual.

If you're not working within BCLIDE, add +dS1 or +dS2 or +dS3 to the compiler command line.

This will generate an S-record file for the entire executable.

The file will be zero-based and a complete executable, as it is generated from eTPU's point of view. To extract any pieces out of the file or alter it in other ways (such as changing the base address of the file), you'll need to use an external tool.