How to generate assembler output & map file from CW for Kinetis K60?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to generate assembler output & map file from CW for Kinetis K60?

1,562 Views
fastwalker
Contributor I

Hi All,

 

Basic qn., how do I configure CW to give me an assembler output also of a C file and generate a map file.  I tried selecting generate listing file in the assembler options it didn't seem to have any effect.

 

Thank you,

FW

Labels (1)
0 Kudos
Reply
1 Reply

560 Views
CrasyCat
Specialist III

Hello

 

According to the MCU_Kinetis_Compiler.pdf manual you need to add the option -S to the compiler command line to get a disassembly listing of the generated code.

 

If you are building from the IDE, just open the Project property dialog and go to page C-C++ Build > Settings > ARM Compiler > Language and add option -S to the Other Flags edit box.

 

For each source file being built, this will generate a file with extension .s in the build directory.

 

The build directory is specified on page C-C++ Build in edit box Build Directory.

 

CrasyCat