CN / EN
Doc Feedback
Thanks for your interest, welcome to contact us.
Thanks for your feedback

Downloading .hex Files to Flash

After .hex files are generated, you need to download these files to Flash. Specific steps are provided below:

  1. Configure Keil Flash programming algorithm.
    1. Copy the GR5xxx_16MB_Flash.FLM in SDK_Folder\build\keil to Keil_Folder\ARM\Flash.
    2. Click (Options for Target) on the Keil toolbar, open the Options for Target ‘GRxx_Soc’ dialog box, and select Debug tab. Click Settings on the right side of Use: J-LINK/J-TRACE Cortex.
      Figure 23 Debug tab
    3. In the Cortex JLink/JTrace Target Driver Setup window, select Flash Download. In the Download Function pane, you can set the erase type and check optional items: Program, Verify, and Reset and Run. Default configurations of Keil are shown below:
      Figure 24 Choosing Download Function
      Note:

      If the Bootloader is in Mirror mode, you should change the erase type to Erase Full Chip.

    4. Click Add to add the GR5xxx_16MB_Flash.FLM to the Programming Algorithm.
      Figure 25 Adding GR5xxx_16MB_Flash to Programming Algorithm
    5. Configure RAM for Algorithm, which defines address space to load and implement the programming algorithm. Enter the start address of RAM in GR551x in the Start input field: 0x30000000. Enter 0xF000 in the Size input field.
      Figure 26 Settings of RAM for Algorithm
    6. Click OK to save the settings.
  2. Download the .hex file.

    After completing configuration, click (Download) on the Keil toolbar to download the .hex file to Flash. After download is completed, the following results are displayed in the Build Output window of Keil.

Note:

During file download, if “No Cortex-M SW Device Found” pops up, it indicates the SoC may be in sleep state currently (the firmware with sleep mode enabled is running), so the .hex file cannot be downloaded to Flash. In this case, developers need to press RESET on the GR5515 SK Board and wait for about 1 second; then click (Download) to re-download the file.

Figure 27 Download results

Scan to follow

Open WeChat, use "Scan" to follow.