Grove wiring for tests
Overview
This shield is less a plug-on module in the conventional sense than more
a wiring for interconnection of certain signals. It can be used to run most
samples from Zephyr and Bridle that require special aliases
or chosen
entries on device tree level or other specific Kconfig setups.
Requirements
This shield requires a board, maybe with additional connected shields, which provides a configuration that allows:
one of Grove LED Shields for digital data output line, optional with PWM
one of Grove Button Shields for digital data input line
When the board is not equipped with the required shield connectors, but instead
an Arduino UNO R3
header, then the Grove Base Shield V2 can be plugged in between.
Note
Sometimes boards declare standard headers like Arduino UNO R3
but not
define all connections. Make sure that the board you are using have all
definitions to avoid build errors (see Shields for more
details).
Supported variations
Modules |
Port Type |
|
---|---|---|
D6 (PWM) |
||
Grove Buzzer Shields (not yet) |
D5 (PWM) |
|
Grove OLED Shields (not yet) |
I2C |
|
D4 |
||
Grove Rotary Potentiometer Shields (not yet) |
A0 |
|
Grove Sound Sensor Shields (not yet) |
A2 |
|
Grove Light Sensor Shields (not yet) |
A3 |
|
Grove Temperature & Humidity Sensor Shields (not yet) |
D3 |
|
Grove Air Pressure Sensor Shields (not yet) |
I2C |
|
Grove 3-Axis Accelerator Sensor Shields (not yet) |
I2C |
Hint
The Grove Base Shield V2 together with all the sensors and actuators can be easily replaced by the Arduino Sensor Kit – Base [5] as also done in the examples below.
Fritzing part file (Arduino Sensor Kit – Base):
fzp/arduino_sensor_kit_base.fzpz
Wiring Schematics
Fritzing project file:
x_grove_testbed.fzz
Fritzing part file (Grove Base Shield – V2):
fzp/grove_base_shield_v2.fzpz
Fritzing part file (Grove LED Socket Kit):
fzp/grove_led_socket_kit.fzpz
Fritzing part file (Grove Button):
fzp/grove_button.fzpz
Build and Programming
Set -DSHIELD=<shield designation>
when you invoke west build
.
For example:
Using west:
west build -b <board_name> -p --shield "<shield_name_with_grove_connectors> grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/<sample_name>-x_grove_testbed <sample_folder>
west flash -d build/<sample_name>-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/<sample_name>-x_grove_testbed -GNinja -DBOARD=<board_name> -DSHIELD=""<shield_name_with_grove_connectors> grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" <sample_folder>
# Now run the build tool on the generated build system:
ninja -Cbuild/<sample_name>-x_grove_testbed flash
This is based on the Zephyr board ST Nucleo F303RE.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b nucleo_f303re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-nucleo_f303re-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-nucleo_f303re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-nucleo_f303re-x_grove_testbed -GNinja -DBOARD=nucleo_f303re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-nucleo_f303re-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b nucleo_f303re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-nucleo_f303re-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-nucleo_f303re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-nucleo_f303re-x_grove_testbed -GNinja -DBOARD=nucleo_f303re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-nucleo_f303re-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b nucleo_f303re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-nucleo_f303re-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-nucleo_f303re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-nucleo_f303re-x_grove_testbed -GNinja -DBOARD=nucleo_f303re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-nucleo_f303re-x_grove_testbed flash
This is based on the Zephyr board ST Nucleo F401RE.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b nucleo_f401re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-nucleo_f401re-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-nucleo_f401re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-nucleo_f401re-x_grove_testbed -GNinja -DBOARD=nucleo_f401re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-nucleo_f401re-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b nucleo_f401re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-nucleo_f401re-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-nucleo_f401re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-nucleo_f401re-x_grove_testbed -GNinja -DBOARD=nucleo_f401re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-nucleo_f401re-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b nucleo_f401re -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-nucleo_f401re-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-nucleo_f401re-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-nucleo_f401re-x_grove_testbed -GNinja -DBOARD=nucleo_f401re -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-nucleo_f401re-x_grove_testbed flash
This is based on the Zephyr board ST Nucleo F413ZH.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b nucleo_f413zh -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-nucleo_f413zh-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-nucleo_f413zh-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-nucleo_f413zh-x_grove_testbed -GNinja -DBOARD=nucleo_f413zh -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-nucleo_f413zh-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b nucleo_f413zh -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-nucleo_f413zh-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-nucleo_f413zh-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-nucleo_f413zh-x_grove_testbed -GNinja -DBOARD=nucleo_f413zh -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-nucleo_f413zh-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b nucleo_f413zh -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-nucleo_f413zh-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-nucleo_f413zh-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-nucleo_f413zh-x_grove_testbed -GNinja -DBOARD=nucleo_f413zh -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-nucleo_f413zh-x_grove_testbed flash
This is based on the Zephyr board ST Nucleo F767ZI.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b nucleo_f767zi -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-nucleo_f767zi-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-nucleo_f767zi-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-nucleo_f767zi-x_grove_testbed -GNinja -DBOARD=nucleo_f767zi -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-nucleo_f767zi-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b nucleo_f767zi -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-nucleo_f767zi-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-nucleo_f767zi-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-nucleo_f767zi-x_grove_testbed -GNinja -DBOARD=nucleo_f767zi -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-nucleo_f767zi-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b nucleo_f767zi -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-nucleo_f767zi-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-nucleo_f767zi-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-nucleo_f767zi-x_grove_testbed -GNinja -DBOARD=nucleo_f767zi -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-nucleo_f767zi-x_grove_testbed flash
This is based on the Zephyr board NXP MIMXRT1010-EVK.
Diagrams.Net project file:
x_grove_testbed.drawio
Note
The NXP MIMXRT1010-EVK doesn’t provide any PWM channel
on the Laced Grove Signal Interface
line D6 for the
output of a variable average value of voltage over time to the
LED. Thus the Zephyr sample Fade LED
is not supported.
Should it be absolutely necessary to use a PWM channel, then this can only be carried out in this test bed assembly on lines D8 or D9.
This is based on the Zephyr sample Blinky.
Using west:
west build -b mimxrt1010_evk -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed" -d build/blinky-mimxrt1010_evk-x_grove_testbed zephyr/samples/basic/blinky
west flash -r pyocd -d build/blinky-mimxrt1010_evk-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-mimxrt1010_evk-x_grove_testbed -GNinja -DBOARD=mimxrt1010_evk -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-mimxrt1010_evk-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b mimxrt1010_evk -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed" -d build/button-mimxrt1010_evk-x_grove_testbed zephyr/samples/basic/button
west flash -r pyocd -d build/button-mimxrt1010_evk-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-mimxrt1010_evk-x_grove_testbed -GNinja -DBOARD=mimxrt1010_evk -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-mimxrt1010_evk-x_grove_testbed flash
This is based on the Zephyr board NXP MIMXRT1060-EVK.
Diagrams.Net project file:
x_grove_testbed.drawio
Note
The NXP MIMXRT1060-EVK doesn’t provide any PWM channel
on the Laced Grove Signal Interface
line D6 for the
output of a variable average value of voltage over time to the
LED. Thus the Zephyr sample Fade LED
is not supported.
Should it be absolutely necessary to use a PWM channel, then this can only be carried out in this test bed assembly on line D2.
This is based on the Zephyr sample Blinky.
Using west:
west build -b mimxrt1060_evkb -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed" -d build/blinky-mimxrt1060_evkb-x_grove_testbed zephyr/samples/basic/blinky
west flash -r pyocd -d build/blinky-mimxrt1060_evkb-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-mimxrt1060_evkb-x_grove_testbed -GNinja -DBOARD=mimxrt1060_evkb -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-mimxrt1060_evkb-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b mimxrt1060_evkb -p --shield \
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed" -d build/button-mimxrt1060_evkb-x_grove_testbed zephyr/samples/basic/button
west flash -r pyocd -d build/button-mimxrt1060_evkb-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-mimxrt1060_evkb-x_grove_testbed -GNinja -DBOARD=mimxrt1060_evkb -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d4 grove_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-mimxrt1060_evkb-x_grove_testbed flash
This is based on the Bridle board Arduino/Genuino Zero.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b arduino_zero -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-arduino_zero-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-arduino_zero-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-arduino_zero-x_grove_testbed -GNinja -DBOARD=arduino_zero -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-arduino_zero-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b arduino_zero -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-arduino_zero-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-arduino_zero-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-arduino_zero-x_grove_testbed -GNinja -DBOARD=arduino_zero -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-arduino_zero-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b arduino_zero -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-arduino_zero-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-arduino_zero-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-arduino_zero-x_grove_testbed -GNinja -DBOARD=arduino_zero -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-arduino_zero-x_grove_testbed flash
This is based on the Bridle board Seeeduino Cortex-M0+.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b seeeduino_cm0 -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-seeeduino_cm0-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-seeeduino_cm0-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-seeeduino_cm0-x_grove_testbed -GNinja -DBOARD=seeeduino_cm0 -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-seeeduino_cm0-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b seeeduino_cm0 -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-seeeduino_cm0-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-seeeduino_cm0-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-seeeduino_cm0-x_grove_testbed -GNinja -DBOARD=seeeduino_cm0 -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-seeeduino_cm0-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b seeeduino_cm0 -p -S usb-console --shield \
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-seeeduino_cm0-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-seeeduino_cm0-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-seeeduino_cm0-x_grove_testbed -GNinja -DBOARD=seeeduino_cm0 -DSHIELD="\
"seeed_grove_base_v2 grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-seeeduino_cm0-x_grove_testbed flash
This is based on the Bridle board Seeeduino Lotus Cortex-M0+.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b seeeduino_lotus -p -S usb-console --shield \
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/blinky-seeeduino_lotus-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-seeeduino_lotus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-seeeduino_lotus-x_grove_testbed -GNinja -DBOARD=seeeduino_lotus -DSHIELD="\
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-seeeduino_lotus-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b seeeduino_lotus -p -S usb-console --shield \
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/fade-seeeduino_lotus-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-seeeduino_lotus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-seeeduino_lotus-x_grove_testbed -GNinja -DBOARD=seeeduino_lotus -DSHIELD="\
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-seeeduino_lotus-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b seeeduino_lotus -p -S usb-console --shield \
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed" -d build/button-seeeduino_lotus-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-seeeduino_lotus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-seeeduino_lotus-x_grove_testbed -GNinja -DBOARD=seeeduino_lotus -DSHIELD="\
"grove_btn_d7 grove_led_d6 grove_pwm_led_d6 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-seeeduino_lotus-x_grove_testbed flash
This is based on the Zephyr board Seeeduino XIAO.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b seeeduino_xiao -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/blinky-seeeduino_xiao-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-seeeduino_xiao-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-seeeduino_xiao-x_grove_testbed -GNinja -DBOARD=seeeduino_xiao -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-seeeduino_xiao-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b seeeduino_xiao -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/fade-seeeduino_xiao-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-seeeduino_xiao-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-seeeduino_xiao-x_grove_testbed -GNinja -DBOARD=seeeduino_xiao -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-seeeduino_xiao-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b seeeduino_xiao -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/button-seeeduino_xiao-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-seeeduino_xiao-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-seeeduino_xiao-x_grove_testbed -GNinja -DBOARD=seeeduino_xiao -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-seeeduino_xiao-x_grove_testbed flash
This is based on the Bridle board XIAO SAMD21 (Seeeduino XIAO).
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b xiao_samd21 -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/blinky-xiao_samd21-x_grove_testbed zephyr/samples/basic/blinky
west flash -d build/blinky-xiao_samd21-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-xiao_samd21-x_grove_testbed -GNinja -DBOARD=xiao_samd21 -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-xiao_samd21-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b xiao_samd21 -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/fade-xiao_samd21-x_grove_testbed zephyr/samples/basic/fade_led
west flash -d build/fade-xiao_samd21-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-xiao_samd21-x_grove_testbed -GNinja -DBOARD=xiao_samd21 -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-xiao_samd21-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b xiao_samd21 -p -S usb-console --shield \
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed" -d build/button-xiao_samd21-x_grove_testbed zephyr/samples/basic/button
west flash -d build/button-xiao_samd21-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-xiao_samd21-x_grove_testbed -GNinja -DBOARD=xiao_samd21 -DSHIELD="\
"seeed_grove_xiao_v1 grove_btn_d0 grove_led_d1 grove_pwm_led_d1 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-xiao_samd21-x_grove_testbed flash
This is based on the Zephyr board Raspberry Pi Pico.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b rpi_pico -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/blinky-rpi_pico-x_grove_testbed zephyr/samples/basic/blinky -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/blinky-rpi_pico-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-rpi_pico-x_grove_testbed -GNinja -DBOARD=rpi_pico \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-rpi_pico-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b rpi_pico -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/fade-rpi_pico-x_grove_testbed zephyr/samples/basic/fade_led -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/fade-rpi_pico-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-rpi_pico-x_grove_testbed -GNinja -DBOARD=rpi_pico \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-rpi_pico-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b rpi_pico -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/button-rpi_pico-x_grove_testbed zephyr/samples/basic/button -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/button-rpi_pico-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-rpi_pico-x_grove_testbed -GNinja -DBOARD=rpi_pico \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-rpi_pico-x_grove_testbed flash
This is based on the Zephyr board Raspberry Pi Pico W.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b rpi_pico/rp2040/w -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/blinky-rpi_pico_w-x_grove_testbed zephyr/samples/basic/blinky -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/blinky-rpi_pico_w-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-rpi_pico_w-x_grove_testbed -GNinja -DBOARD=rpi_pico/rp2040/w \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-rpi_pico_w-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b rpi_pico/rp2040/w -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/fade-rpi_pico_w-x_grove_testbed zephyr/samples/basic/fade_led -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/fade-rpi_pico_w-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-rpi_pico_w-x_grove_testbed -GNinja -DBOARD=rpi_pico/rp2040/w \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-rpi_pico_w-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b rpi_pico/rp2040/w -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/button-rpi_pico_w-x_grove_testbed zephyr/samples/basic/button -- \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/button-rpi_pico_w-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-rpi_pico_w-x_grove_testbed -GNinja -DBOARD=rpi_pico/rp2040/w \
-DBOARD_FLASH_RUNNER=openocd \
-DRPI_PICO_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-rpi_pico_w-x_grove_testbed flash
This is based on the Bridle board RP2040-Plus.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b waveshare_rp2040_plus -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/blinky-waveshare_rp2040_plus-x_grove_testbed zephyr/samples/basic/blinky -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/blinky-waveshare_rp2040_plus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-waveshare_rp2040_plus-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_plus \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-waveshare_rp2040_plus-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b waveshare_rp2040_plus -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/fade-waveshare_rp2040_plus-x_grove_testbed zephyr/samples/basic/fade_led -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/fade-waveshare_rp2040_plus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-waveshare_rp2040_plus-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_plus \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-waveshare_rp2040_plus-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b waveshare_rp2040_plus -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/button-waveshare_rp2040_plus-x_grove_testbed zephyr/samples/basic/button -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/button-waveshare_rp2040_plus-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-waveshare_rp2040_plus-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_plus \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-waveshare_rp2040_plus-x_grove_testbed flash
This is based on the Bridle board RP2040-LCD-0.96.
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b waveshare_rp2040_lcd_0_96 -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/blinky-waveshare_rp2040_lcd_0_96-x_grove_testbed zephyr/samples/basic/blinky -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/blinky-waveshare_rp2040_lcd_0_96-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-waveshare_rp2040_lcd_0_96-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_lcd_0_96 \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-waveshare_rp2040_lcd_0_96-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b waveshare_rp2040_lcd_0_96 -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/fade-waveshare_rp2040_lcd_0_96-x_grove_testbed zephyr/samples/basic/fade_led -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/fade-waveshare_rp2040_lcd_0_96-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-waveshare_rp2040_lcd_0_96-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_lcd_0_96 \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-waveshare_rp2040_lcd_0_96-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b waveshare_rp2040_lcd_0_96 -p --shield \
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed" -d build/button-waveshare_rp2040_lcd_0_96-x_grove_testbed zephyr/samples/basic/button -- \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/button-waveshare_rp2040_lcd_0_96-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-waveshare_rp2040_lcd_0_96-x_grove_testbed -GNinja -DBOARD=waveshare_rp2040_lcd_0_96 \
-DBOARD_FLASH_RUNNER=openocd \
-DWAVESHARE_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"seeed_grove_rpipico_v1 grove_btn_d16 grove_led_d18 grove_pwm_led_d18 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-waveshare_rp2040_lcd_0_96-x_grove_testbed flash
This is based on the Bridle board Maker Nano RP2040
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b cytron_maker_nano_rp2040 -p -S usb-console --shield \
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed" -d build/blinky-cytron_maker_nano_rp2040-x_grove_testbed zephyr/samples/basic/blinky
west flash -r uf2 -d build/blinky-cytron_maker_nano_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-cytron_maker_nano_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_nano_rp2040 -DSHIELD="\
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-cytron_maker_nano_rp2040-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b cytron_maker_nano_rp2040 -p -S usb-console --shield \
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed" -d build/fade-cytron_maker_nano_rp2040-x_grove_testbed zephyr/samples/basic/fade_led
west flash -r uf2 -d build/fade-cytron_maker_nano_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-cytron_maker_nano_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_nano_rp2040 -DSHIELD="\
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-cytron_maker_nano_rp2040-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b cytron_maker_nano_rp2040 -p -S usb-console --shield \
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed" -d build/button-cytron_maker_nano_rp2040-x_grove_testbed zephyr/samples/basic/button
west flash -r uf2 -d build/button-cytron_maker_nano_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-cytron_maker_nano_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_nano_rp2040 -DSHIELD="\
"grove_btn_d0 grove_led_d15 grove_pwm_led_d15 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-cytron_maker_nano_rp2040-x_grove_testbed flash
This is based on the Bridle board Maker Pi RP2040
Diagrams.Net project file:
x_grove_testbed.drawio
This is based on the Zephyr sample Blinky.
Using west:
west build -b cytron_maker_pi_rp2040 -p --shield \
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed" -d build/blinky-cytron_maker_pi_rp2040-x_grove_testbed zephyr/samples/basic/blinky -- \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/blinky-cytron_maker_pi_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/blinky-cytron_maker_pi_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_pi_rp2040 \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed"" zephyr/samples/basic/blinky
# Now run the build tool on the generated build system:
ninja -Cbuild/blinky-cytron_maker_pi_rp2040-x_grove_testbed flash
This is based on the Zephyr sample Fade LED.
Using west:
west build -b cytron_maker_pi_rp2040 -p --shield \
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed" -d build/fade-cytron_maker_pi_rp2040-x_grove_testbed zephyr/samples/basic/fade_led -- \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/fade-cytron_maker_pi_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/fade-cytron_maker_pi_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_pi_rp2040 \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed"" zephyr/samples/basic/fade_led
# Now run the build tool on the generated build system:
ninja -Cbuild/fade-cytron_maker_pi_rp2040-x_grove_testbed flash
This is based on the Zephyr sample Button.
Using west:
west build -b cytron_maker_pi_rp2040 -p --shield \
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed" -d build/button-cytron_maker_pi_rp2040-x_grove_testbed zephyr/samples/basic/button -- \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts
west flash -d build/button-cytron_maker_pi_rp2040-x_grove_testbed
Using CMake and ninja:
# Use cmake to configure a Ninja-based buildsystem:
cmake -Bbuild/button-cytron_maker_pi_rp2040-x_grove_testbed -GNinja -DBOARD=cytron_maker_pi_rp2040 \
-DBOARD_FLASH_RUNNER=openocd \
-DCYTRON_RP2040_DEBUG_ADAPTER=cmsis-dap \
-DOPENOCD=/opt/openocd-rp2040/bin/openocd \
-DOPENOCD_DEFAULT_PATH=/opt/openocd-rp2040/share/openocd/scripts -DSHIELD="\
"grove_btn_d3 grove_led_d5 grove_pwm_led_d5 x_grove_testbed"" zephyr/samples/basic/button
# Now run the build tool on the generated build system:
ninja -Cbuild/button-cytron_maker_pi_rp2040-x_grove_testbed flash