RSK+RZA1H
5. QSPI Boot Loader
R20UT2845EG0200
Rev.
2.00
Page 29 of 34
Mar 21, 2014
5.3
Generating a Binary File
Programming a user application requires the program file to be in binary format (.bin). By default the Debug
build is configured to generate ELF files with extensions .x and .mot while the Release build is configured to
generate an ELF file with extension .x and a binary file with extension .bin.
To generate a Debug build .bin file instead of a .mot file follow these steps:
1. In DS-5, click on the desired project under the ‘Project Explorer’ view.
2. From the menu bar select ‘File > Properties’.
3. In the Properties dialog select ‘C/C++ Build > Settings’
4. Change the ‘Configuration’ to debug, if it is not already selected.
5. Select the ‘Build Steps’ tab.
6. Change the ‘Post-build steps’ to:
arm-rz-eabi-objcopy -O binary ${ProjName}.x RZ_A1H_PTC_FIRST.bin&
7. Click
‘Apply’.
8. Click
‘OK’.
9. Rebuild the Debug configuration to generate the binary file.
5.4
Programming a User Application Program
Build the desired configuration of your application code or one of the provided sample code using the correct
QSPI load file (provided in the RZ_A1H_Tutorial_RSK sample code). Copy the following files from the
RZ_A1H_Tutorial_RSK folder to the root folder of your application:
LoadTutorialToQSPI.bat
LoadTutorialToQSPIDebug.Command
LoadTutorialToQSPIRelease.Command
Make the following changes, taking care not to add or remove spaces, to the line numbers in the
LoadTutorialToQSPI.bat file:
Line 4: Replace the word Tutorial with the name of your user application.
Line 32: Replace RZ_A1H_Tutorial_RSK with the name of your user application.
Line 52: Replace RZ_A1H_Tutorial_RSK with the name of your user application.
Line 73: Replace RZ_A1H_Tutorial_RSK with the name of your user application.
Lines 41-44 and 61-64 describes the operation of the Tutorial sample code, this can be changed to match the
user application’s operation.
Make the following changes, taking care not to add or remove spaces, to the line numbers in the
LoadTutorialToQSPIDebug.command and LoadTutorialToQSPIDebug.command files:
Line 10 and 11: Replace RZ_A1H_Tutorial_RSK with the name of your user application.
Run the LoadTutorialToQSPI.bat batch file.
The 'exec SetSkipProgOnCRCMatch=0' instruction in the command files checks if the boot loader program to
be loaded matches the existing boot loader code in the QSPI device. The 'loadbin' instruction will skip
programming if they match. A power cycle to the RSK+RZA1H may be required following a successful loading
of the user application.
Содержание RZ/A1H Series
Страница 34: ...RZA1H Group R20UT2845EG0200 ...