doc: Update documentation for EM Starter Kit
* Change emsk to EM Starter Kit * Fix some typos * Add more statement for steps of using EM Starter Kit Signed-off-by: Huaqi Fang <huaqi.fang@synopsys.com>
This commit is contained in:
parent
2bcd17e1af
commit
70a7c89021
1 changed files with 45 additions and 25 deletions
|
@ -30,9 +30,10 @@ The lastest version of EM Starter Kit is 2.3, developer can upgrade from
|
||||||
The default configuration for EM Starter Kit boards can be found in
|
The default configuration for EM Starter Kit boards can be found in
|
||||||
:file:`boards/arc/em_starterkit/em_starterkit_defconfig`.
|
:file:`boards/arc/em_starterkit/em_starterkit_defconfig`.
|
||||||
|
|
||||||
The default SOC for this board is the EM9D. This configuration is a Harvard
|
The default SoC for this board supported in Zephyr is the EM9D.
|
||||||
Architecture, with a separate instruction bus and data bus. Instruction memory
|
This configuration is a Harvard Architecture, with a separate
|
||||||
is called ICCM and data memory is called DCCM. The configuration file for EM9D
|
instruction bus and data bus. Instruction memory is called ICCM
|
||||||
|
and data memory is called DCCM. The configuration file for EM9D
|
||||||
is found in :file:`arch/arc/soc/em9d/Kconfig.defconfig`.
|
is found in :file:`arch/arc/soc/em9d/Kconfig.defconfig`.
|
||||||
|
|
||||||
If you have a larger program, you can select the EM7D or EM11D, which gives
|
If you have a larger program, you can select the EM7D or EM11D, which gives
|
||||||
|
@ -42,7 +43,8 @@ is found in :file:`arch/arc/soc/em7d/Kconfig.defconfig` and EM11D is found in
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
EM7D has secureshield feature, which is not supported in Zephyr currently.
|
EM7D of EM Starter Kit 2.3 has secureshield feature,
|
||||||
|
which is not supported in Zephyr currently.
|
||||||
|
|
||||||
|
|
||||||
Hardware
|
Hardware
|
||||||
|
@ -56,8 +58,8 @@ to support attachment of GPIO, I2C, UART or SPI devices.
|
||||||
The board also has a 16MB SPI-FLASH and an SDCard for storage. There are 9 LEDs,
|
The board also has a 16MB SPI-FLASH and an SDCard for storage. There are 9 LEDs,
|
||||||
3 buttons, and 4 dip switches that can be used with GPIO.
|
3 buttons, and 4 dip switches that can be used with GPIO.
|
||||||
|
|
||||||
The Xilinx Spartan(R)-6 LX150 FPGA can auto-load one of 3 FPGA SOC bit files
|
The Xilinx Spartan(R)-6 LX150 FPGA can auto-load one of 3 FPGA SoC bit files
|
||||||
which have the EM7D, EM9D, or EM11D SOC.
|
which have the EM7D, EM9D, or EM11D SoC.
|
||||||
|
|
||||||
Documentation and general information for the board can be found at the
|
Documentation and general information for the board can be found at the
|
||||||
`embARC-website`_, which also includes some free sample software.
|
`embARC-website`_, which also includes some free sample software.
|
||||||
|
@ -73,8 +75,8 @@ use of a large variety of pluggable modules for storage, communications,
|
||||||
sensors, displays, etc. With the Pmod interface, you can prototype your
|
sensors, displays, etc. With the Pmod interface, you can prototype your
|
||||||
applications using the Zephyr RTOS.
|
applications using the Zephyr RTOS.
|
||||||
|
|
||||||
The table below shows which drivers are supported and which functionality can be
|
The table below shows which drivers are supported and which functionality can
|
||||||
found on which architectures:
|
be found on which architectures:
|
||||||
|
|
||||||
+-----------+------------+-----+-------+-----------------------+
|
+-----------+------------+-----+-------+-----------------------+
|
||||||
| Interface | Controller |EM9D | EM11D | Driver/Component |
|
| Interface | Controller |EM9D | EM11D | Driver/Component |
|
||||||
|
@ -130,6 +132,26 @@ pieces of hardware are required.
|
||||||
See http://store.digilentinc.com/pmod-modules or develop your
|
See http://store.digilentinc.com/pmod-modules or develop your
|
||||||
custom interfaces to attach to the Pmod connector.
|
custom interfaces to attach to the Pmod connector.
|
||||||
|
|
||||||
|
Set up the ARC EM Starter Kit
|
||||||
|
=============================
|
||||||
|
|
||||||
|
To run Zephyr application on correct arc core of EM Starter Kit, you need to
|
||||||
|
setup the board correctly.
|
||||||
|
|
||||||
|
* Connect the digilent usb cable from your host to the board.
|
||||||
|
|
||||||
|
* Connect the 5V DC power supply to your board.
|
||||||
|
|
||||||
|
* Select the core configuration of the board by choosing correct dip switch
|
||||||
|
SW1 settings, then press then FPGA configure button located above the letter
|
||||||
|
'C' of the ARC logo on the board.
|
||||||
|
|
||||||
|
* Then the board will be reconfigured with selected core configuration, you
|
||||||
|
can download and debug Zephyr application now.
|
||||||
|
|
||||||
|
* If you want to know more about how to use this board, you can take a look
|
||||||
|
at the **ARC EM Starter Kit User Guide**.
|
||||||
|
|
||||||
Building Sample Applications
|
Building Sample Applications
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
@ -162,8 +184,8 @@ To build the application, execute make:
|
||||||
Connecting Serial Output
|
Connecting Serial Output
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
In the default configuration, Zephyr's EM Starter Kit images support serial output
|
In the default configuration, Zephyr's EM Starter Kit images support
|
||||||
via the UART1 on the board. To enable serial output:
|
serial output via the UART1 on the board. To enable serial output:
|
||||||
|
|
||||||
On your development environment, you will need to:
|
On your development environment, you will need to:
|
||||||
|
|
||||||
|
@ -181,15 +203,12 @@ Parity: None
|
||||||
Stopbits: 1
|
Stopbits: 1
|
||||||
========= =====
|
========= =====
|
||||||
|
|
||||||
Using the latest version of Zephyr SDK(>=0.9), you can debug and flash
|
|
||||||
EM Starterkit directly.
|
|
||||||
|
|
||||||
Boot up the SOC by pressing the "C" button. Be sure the digilent cable
|
|
||||||
is attached from your host to the EM Starter Kit board.
|
|
||||||
|
|
||||||
Debugging
|
Debugging
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
Using the latest version of Zephyr SDK(>=0.9), you can debug and flash
|
||||||
|
EM Starterkit directly.
|
||||||
|
|
||||||
Build and debug the application with the following commands:
|
Build and debug the application with the following commands:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
@ -200,18 +219,19 @@ Build and debug the application with the following commands:
|
||||||
At this point you can do your normal debug session. Set breakpoints and then
|
At this point you can do your normal debug session. Set breakpoints and then
|
||||||
'c' to continue into the program.
|
'c' to continue into the program.
|
||||||
|
|
||||||
Launch the debug server on the emsk:
|
Launch the debug server on the EM Starter Kit:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ make BOARD=em_starterkit debugserver
|
$ make BOARD=em_starterkit debugserver
|
||||||
|
|
||||||
Connect to the debug server at the emsk from a second console:
|
Connect to the debug server at the EM Starter Kit from a second console:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd <my app>
|
$ cd <my app>
|
||||||
$ $ZEPHYR_SDK_INSTALL_DIR/sysroots/x86_64-pokysdk-linux/usr/bin/arc-zephyr-elf/arc-zephyr-elf-gdb outdir/em_starterkit/zephyr.elf
|
$ $ZEPHYR_SDK_INSTALL_DIR/sysroots/x86_64-pokysdk-linux/usr/bin/arc-zephyr-elf/arc-zephyr-elf-gdb \
|
||||||
|
outdir/em_starterkit/zephyr.elf
|
||||||
(gdb) target remote localhost:3333
|
(gdb) target remote localhost:3333
|
||||||
(gdb) load
|
(gdb) load
|
||||||
(gdb) b main
|
(gdb) b main
|
||||||
|
@ -220,16 +240,16 @@ Connect to the debug server at the emsk from a second console:
|
||||||
Flashing
|
Flashing
|
||||||
========
|
========
|
||||||
|
|
||||||
If you just want to download the application to the emsk's CCM or DDR and run,
|
If you just want to download the application to the EM Starter Kit's CCM
|
||||||
you can also use this command to achieve this.
|
or DDR and run, you can also use this command to achieve this.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ make BOARD=em_starterkit flash
|
$ make BOARD=em_starterkit flash
|
||||||
|
|
||||||
This command still use openocd and gdb to load application elf file to emsk,
|
This command still uses openocd and gdb to load application elf file
|
||||||
but it will load application and then run immediately. If power is lost,
|
to EM Starter Kit, but it will load application and then run immediately.
|
||||||
the application will also lost due to power loss.
|
If power is lost, the application will also lost due to power loss.
|
||||||
|
|
||||||
Most of the time you will not be flashing your program but will instead
|
Most of the time you will not be flashing your program but will instead
|
||||||
debug it using openocd and gdb. The program can be download via the USB
|
debug it using openocd and gdb. The program can be download via the USB
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue