Skip to content

Commit 44967b3

Browse files
committed
Add new example with custom board
1 parent 45d75d1 commit 44967b3

File tree

24 files changed

+456
-101
lines changed

24 files changed

+456
-101
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
- "examples/mbed-serial"
1818
- "examples/mbed-custom-target"
1919
- "examples/zephyr-blink"
20+
- "examples/zephyr-custom-board"
2021
- "examples/zephyr-synchronization"
2122
exclude:
2223
- {python-version: 2.7, example: "examples/zephyr-blink"}
24+
- {python-version: 2.7, example: "examples/zephyr-custom-board"}
2325
- {python-version: 2.7, example: "examples/zephyr-synchronization"}
2426
runs-on: ${{ matrix.os }}
2527
steps:

examples/zephyr-drivers-watchdog/README.rst renamed to examples/zephyr-custom-board/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ How to build PlatformIO based project
2020
.. code-block:: bash
2121
2222
# Change directory to example
23-
> cd platform-nxplpc/examples/zephyr-drivers-watchdog
23+
> cd platform-nxplpc/examples/zephyr-custom-board
2424
2525
# Build project
2626
> platformio run
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"build": {
3+
"cpu": "cortex-m33",
4+
"f_cpu": "150000000L",
5+
"mcu": "lpc55s16",
6+
"zephyr": {
7+
"variant": "lpcxpresso55s16_ns"
8+
}
9+
},
10+
"connectivity": [
11+
"ethernet"
12+
],
13+
"debug": {
14+
"jlink_device": "LPC55S16",
15+
"onboard_tools": [
16+
"jlink"
17+
]
18+
},
19+
"frameworks": [
20+
"zephyr"
21+
],
22+
"name": "Custom board based lpc55s16",
23+
"upload": {
24+
"maximum_ram_size": 98304,
25+
"maximum_size": 262144,
26+
"protocol": "jlink",
27+
"protocols": [
28+
"jlink",
29+
"mbed"
30+
]
31+
},
32+
"url": "https://www.nxp.com/design/development-boards/lpcxpresso-boards/lpcxpresso55s16-development-board:LPC55S16-EVK",
33+
"vendor": "NXP"
34+
}

examples/zephyr-drivers-watchdog/platformio.ini renamed to examples/zephyr-custom-board/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; Please visit documentation for the other options and examples
88
; http://docs.platformio.org/page/projectconf.html
99

10-
[env:lpc54114]
10+
[env:my_custom_board]
1111
platform = nxplpc
1212
framework = zephyr
13-
board = lpc54114
13+
board = my_custom_board
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2012-2014 Wind River Systems, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr.h>
8+
#include <sys/printk.h>
9+
10+
void main(void)
11+
{
12+
printk("Hello World! %s\n", CONFIG_BOARD);
13+
}

0 commit comments

Comments
 (0)