Skip to content

Commit f815037

Browse files
authored
Merge pull request #139 from IRISZZW/master
example: bootloader: fix unclear document
2 parents bea9e39 + c9c5f3d commit f815037

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

example/baremetal/bootloader/README.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Detailed Description
3737
- Generate a secondary bootloader binary file
3838

3939
- Program generated secondary bootloader binary file into SPIFlash
40-
+ Insert SDCard to your PC, and copy the binary file *obj_emsk_23/gnu_arcem7d/emsk_bootloader_gnu_arcem7d.bin* to SDCard Root, and rename it to *em7d_2bt.bin*
40+
+ Insert SDCard to your PC, and copy the binary file *obj_emsk_23/gnu_arcem7d/simple_bootloader_gnu_arcem7d.bin* to SDCard Root, and rename it to *em7d_2bt.bin*
4141
+ Insert the SDCard to EMSK Board, please choose the right core configuration, build and run the *<embARC>/example/baremetal/bootloader* example, then press any button to stop auto boot process, and enter to ntshell command mode.
4242
+ Then use ntshell command *spirw* to program the *em7d_2bt.bin* into spiflash.
4343
- Firstly, run *spirw* to show help
@@ -159,6 +159,13 @@ If the binary file is generated successfully, you will output as follows:
159159
"Linking : " obj_emsk_23/gnu_arcem7d/emsk_bootloader_gnu_arcem7d.elf
160160
"Generating Binary obj_emsk_23/gnu_arcem7d/emsk_bootloader_gnu_arcem7d.bin"
161161
162+
- build and run ntshell application:
163+
164+
//remember to remove APPL_DEFINES += -DUSE_APPL_MEM_CONFIG in makefile
165+
$ cd <embarc_root>/example/baremetal/bootloader
166+
$ gmake BOARD=emsk BD_VER=22 CUR_CORE=arcem7d TOOLCHAIN=mw run
167+
$ gmake BOARD=iotdk BD_VER=10 CUR_CORE=arcem9d TOOLCHAIN=mw run
168+
162169
- Generate *boot.bin* using any embARC example
163170
+ Here take *<embarc_root>/example/freertos/kernel* for example
164171

@@ -183,7 +190,7 @@ If the binary file is generated successfully, you will output as follows:
183190
Please note that when using MCUBoot, the origin binary name is *obj_emsk_22/mw_arcem7d/signed_freertos_kernel.bin*
184191
+ Insert SDCard back to EMSK, make sure bit 4 of DIP Switch is ON, and press re-configure button above letter **C**, and wait for autoload.
185192

186-
.. note:: Make sure you have selected the correct configuration of EMSK via dipswitches and that you have reset the board (button above "R") to confirm its configuration
193+
.. note:: Make sure you have selected the correct configuration of EMSK via DIP switches and that you have reset the board (button above "R") to confirm its configuration
187194

188195
Sample Output
189196
=============

0 commit comments

Comments
 (0)