Skip to content
Closed
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

[![DAPLink](/docs/images/daplink-website-logo-link.png)](https://daplink.io/)
![BLACKPILL](/docs/images/STM32F4x1-V30_3D.jpg)

[![Linux Build (main)](https://github.com/ARMmbed/DAPLink/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/ARMmbed/DAPLink/actions/workflows/linux.yml)
[![Linux Build (develop)](https://github.com/ARMmbed/DAPLink/actions/workflows/linux.yml/badge.svg?branch=develop)](https://github.com/ARMmbed/DAPLink/actions/workflows/linux.yml)
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python3 -m venv venv
source venv/bin/activate
python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f411xe_bl stm32f411xe_if && pyocd flash -t stm32f411ceux projectfiles/make_gcc_arm/stm32f411xe_bl/build/stm32f411xe_bl_crc.hex projectfiles/make_gcc_arm/stm32f411xe_if/build/stm32f411xe_if_crc.hex

Binary file added docs/images/STM32F4x1-V30_3D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ module:
- records/rtos/rtos-cm3.yaml
- records/hic_hal/stm32f103xb.yaml
- records/usb/usb-hid.yaml
hic_stm32f411xe: &module_hic_stm32f411xe
- records/rtos/rtos-cm4.yaml
- records/hic_hal/stm32f411xe.yaml
- records/usb/usb-hid.yaml

projects:
# HIC bootloaders and all target interfaces
Expand Down Expand Up @@ -204,6 +208,32 @@ projects:
- *module_hic_stm32f103xb
- records/family/all_family.yaml
- records/usb/usb-bulk.yaml
stm32f411xe_bl:
- *module_bl
- records/hic_hal/stm32f411xe.yaml
- records/board/stm32f411xe_bl.yaml
stm32f411xe_if:
- *module_if
- *module_hic_stm32f411xe
#- records/family/all_family.yaml
- records/board/stm32f103rb.yaml
- records/usb/usb-bulk.yaml
stm32f411xe_cdc_dap:
- *module_tools
- records/usb/usb-core.yaml
- records/usb/usb-cdc.yaml
- records/usb/usb-webusb.yaml
- records/usb/usb-winusb.yaml
- records/daplink/cmsis-dap.yaml
- records/daplink/drag-n-drop.yaml
- records/daplink/usb2uart.yaml
- records/daplink/settings.yaml
- records/daplink/settings_rom.yaml
- records/daplink/interface.yaml
- records/daplink/target_family.yaml
- records/daplink/target_board.yaml
- *module_hic_stm32f411xe
- records/board/stm32f411re.yaml

# Other projects
k20dx_ep_agora_if:
Expand Down
4 changes: 4 additions & 0 deletions records/board/stm32f411xe_bl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
common:
sources:
board:
- source/board/stm32f411xe_bl.c
55 changes: 55 additions & 0 deletions records/hic_hal/stm32f411xe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
common:
target:
- Cortex-M4
core:
- Cortex-M4
macros:
- INTERFACE_STM32F411XE
- USE_HAL_DRIVER
- STM32F411xE
- DAPLINK_HIC_ID=0x9796990E # DAPLINK_HIC_ID_STM32F411xe
- __packed=__packed # Prevent redefinition of __packed with ARMCC
- DAPLINK_NO_ASSERT_FILENAMES
- OS_CLOCK=96000000
includes:
- source/hic_hal/stm32/stm32f411xe
- source/hic_hal/stm32/stm32f411xe/cmsis
- source/hic_hal/stm32/stm32f411xe/STM32F4xx_HAL_Driver
- source/hic_hal/stm32/stm32f411xe/STM32F4xx_HAL_Driver/Inc
sources:
hic_hal:
- source/hic_hal/stm32/stm32f411xe/flash.c
- source/hic_hal/stm32/stm32f411xe/gpio.c
- source/hic_hal/stm32/stm32f411xe/read_uid.c
- source/hic_hal/stm32/stm32f411xe/sdk.c
- source/hic_hal/stm32/stm32f411xe/uart.c
- source/hic_hal/stm32/stm32f411xe/usb_config.c
- source/hic_hal/stm32/stm32f411xe/usbd_STM32F411.c
- source/hic_hal/stm32/stm32f411xe/cmsis
- source/hic_hal/stm32/stm32f411xe/STM32F4xx_HAL_Driver/Src

tool_specific:
uvision:
misc:
ld_flags:
- --predefine="-I..\..\..\source\hic_hal\stm32\stm32f411xe"
sources:
hic_hal:
- source/hic_hal/stm32/stm32f411xe/armcc
armcc:
misc:
asm_flags:
- --no_unaligned_access
c_flags:
- --no_unaligned_access
sources:
hic_hal:
- source/hic_hal/stm32/stm32f411xe/armcc
armclang:
sources:
hic_hal:
- source/hic_hal/stm32/stm32f411xe/armcc
gcc_arm:
sources:
hic_hal:
- source/hic_hal/stm32/stm32f411xe/gcc
60 changes: 60 additions & 0 deletions source/board/stm32f411xe_bl.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* @file stm32f411_bl.c
* @brief board ID and meta-data for the hardware interface circuit (HIC) based on STM32F103XB
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed 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.
*/

#include "target_config.h"
#include "target_board.h"
#include "target_family.h"

/**
* List of start and size for each size of flash sector
* The size will apply to all sectors between the listed address and the next address
* in the list.
* The last pair in the list will have sectors starting at that address and ending
* at address start + size.
*/
static const sector_info_t sectors_info[] = {
{0x08010000, 0x400},
};

// stm32f411 target information
target_cfg_t target_device = {
.version = kTargetConfigVersion,
.sectors_info = sectors_info,
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
.flash_regions[0].start = 0x08010000,
.flash_regions[0].end = 0x08060000,
.flash_regions[0].flags = kRegionIsDefault,
.ram_regions[0].start = 0x20000000,
.ram_regions[0].end = 0x20020000,
/* .flash_algo not needed for bootloader */
};

//bootloader has no family
const target_family_descriptor_t *g_target_family = NULL;

const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.board_id = "0000",
.daplink_url_name = "HELP_FAQHTM",
.daplink_drive_name = "MAINTENANCE",
.daplink_target_url = "https://daplink.io",
.target_cfg = &target_device,
};
1 change: 1 addition & 0 deletions source/daplink/daplink.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ COMPILER_ASSERT(DAPLINK_RAM_SHARED_START + DAPLINK_RAM_SHARED_SIZE == DAPLINK_RA
#define DAPLINK_HIC_ID_KL27Z 0x9796990B
#define DAPLINK_HIC_ID_LPC54606 0x9796990C // reserving for future use
#define DAPLINK_HIC_ID_STM32F723IE 0x9796990D // reserving for future use
#define DAPLINK_HIC_ID_STM32F411XE 0x9796990E // reserving for future use
#define DAPLINK_HIC_ID_LPC55XX 0x4C504355 // 'LPC\x55'
#define DAPLINK_HIC_ID_M48SSIDAE 0x97969921
#define DAPLINK_HIC_ID_PSOC5 0x2E127069
Expand Down
2 changes: 2 additions & 0 deletions source/hic_hal/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include "sam3u2c.h"
#elif defined (INTERFACE_STM32F103XB)
#include "stm32f1xx.h"
#elif defined (INTERFACE_STM32F411XE)
#include "stm32f4xx.h"
#elif defined (INTERFACE_M48SSIDAE)
#include "M480.h"
#elif defined (INTERFACE_NRF52820)
Expand Down
Loading