nRF Connect with VSCode: how to generate assembly files

I'm using the latest nRF Connect (2.4.2) in VSCode (on Windows) to develop an application on an nRF52840.  I would like to look at some of the assembly code generated by the compiler.  How do I do that in this environment?  With gcc I would use the -S switch; is it the same here?  Where do I add this switch--Build Configuration (how?), CMakeLists.txt (what would the magic incantation be?), or somewhere else?

I can't easily hook up my j-link pod and just look at it in the debugger, since it requires a fair amount of mechanical disassembly.

Thanks in advance for any info.

--mkj

Parents Reply Children
  • Hi mkj,

     

    Glad to hear that this helped!

    mkjones said:
    once I remembered to add the "nRF Connect" shell in VSCode, since it has the correct PATH already set up

    Sorry about this, I should have added a c:\PATH\to\ in my former post. You can do an absolute path towards objdump if you want to add this to some sort of "post build operation" in vscode, , ie. : c:\ncs\toolchains\...\bin\arm-zephyr-eabi-objdump <file.elf>

     

    Kind regards,

    Håkon

Related