Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#
# This file is specific to the nRF5340 DK board.
# This file is specific to the STM32F746 Nucleo board.

# For intrinsics used by generated optimized operators.
CONFIG_CMSIS_DSP=y
Expand Down
28 changes: 28 additions & 0 deletions apps/microtvm/zephyr/demo_runtime/boards/stm32f746g_disco.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# This file is specific to the STM32F746G Discovery board.

# For intrinsics used by generated optimized operators.
CONFIG_CMSIS_DSP=y

# For random number generation.
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y

# For debugging.
CONFIG_LED=n
6 changes: 1 addition & 5 deletions apps/microtvm/zephyr/demo_runtime/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,11 @@ tvm_crt_error_t TVMPlatformTimerStop(double* elapsed_time_seconds) {
}

// Ring buffer used to store data read from the UART on rx interrupt.
#if BOARD == qemu_x86
#define RING_BUF_SIZE_BYTES 4 * 1024
#else
#define RING_BUF_SIZE_BYTES 1 * 1024
#endif
RING_BUF_DECLARE(uart_rx_rbuf, RING_BUF_SIZE_BYTES);

// Small buffer used to read data from the UART into the ring buffer.
static uint8_t uart_data[32];
static uint8_t uart_data[8];

// UART interrupt callback.
void uart_irq_cb(const struct device* dev, void* user_data) {
Expand Down
1 change: 1 addition & 0 deletions tests/lint/check_file_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"apps/microtvm/zephyr/demo_runtime/boards/nrf5340dk_nrf5340_cpuapp.conf",
"apps/microtvm/zephyr/demo_runtime/boards/nucleo_f746zg.conf",
"apps/microtvm/zephyr/demo_runtime/boards/qemu_x86.conf",
"apps/microtvm/zephyr/demo_runtime/boards/stm32f746g_disco.conf",
"apps/microtvm/zephyr/demo_runtime/qemu-hack/qemu-system-i386",
# microTVM Virtual Machines
"apps/microtvm/reference-vm/zephyr/Vagrantfile",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/micro/micro_tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
# from tvm.micro.contrib import zephyr
#
# repo_root = subprocess.check_output(["git", "rev-parse", "--show-toplevel"], encoding='utf-8').strip()
# project_dir = f"{repo_root}/tests/micro/qemu/zephyr-runtime"
# project_dir = os.path.join(repo_root, "apps", "microtvm", "zephyr", "demo_runtime")
# compiler = zephyr.ZephyrCompiler(
# project_dir=project_dir,
# board=BOARD if "stm32f746" in str(TARGET) else "qemu_x86",
Expand Down