Skip to content

Commit

Permalink
Merge pull request #135 from IRISZZW/master
Browse files Browse the repository at this point in the history
example: bootloader: fix unclear document
  • Loading branch information
YuguoWH authored Aug 20, 2019
2 parents c770b2d + 3a5b292 commit fc4a8bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/baremetal/bootloader/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Detailed Description

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

.. note:: for iotdk board, use **flash** command to program the **bootloader.bin** into eflash: **flash -eflash bootloader.bin**. run **flash -h** to show help.

+ If programmed successfully, when the board is reset, make sure Bit 4 of the onboard DIP switch is ON to enable secondary bootloader run.
+ 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.
+ You can goto the next step to generate the *boot.bin* for proper application you want to be auto-loaded in sdcard.
Expand Down Expand Up @@ -125,8 +127,9 @@ Building and Running

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

Expand Down
4 changes: 4 additions & 0 deletions example/baremetal/bootloader/appl_mem_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
#define REGION_EXT_RAM_SIZE 0x100000 /* the mem space covered by bootloader */
#endif

#ifdef BOARD_IOTDK
#define REGION_ROM REGION_EXT_ROM
#endif

#endif

0 comments on commit fc4a8bb

Please sign in to comment.