Difference between revisions of "Flashing Infineon PSoC Creator output data files with J-Flash"

From SEGGER Wiki
Jump to: navigation, search
(Created page with "To be able to flash the Cypress PSoC Creator data files e.g. .hex with J-Flash they first need to be modified. == PROBLEM == Cypress PSoC Creator adds a checksum at the end o...")
 
(Alternative via CL)
Line 18: Line 18:
 
To delete the unwanted range via command line the following can be used:
 
To delete the unwanted range via command line the following can be used:
   
JFlash.exe -openprj"C:\Work\SampleProject.jflash" -open"C:\Work\PSocOutput.hex" -delrange0x90300000,0x90300001 -auto
+
''JFlash.exe -openprj"C:\Work\SampleProject.jflash" -open"C:\Work\PSocOutput.hex" -delrange0x90300000,0x90300001 -auto''

Revision as of 18:17, 27 February 2018

To be able to flash the Cypress PSoC Creator data files e.g. .hex with J-Flash they first need to be modified.

PROBLEM

Cypress PSoC Creator adds a checksum at the end of the ouput file at for example 0x9030 0000 - 0x9030 0001 This checksum is only needed for the IDE and not for J-Flash. If you try to flash that file with J-Flash you will get an error message that the selected data does not fit into the selected flash sectors.

SOLUTION

  1. Open the data file with J-Flash
  2. Select Edit->Delete Range...
  3. Enter Start:0x9030 0000 End: 0x9030 0001
  4. Press OK and save the edited data file

You should now be able to program the file successfully.

Alternative via CL

To delete the unwanted range via command line the following can be used:

JFlash.exe -openprj"C:\Work\SampleProject.jflash" -open"C:\Work\PSocOutput.hex" -delrange0x90300000,0x90300001 -auto