Flash from File: Downloading a file without the sources

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

Flash from File: Downloading a file without the sources

Flash from File: Downloading a file without the sources

Sometimes I only want to download a binary (.s19, .hex, .elf) without the need for the project and sources of it.

With the command line version of GDB you can do this, but there is as well a way in KDS to do this more interactively: Flash to File...

 

From the Run menu, select 'Flash from file...':

 

11847_11847.pngFlash from file.png

Then configure your connection (see KDS Debug Configurations (OpenOCD, P&E, Segger)).

11848_11848.pngFlash configuration.png

Beside of the settings in the Debugger Tab (which depends on the used debug interface (P&E, Segger, OpenOCD, see note1 below), you need to specify in the 'Main' tab two things:

  1. The name of the binary (e.g. elf file)
  2. A project name (see note2 below)

 

 

Note1:

there is a current issue in KDS v1.0.1beta that P&E is not listed as Debugging Connection. This is expected to be fixed in KDS V1.1 (GA).

 

Note2:

While the project is not really necessary, there is the issue in KDS v1.0.1beta that without a project name, you will get an error. So if you start with a new/empty workspace, you need to create a 'dummy' project first and to provide this as a project name.

 

Happy Flashing :-)

Labels (1)
Comments

How do I generate a .s19 file like in Codewarrior?

In Codewarrior I go into "ARM Linker" and "Output" and selct "Generate S-Record file". I don't see this option in KDS.

%3CLINGO-SUB%20id%3D%22lingo-sub-1121328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFlash%20from%20File%3A%20Downloading%20a%20file%20without%20the%20sources%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESometimes%20I%20only%20want%20to%20download%20a%20binary%20(.s19%2C%20.hex%2C%20.elf)%20without%20the%20need%20for%20the%20project%20and%20sources%20of%20it.%3C%2FP%3E%3CP%3EWith%20the%20command%20line%20version%20of%20GDB%20you%20can%20do%20this%2C%20but%20there%20is%20as%20well%20a%20way%20in%20KDS%20to%20do%20this%20more%20interactively%3A%20Flash%20to%20File...%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20the%20Run%20menu%2C%20select%20'Flash%20from%20file...'%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2211847_11847.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2211847_11847.png%22%20style%3D%22width%3A%20299px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117970i721602FF8361B2BE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2211847_11847.png%22%20alt%3D%2211847_11847.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Flash%20from%20file.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Flash%20from%20file.png%22%20style%3D%22width%3A%20299px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F43670iD1782F0A88A15195%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Flash%20from%20file.png%22%20alt%3D%22Flash%20from%20file.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThen%20configure%20your%20connection%20(see%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%2211213%22%20data-containertype%3D%2214%22%20data-objectid%3D%22100705%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-100705%22%20target%3D%22_blank%22%3EKDS%20Debug%20Configurations%20(OpenOCD%2C%20P%26amp%3BE%2C%20Segger)%3C%2FA%3E).%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2211848_11848.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2211848_11848.png%22%20style%3D%22width%3A%20943px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117971i7DF86161982DDEC6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2211848_11848.png%22%20alt%3D%2211848_11848.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Flash%20configuration.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Flash%20configuration.png%22%20style%3D%22width%3A%20943px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F43741i02C0F56EEE5FEEAC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Flash%20configuration.png%22%20alt%3D%22Flash%20configuration.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBeside%20of%20the%20settings%20in%20the%20Debugger%20Tab%20(which%20depends%20on%20the%20used%20debug%20interface%20(P%26amp%3BE%2C%20Segger%2C%20OpenOCD%2C%20see%20note1%20below)%2C%20you%20need%20to%20specify%20in%20the%20'Main'%20tab%20two%20things%3A%3C%2FP%3E%3COL%3E%3CLI%3EThe%20name%20of%20the%20binary%20(e.g.%20elf%20file)%3C%2FLI%3E%3CLI%3EA%20project%20name%20(see%20note2%20below)%3C%2FLI%3E%3C%2FOL%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote1%3A%20%3C%2FP%3E%3CP%3Ethere%20is%20a%20current%20issue%20in%20KDS%20v1.0.1beta%20that%20P%26amp%3BE%20is%20not%20listed%20as%20Debugging%20Connection.%20This%20is%20expected%20to%20be%20fixed%20in%20KDS%20V1.1%20(GA).%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote2%3A%3C%2FP%3E%3CP%3EWhile%20the%20project%20is%20not%20really%20necessary%2C%20there%20is%20the%20issue%20in%20KDS%20v1.0.1beta%20that%20without%20a%20project%20name%2C%20you%20will%20get%20an%20error.%20So%20if%20you%20start%20with%20a%20new%2Fempty%20workspace%2C%20you%20need%20to%20create%20a%20'dummy'%20project%20first%20and%20to%20provide%20this%20as%20a%20project%20name.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHappy%20Flashing%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1121328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flash%20from%20File%3A%20Downloading%20a%20file%20without%20the%20sources%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt's%20in%20the%20'Toolchain'%20tab%2C%20see%20%3CA%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F04%2F20%2Fbinary-files-for-the-mbed-bootloader-with-eclipse-and-gnu-arm-eclipse-plugins%2F%22%20title%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F04%2F20%2Fbinary-files-for-the-mbed-bootloader-with-eclipse-and-gnu-arm-eclipse-plugins%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EBinary%20(and%20S19)%20Files%20for%20the%20mbed%20Bootloader%20with%20Eclipse%20and%20GNU%20ARM%20Eclipse%20Plugins%20%7C%20MCU%20on%20Eclipse%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flash%20from%20File%3A%20Downloading%20a%20file%20without%20the%20sources%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20do%20I%20generate%20a%20.s19%20file%20like%20in%20Codewarrior%3F%3C%2FP%3E%3CP%3EIn%20Codewarrior%20I%20go%20into%20%22ARM%20Linker%22%20and%20%22Output%22%20and%20selct%20%22Generate%20S-Record%20file%22.%20I%20don't%20see%20this%20option%20in%20KDS.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎05-16-2014 04:31 AM
Updated by: