Skip to content

Commit fc4a8bb

Browse files
authored
Merge pull request #135 from IRISZZW/master
example: bootloader: fix unclear document
2 parents c770b2d + 3a5b292 commit fc4a8bb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

example/baremetal/bootloader/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Detailed Description
6262

6363
.. image:: /pic/images/example/baremetal_bootloader/emsk_bootloader_program2splflash.jpg
6464

65+
.. note:: for iotdk board, use **flash** command to program the **bootloader.bin** into eflash: **flash -eflash bootloader.bin**. run **flash -h** to show help.
66+
6567
+ If programmed successfully, when the board is reset, make sure Bit 4 of the onboard DIP switch is ON to enable secondary bootloader run.
6668
+ If the sdcard already contains the *boot.bin* in it, the bootloader will automatically load it from sdcard, if not, it will enter to ntshell mode.
6769
+ You can goto the next step to generate the *boot.bin* for proper application you want to be auto-loaded in sdcard.
@@ -125,8 +127,9 @@ Building and Running
125127

126128
.. code-block:: console
127129
130+
//remember to set APPL_DEFINES += -DUSE_APPL_MEM_CONFIG in makefile
128131
$ cd <embarc_root>/example/baremetal/bootloader
129-
$ gmake BOARD=iotdk BD_VER=10 CUR_CORE=arcem9d TOOLCHAIN=mw LOCATION=eflash bin
132+
$ gmake BOARD=iotdk BD_VER=10 CUR_CORE=arcem9d TOOLCHAIN=mw bin
130133
131134
If the binary file is generated successfully, you will output as follows:
132135

example/baremetal/bootloader/appl_mem_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
#define REGION_EXT_RAM_SIZE 0x100000 /* the mem space covered by bootloader */
77
#endif
88

9+
#ifdef BOARD_IOTDK
10+
#define REGION_ROM REGION_EXT_ROM
11+
#endif
12+
913
#endif

0 commit comments

Comments
 (0)