diff options
Diffstat (limited to 'board/nucleo-h743zi')
-rw-r--r-- | board/nucleo-h743zi/README.md | 83 | ||||
-rw-r--r-- | board/nucleo-h743zi/board.c | 69 | ||||
-rw-r--r-- | board/nucleo-h743zi/board.h | 33 | ||||
-rw-r--r-- | board/nucleo-h743zi/build.mk | 34 | ||||
-rw-r--r-- | board/nucleo-h743zi/dev_key.pem | 39 | ||||
-rw-r--r-- | board/nucleo-h743zi/ec.tasklist | 11 | ||||
-rw-r--r-- | board/nucleo-h743zi/gpio.inc | 18 | ||||
l--------- | board/nucleo-h743zi/openocd-flash.cfg | 1 | ||||
l--------- | board/nucleo-h743zi/openocd.cfg | 1 |
9 files changed, 0 insertions, 289 deletions
diff --git a/board/nucleo-h743zi/README.md b/board/nucleo-h743zi/README.md deleted file mode 100644 index 7ba8a143a3..0000000000 --- a/board/nucleo-h743zi/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# Nucleo H743ZI - -This is a simpler EC example for the ST Nucleo H743ZI development board. - -# Quick Start - -The Nucleo dev boards have lots of developer friendly features, like an -in-circuit debugger/programmer/UART-bridge, programmable LEDs, and a button, to -name a few. - -The built-in debugger can be connected to using a Micro USB cable. It provides -three great interfaces to the host. 1. Mass storage interface for drag-drop -programming 2. Full ST-Link in-circuit debugger 3. UART bridge for logs/consoles - -We will use a few of these interfaces below to program and interact with out -Nucleo dev board. - -## Build - -```bash -make BOARD=nucleo-h743zi -j -``` - -## Program - -The easiest way to flash the Nucleo board is to Copy-Paste/Drag-Drop the -firmware image onto the exposed mass storage drive. - -Open a file browser and `Copy` the file in `build/nucleo-h743zi/ec.bin`. Now, -find the removable storage that the Nucleo device has presented, and `Paste` the -file into the directory. - -## Interact - -After the Nucleo finishes programming, you can open the EC console. On -GNU/Linux, this is mapped to `/dev/ttyACM0`. - -Install `minicom` and issue the following command: - -```bash -minicom -D/dev/ttyACM0 -``` - -# Unit Testing - -A fun EC feature is that unit tests can be run on-device. - -This is made possible by an alternative build rule that generates a test image -per unit test. These test images use a unit test specific taskset and console -command to trigger them. - -## Create - -To enable an existing unit test, add it to the [build.mk](build.mk)'s -`test-list-y` variable. - -See the main [README.md](/README.md) on how to write a new unit test. - -## Build - -To build all unit test images for this board, run the following command: - -```bash -make BOARD=nucleo-h743zi tests -``` - -You can build a specific unit test image by changing `tests` to `test-aes`, for -the `aes` unit test. - -## Flash - -Copy/paste the `build/nucleo-h743zi/${TEST}/${TEST}.bin` file to the Nucleo's -mass storage drive, where `${TEST}` is the name of the unit test, like `aes`. - -## Run - -1. Connect to UART console - -```bash -minicom -D/dev/ttyACM0 -``` - -1. Run the `runtest` command diff --git a/board/nucleo-h743zi/board.c b/board/nucleo-h743zi/board.c deleted file mode 100644 index f1493658aa..0000000000 --- a/board/nucleo-h743zi/board.c +++ /dev/null @@ -1,69 +0,0 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "common.h" -#include "console.h" -#include "gpio.h" -#include "hooks.h" -#include "registers.h" -#include "spi.h" -#include "system.h" -#include "task.h" -#include "util.h" - -/** - * Disable restricted commands when the system is locked. - * - * @see console.h system.c - */ -int console_is_restricted(void) -{ - return system_is_locked(); -} - -static void ap_deferred(void) -{ - /* - * in S3: SLP_S3_L is 0 and SLP_S0_L is X. - * in S0ix: SLP_S3_L is X and SLP_S0_L is 0. - * in S0: SLP_S3_L is 1 and SLP_S0_L is 1. - * in S5/G3, the FP MCU should not be running. - */ - int running = gpio_get_level(GPIO_PCH_SLP_S3_L) - && gpio_get_level(GPIO_PCH_SLP_S0_L); - - if (running) { /* S0 */ - disable_sleep(SLEEP_MASK_AP_RUN); - hook_notify(HOOK_CHIPSET_RESUME); - } else { /* S0ix/S3 */ - hook_notify(HOOK_CHIPSET_SUSPEND); - enable_sleep(SLEEP_MASK_AP_RUN); - } -} -DECLARE_DEFERRED(ap_deferred); - -/* PCH power state changes */ -static void slp_event(enum gpio_signal signal) -{ - hook_call_deferred(&ap_deferred_data, 0); -} - -#include "gpio_list.h" - -/* Initialize board. */ -static void board_init(void) -{ - /* Enable interrupt on PCH power signals */ - gpio_enable_interrupt(GPIO_PCH_SLP_S3_L); - gpio_enable_interrupt(GPIO_PCH_SLP_S0_L); - - /* - * Enable the SPI slave interface if the PCH is up. - * Do not use hook_call_deferred(), because ap_deferred() will be - * called after tasks with priority higher than HOOK task (very late). - */ - ap_deferred(); -} -DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); diff --git a/board/nucleo-h743zi/board.h b/board/nucleo-h743zi/board.h deleted file mode 100644 index 966f2a8c94..0000000000 --- a/board/nucleo-h743zi/board.h +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/* - * STM32H743 MCU configuration - */ - -#ifndef __BOARD_H -#define __BOARD_H - -/* Baseboard features */ -#include "base-board.h" - -#undef CONFIG_SYSTEM_UNLOCKED - -/* - * These allow console commands to be flagged as restricted. - * Restricted commands will only be permitted to run when - * console_is_restricted() returns false. - * See console_is_restricted's definition in board.c. - */ -#define CONFIG_CONSOLE_COMMAND_FLAGS -#define CONFIG_RESTRICTED_CONSOLE_COMMANDS - -/* - * Enable the blink example that exercises the LEDs. - */ -#define CONFIG_BLINK -#define CONFIG_BLINK_LEDS GPIO_LED1, GPIO_LED2, GPIO_LED3 - -#endif /* __BOARD_H */ diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk deleted file mode 100644 index 1230d9b334..0000000000 --- a/board/nucleo-h743zi/build.mk +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2019 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# -# Board specific files build - -BASEBOARD:=nucleo-h743zi - -board-y=board.o - -# Enable on device tests -test-list-y=\ - aes \ - cec \ - compile_time_macros \ - crc \ - flash_physical \ - flash_write_protect \ - mpu \ - mutex \ - pingpong \ - printf \ - queue \ - rollback \ - rollback_entropy \ - rsa3 \ - rtc \ - scratchpad \ - sha256 \ - sha256_unrolled \ - static_if \ - timer_dos \ - utils \ - utils_str \ diff --git a/board/nucleo-h743zi/dev_key.pem b/board/nucleo-h743zi/dev_key.pem deleted file mode 100644 index cb402c9c68..0000000000 --- a/board/nucleo-h743zi/dev_key.pem +++ /dev/null @@ -1,39 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIG4wIBAAKCAYEAnWlGtHyWlAntpuFtoK4ukTuqnvaPiZrr7I8S+9cVpwGJXa7A -yqK5bp8kmZiUDZEMpFA6+f6OGT8dOS5e07vUcIPaZXc1tbaXADywqI04BdCgPsPP -pKNnKSUglkkgH2WQ/3aqPrT8IJ17+rCUNLysbvcNy3g0CAj0BGzY/s/2mn50C155 -R+6FsQ47jfBS1vOm3s6bOik73VZMutUyBXu5+Sy6HS0kiuAuL3g9tgslqlVaPWS/ -B6+Pd2ednqTp027z9ZJiY40OdXsTzqoD5iwkkcA391thkfsYASVloLplfFtbymWM -QaqGyaXeuXmeVXr5NUvpeLwgpA1/spX6BfBhmEK/yJ2FeYaKoBWSLz3UztZMG/FK -glupYLcV3FTJ6zHzy0LOqsdIZKpQivazHfTD5HsKuokNDZVQjtn+Oga8LWEAA8TQ -ZB+vEpYxSxi2AHwSjEQaXv8dBgnyTl173qFy4RlZ3d9qpZP3bntVpMGQlIjuYAIM -cbKoLO69rEED+zr7AgEDAoIBgGjw2c2oZGKxSRnrnmseybYnxxSkX7ER8p20t1KP -Y8SrsOkfKzHB0PRqGGZluAkLXcLgJ1FUXrt/aNDJlI0n4vWtPEOkznkkZKrTIHBe -JVk1wCnX38MXmhtuFbmGFWpDtf+kcX8jUsBo/VHLDXh9yEn6CTJQIrAF+ALzO1SK -pGb++AeUUNqfA8te0l6gNzn3xJSJvNFw0pOO3dHjdq5Se/tzJr4eGFyVdB+lfnlc -w8bjkX5DKgUftPpFE78Ym+JJ9u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kA -rTPV4BYGiu5Fgrt9ob1D/2JAipyuCtlE95Ja4b+46EKgPB6bDt/pdI80RNQ06rLs -9vh6iZPKI27HwgAeS35M5uuYPNjyGX43cpSdqDxS44hVLeedwYWDD0O9d1b6vfxE -1bYr66y+5CNhdPa3pqqs9/VEyaDP+Gq9Lrby763KSPVP9bn1LbtsP0fi6GRwHDGt -xehkx1wNHvjR6NnmkUBtUQByryihoDmZOi9kXWwoyvm3QQcCgcEAw8zqXhE7phhN -WZZeYjZYYC295VQxktUM7RT2ld2wnE6sFKrBBPtipgZC9o5bgajjNOUQEmkoGkw0 -+TzUwrrB3awzAh9+83XVtT1BiQP3rDdBXuWPnHEe5v/7Zzg06YHfxVOi0WlohqoV -RrUsbxLRn83Z+5HhhRlIKEuUq5cIkPR/QJDyxNfxmykC9eS7LrAdaBU9dDF6uZYI -6mxZaz6MAmYRNlFyQA3BMBJIcykQU10Jxil68yOrYLz7o1zARFxZ ------END RSA PRIVATE KEY----- diff --git a/board/nucleo-h743zi/ec.tasklist b/board/nucleo-h743zi/ec.tasklist deleted file mode 100644 index 9c37e0b58b..0000000000 --- a/board/nucleo-h743zi/ec.tasklist +++ /dev/null @@ -1,11 +0,0 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - #include "base-ec.tasklist" - -/** - * See CONFIG_TASK_LIST in config.h for details. - */ -#define CONFIG_TASK_LIST BASEBOARD_CONFIG_TASK_LIST diff --git a/board/nucleo-h743zi/gpio.inc b/board/nucleo-h743zi/gpio.inc deleted file mode 100644 index 0f2bb32d75..0000000000 --- a/board/nucleo-h743zi/gpio.inc +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/* - * Note that these pins map to the Nucleo-H743ZI V2 and are only slightly - * compatible with the original version. - * - * The V2 is denoted by "Nucleo-H743ZI2" vs. "Nucleo-H743ZI". - */ - -#include "base-gpio.inc" - -/* Interrupts */ -GPIO_INT(PCH_SLP_S0_L, PIN(D, 13), GPIO_INT_BOTH, slp_event) -GPIO_INT(PCH_SLP_S3_L, PIN(A, 11), GPIO_INT_BOTH, slp_event) diff --git a/board/nucleo-h743zi/openocd-flash.cfg b/board/nucleo-h743zi/openocd-flash.cfg deleted file mode 120000 index 904ee459ab..0000000000 --- a/board/nucleo-h743zi/openocd-flash.cfg +++ /dev/null @@ -1 +0,0 @@ -../../baseboard/nucleo-h743zi/openocd-flash.cfg
\ No newline at end of file diff --git a/board/nucleo-h743zi/openocd.cfg b/board/nucleo-h743zi/openocd.cfg deleted file mode 120000 index b3fc5796c5..0000000000 --- a/board/nucleo-h743zi/openocd.cfg +++ /dev/null @@ -1 +0,0 @@ -../../baseboard/nucleo-h743zi/openocd.cfg
\ No newline at end of file |