blob: 28aab1e8978cab3b9e45ba4364835893e71edcb7 [file] [log] [blame]
#
# 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.
#
syscfg.defs:
BUTTON_1_AS_RESET:
description: >
This USB dongle does not have physical Reset button.
When this value is set BUTTON_1 acts are reset button.
value: 0
BUTTON_1_AS_STM32_DFU:
description: >
When this value is set to 1. BUTTON_1 pressed during boot
enters STM32 DFU.
value: 0
syscfg.vals.BUTTON_1_AS_STM32_DFU:
BOOT_PREBOOT: 1
syscfg.vals:
STM32_FLASH_SIZE_KB: 1024
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 192K
REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG
CONFIG_FCB_FLASH_AREA: FLASH_AREA_NFFS
NFFS_FLASH_AREA: FLASH_AREA_NFFS
COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
STM32_CLOCK_VOLTAGESCALING_CONFIG: 'PWR_REGULATOR_VOLTAGE_SCALE1'
STM32_CLOCK_LSI1: 1
STM32_CLOCK_LSI2: 0
STM32_CLOCK_LSI2_CALIBRATION: 0
STM32_CLOCK_LSE: 0
STM32_CLOCK_LSE_BYPASS: 0
STM32_CLOCK_MSI: 1
STM32_CLOCK_MSI_CALIBRATION: 'RCC_MSICALIBRATION_DEFAULT'
STM32_CLOCK_MSI_CLOCK_RANGE: 'RCC_MSIRANGE_8' # 16MHz
STM32_CLOCK_HSI: 0
STM32_CLOCK_HSI_CALIBRATION: 'RCC_HSICALIBRATION_DEFAULT'
STM32_CLOCK_HSI48: 0
STM32_CLOCK_HSE: 0
STM32_CLOCK_HSE_BYPASS: 0
STM32_CLOCK_HSEPRE: 1 # 32 / 2 = 16MHz
STM32_CLOCK_PLL_PLLM: 'RCC_PLLM_DIV1' # 16MHz
STM32_CLOCK_PLL_PLLN: 12 # 16 * 12 = 192MHz
STM32_CLOCK_PLL_PLLP: 'RCC_PLLP_DIV12' # 192 / 12 = 16MHz
STM32_CLOCK_PLL_PLLR: 'RCC_PLLR_DIV3' # 192 / 3 = 64MHz
STM32_CLOCK_PLL_PLLQ: 'RCC_PLLQ_DIV4' # 192 / 4 = 48MHz
STM32_CLOCK_AHB_DIVIDER: 'RCC_SYSCLK_DIV1'
STM32_CLOCK_APB1_DIVIDER: 'RCC_HCLK_DIV1'
STM32_CLOCK_APB2_DIVIDER: 'RCC_HCLK_DIV1'
STM32_CLOCK_AHBCLK2_DIVIDER: 'RCC_SYSCLK_DIV2'
STM32_CLOCK_AHBCLK4_DIVIDER: 'RCC_SYSCLK_DIV1'
STM32_FLASH_LATENCY: 'FLASH_LATENCY_3'
STM32_FLASH_PREFETCH_ENABLE: 1
STM32_INSTRUCTION_CACHE_ENABLE: 1
STM32_DATA_CACHE_ENABLE: 1
UART_0_PIN_TX: 'MCU_GPIO_PORTB(6)'
UART_0_PIN_RX: 'MCU_GPIO_PORTB(7)'
SPI_0_PIN_SS: 'MCU_GPIO_PORTA(4)'
SPI_0_PIN_SCK: 'MCU_GPIO_PORTA(5)'
SPI_0_PIN_MISO: 'MCU_GPIO_PORTA(6)'
SPI_0_PIN_MOSI: 'MCU_GPIO_PORTA(7)'
I2C_0_PIN_SCL: 'MCU_GPIO_PORTB(8)'
I2C_0_PIN_SDA: 'MCU_GPIO_PORTB(9)'
TIMER_0_TIM: 'TIM2'
TIMER_1_TIM: 'TIM16'
TIMER_2_TIM: 'TIM17'
WATCHDOG_INTERVAL: 28000
# Flasher parameters
MYNEWT_DOWNLOADER: stflash
MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
JLINK_TARGET: STM32WB55RG