You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/documents/getting_started/makefile_manual.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ The basic way of this command is to enter ``make cfg``, the makefile system will
110
110
"Debug Jtags (JTAG) : usb opella"
111
111
112
112
At supported Configurations, you can find different choices for your command, the uppercase words in parentheses are paramater names to be used in your command.
113
-
For example, the command below will execute your command for an *EMSK* board with *arcem7d* core, toolchain would be *gnu* and JTAG connection is via *USB*.
113
+
For example, the command below will execute your command for an *EMSK* board with *arcem7d* core, toolchain will be *gnu* and JTAG connection is via *USB*.
114
114
115
115
.. code-block:: console
116
116
@@ -151,7 +151,7 @@ build
151
151
152
152
This command will clean and build the project with selected paramaters.
153
153
154
-
Here is a example using EMSK (version 1.1, arcem6 core), compiled with gnu.
154
+
Here is an example using EMSK (version 1.1, arcem6 core), compiled with gnu.
155
155
156
156
.. code-block:: console
157
157
@@ -184,7 +184,7 @@ Here is a example using IoTDK (version 1.0, arcem9d core), compiled with Metawar
184
184
185
185
make BOARD=iotdk BD_VER=10 CUR_CORE=arcem9d TOOLCHAIN=mw JTAG=usb run
186
186
187
-
You may also use it wiout BD_VER and CUR_CORE options since they are default options.
187
+
You may also use it without BD_VER and CUR_CORE options since they are default options.
188
188
189
189
.. code-block:: console
190
190
@@ -207,9 +207,9 @@ This command will clean the directory, removing all object files of all boards.
207
207
Useful Options
208
208
##############
209
209
210
-
#. Boards (**BOARD**): Use this option to check config for different boards. Usually he default BOARD setting is EMSK.
211
-
#. Core Configurations (**CUR_CORE**): shows available core choices.
212
-
#. Build Toolchains (**TOOLCHAIN**):To choose from different toolchain.
213
-
#. Debug Jtags (**JTAG**): In most case the micro-usb interface on board supports JTAG debugging. Ashling's Opella-XD-ARC is also support by some boards.
210
+
#. Boards (**BOARD**): Use this option to check config for different boards. Usually the default BOARD setting is EMSK.
211
+
#. Core Configurations (**CUR_CORE**): Shows available core choices.
212
+
#. Build Toolchains (**TOOLCHAIN**):To choose from different toolchains.
213
+
#. Debug Jtags (**JTAG**): In most case the micro-usb interface on board supports JTAG debugging. Ashling's Opella-XD-ARC is also supported by some boards.
214
214
#. Board version (**BD_VER**): Often used by EMSK which has many versions.
Copy file name to clipboardExpand all lines: doc/documents/getting_started/peripheral_preparation.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ We will take PMOD interface as example to explain the setting method. Other inte
14
14
[board_type] should be replaced to board type name, such as *emsk*, *hsdk* or *iotdk*.
15
15
16
16
2. If you are using EMSK, go to mux.c and find ``io_mux_init()`` function, you will see it calls ``set_pmod_mux()`` with MUX options as parameters.
17
-
MUX options are defined in mux.h and you could change them as you see fit.
17
+
MUX options are defined in mux.h and you can change them as you see fit.
18
18
19
-
For example, You want to connect your EMSK with two i2c sensor modules. By default setting you only have PM2 as i2c interface.
19
+
For example, you want to connect your EMSK with two i2c sensor modules. By default setting you only have PM2 as i2c interface.
20
20
So now you have to check mux.h or EMSK manual to see if it support one more i2c interface.
21
21
Notice that there is a ``PM3_I2C_GPIO_D`` macro in mux.h meaning that PM3 support i2c interface. Now all you need to do is to replace the default PM3 setting in ``set_pmod_mux()`` to ``PM3_I2C_GPIO_D``.
22
22
Now your code should be like this:
@@ -43,7 +43,7 @@ All three parameters should use definitions in ``embarc_osp/device/inc/dev_pinmu
43
43
* The third parameter should be ``IO_PINMUX_ENABLE`` or ``IO_PINMUX_DISABLE``, enabling or disabling the mux controller respectively.
44
44
45
45
5. If you are using EMSDP, go to mux.c and find ``io_mux_init()`` function, you will find it calls ``set_pmod_mux()`` with MUX options as parameters.
46
-
MUX options are defined in mux.h and you could change them as you see fit.
46
+
MUX options are defined in mux.h and you can change them as you see fit.
47
47
48
48
.. note:: In EMSDP, notice that **CFG0** means Upper Layer of Pmod interface and **CFG1** means Lower Layer of Pmod
49
49
@@ -63,10 +63,10 @@ Driver code at ``embarc_osp/device/peripheral/wifi/rw009``.
63
63
64
64
PMOD Temperature Module
65
65
***********************
66
-
`Pmod TMP2 <https://reference.digilentinc.com/reference/pmod/pmodtmp2/start>`_ : sensor chip type is ADT7420, use **I2C** for data collection.
66
+
`Pmod TMP2 <https://reference.digilentinc.com/reference/pmod/pmodtmp2/start>`_ : Sensor chip type is ADT7420, use **I2C** for data collection.
67
67
Driver code at ``embarc_osp/device/peripheral/sensor/temperature/adt7420``.
68
68
69
-
`Pmod TMP3 <https://reference.digilentinc.com/reference/pmod/pmodtmp3/start>`_ : sensor chip type is TCN75A, use **I2C** for data collection.
69
+
`Pmod TMP3 <https://reference.digilentinc.com/reference/pmod/pmodtmp3/start>`_ : Sensor chip type is TCN75A, use **I2C** for data collection.
70
70
Driver code at ``embarc_osp/device/peripheral/sensor/temperature/tcn75``.
71
71
72
72
Other PMOD or Compatible Modules
@@ -77,4 +77,4 @@ Driver code at ``embarc_osp/device/peripheral/adc/ad7991``.
77
77
`ESP01\/ESP01S <https://wiki.ai-thinker.com/esp8266/docs>`_ : Primary IC type is ESP8266, use **UART** interface for data changing and controlling.
78
78
Driver code at ``embarc_osp/device/peripheral/wifi/slip_esp``.
79
79
80
-
The ESP01/ESP01S module is not originally a PMOD module, however it is PMOD compatible, meaning that you could wire it to PMOD interface on board. You need to connect GND(embARC) to GND(ESP) , 3.3V(embARC) to VCC(ESP), RXD(embARC) to TXD(ESP), and TXD(embARC) to RXD(ESP), respectively. Please take reference from datasheet of `ESP01\/ESP01S <https://wiki.ai-thinker.com/esp8266/docs>`_ and UART (type 4A) part of `Digilent Pmod Spec <https://www.digilentinc.com/Pmods/Digilent-Pmod_%20Interface_Specification.pdf>`_ for pin layout.
80
+
The ESP01/ESP01S module is not originally a PMOD module, however it is PMOD compatible, meaning that you can wire it to PMOD interface on board. You need to connect GND(embARC) to GND(ESP) , 3.3V(embARC) to VCC(ESP), RXD(embARC) to TXD(ESP), and TXD(embARC) to RXD(ESP), respectively. Please take reference from datasheet of `ESP01\/ESP01S <https://wiki.ai-thinker.com/esp8266/docs>`_ and UART (type 4A) part of `Digilent Pmod Spec <https://www.digilentinc.com/Pmods/Digilent-Pmod_%20Interface_Specification.pdf>`_ for pin layout.
0 commit comments