Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bel
bel4_ezb_public
Commits
ac10bcbb
Commit
ac10bcbb
authored
Feb 21, 2018
by
Martin Horauer
Browse files
added README.adoc files
parent
83d02f42
Changes
3
Hide whitespace changes
Inline
Side-by-side
XMC_MBED/APP_AnalogOut/README.
md
→
XMC_MBED/APP_AnalogOut/README.
adoc
View file @
ac10bcbb
#
AnalogOut Example
=
AnalogOut Example
This example illustrates how to use an analog output (DAC) with the XMC4500
Relax Kit. In particular, port P14_8 is used as analog output pin where a sinus
wave is output.

image::
meas.png
[]
##
Makefile Usage
==
Makefile Usage
```
[source%nowrap, bash]
----
make # build the application
make flash # flash the application
make debug # debug the application
make erase # erase the program memory
make doc # invoke doxygen
make clean # clean the project
```
----
#
Manu
ell
=
Manu
al
##
Building
==
Building
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main
```
----
This creates several files in the BUILD directory where you can find the
executables (bin, elf, hex ...).
##
Flashing
==
Flashing
```
[source%nowrap, bash]
----
$ JLinkExe -Device XMC4500-1024 -if SWD -speed 4000
J-LINK> h
J-Link> loadfile BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.hex
J-Link> r
J-Link> g
```
----
##
Debugging
==
Debugging
(1)
Start the
`JLinkGDEBServer`
, e.g.:
(1)
Build the application with debug symbols enabled by adding `--profile mbed-os/tools/profiles/debug.json`.
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main --profile mbed-os/tools/profiles/debug.json
----
(2) Start the `JLinkGDEBServer`, e.g.:
[source%nowrap, bash]
----
JLinkGDBServer -Device XMC4500-1024 -if SWD
```
(2) In order to log messages printed to
`stdout`
we connect to port 2333 via
----
(3) In order to log messages printed to `stdout` we connect to port 2333 via
telnet.
```
[source%nowrap, bash]
----
telnet 127.0.0.1 2333
```
----
(
3
) We launch the debugger and control the debug session:
(
4
) We launch the debugger and control the debug session:
```
[source%nowrap, bash]
----
arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) target remote :2331
(gdb) monitor reset
...
...
@@ -63,5 +78,5 @@ arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) b main
(gdb) c
[...]
```
----
XMC_MBED/APP_BLINKY/README.
md
→
XMC_MBED/APP_BLINKY/README.
adoc
View file @
ac10bcbb
#
Blinky Example
=
Blinky Example
A siomple blinky example that flashes the LED1 on the XMC Relax-Kit eval board.
##
Makefile Usage
==
Makefile Usage
```
[source%nowrap, bash]
----
make # build the application
make flash # flash the application
make debug # debug the application
make erase # erase the program memory
make doc # invoke doxygen
make clean # clean the project
```
----
#
Manu
el
l
=
Manu
a
l
##
Building
==
Building
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main
```
----
This creates several files in the BUILD directory where you can find the executables (bin, elf, hex ...).
##
Flashing
==
Flashing
```
[source%nowrap, bash]
----
$ JLinkExe -Device XMC4500-1024 -if SWD -speed 4000
J-LINK> h
J-Link> loadfile BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.hex
J-Link> r
J-Link> g
```
----
##
Debugging
==
Debugging
(1)
Start the
`JLinkGDEBServer`
, e.g.:
(1)
Build the application with debug symbols enabled by adding `--profile mbed-os/tools/profiles/debug.json`.
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main --profile mbed-os/tools/profiles/debug.json
----
(2) Start the `JLinkGDEBServer`, e.g.:
[source%nowrap, bash]
----
JLinkGDBServer -Device XMC4500-1024 -if SWD
```
(
2
) In order to log messages printed to
`stdout`
we connect to port 2333 via
----
(
3
) In order to log messages printed to `stdout` we connect to port 2333 via
telnet.
```
[source%nowrap, bash]
----
telnet 127.0.0.1 2333
```
----
(
3
) We launch the debugger and control the debug session:
(
4
) We launch the debugger and control the debug session:
```
[source%nowrap, bash]
----
arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) target remote :2331
(gdb) monitor reset
...
...
@@ -58,5 +71,5 @@ arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) b main
(gdb) c
[...]
```
----
XMC_MBED/APP_InterruptIn/README.
md
→
XMC_MBED/APP_InterruptIn/README.
adoc
View file @
ac10bcbb
#
InterruptIn Example
=
InterruptIn Example
This example illustrates how to facilitate an interrupt using an IO asd input
with the XMC4500 Relax Kit. In particular, port P1_15 connected to BUTTON2 is
...
...
@@ -7,60 +7,74 @@ switched on, otherwise, when a falling edge is detected LED2 will be switched
off. In other words, when you press BUTTON2 LED2 will be on when you release the
button, LED2 will be off.

image::
seriallog.png
[]
This example also uses MBED-OS queue functionality as well as UART1 on the XMC
Relax-Kit.
##
Makefile Usage
==
Makefile Usage
```
[source%nowrap, bash]
----
make # build the application
make flash # flash the application
make debug # debug the application
make erase # erase the program memory
make doc # invoke doxygen
make clean # clean the project
```
----
#
Manu
el
l
=
Manu
a
l
##
Building
==
Building
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main
```
----
This creates several files in the BUILD directory where you can find the
executables (bin, elf, hex ...).
##
Flashing
==
Flashing
```
[source%nowrap, bash]
----
$ JLinkExe -Device XMC4500-1024 -if SWD -speed 4000
J-LINK> h
J-Link> loadfile BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.hex
J-Link> r
J-Link> g
```
----
##
Debugging
==
Debugging
(1)
Start the
`JLinkGDEBServer`
, e.g.:
(1)
Build the application with debug symbols enabled by adding `--profile mbed-os/tools/profiles/debug.json`.
```
[source%nowrap, bash]
----
mbed compile -c -m XMC_4500_RELAX_KIT -t GCC_ARM -N main --profile mbed-os/tools/profiles/debug.json
----
(2) Start the `JLinkGDEBServer`, e.g.:
[source%nowrap, bash]
----
JLinkGDBServer -Device XMC4500-1024 -if SWD
```
(2) In order to log messages printed to
`stdout`
we connect to port 2333 via
----
(3) In order to log messages printed to `stdout` we connect to port 2333 via
telnet.
```
[source%nowrap, bash]
----
telnet 127.0.0.1 2333
```
----
(
3
) We launch the debugger and control the debug session:
(
4
) We launch the debugger and control the debug session:
```
[source%nowrap, bash]
----
arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) target remote :2331
(gdb) monitor reset
...
...
@@ -69,5 +83,5 @@ arm-none-eabi-gdb -q BUILD/XMC_4500_RELAX_KIT/GCC_ARM/main.elf
(gdb) b main
(gdb) c
[...]
```
----
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment