Skip to content

Commit a12e64c

Browse files
Adds ST_NUCLEO144_F767ZI (#226)
1 parent 6e54abf commit a12e64c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+8087
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- [ ] ST_STM32F411_DISCOVERY
2222
- [ ] ST_NUCLEO144_F412ZG_NF
2323
- [ ] ST_NUCLEO144_F746ZG
24+
- [ ] ST_NUCLEO144_F767ZI
2425
- [ ] ST_STM32F4_DISCOVERY
2526
- [ ] ST_NUCLEO144_F439ZI
2627
- [ ] WEACT_F411CE

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ChibiOS/ST_NUCLEO144_F412ZG_NF/CMakePresets.json",
1616
"ChibiOS/ST_NUCLEO144_F439ZI/CMakePresets.json",
1717
"ChibiOS/ST_NUCLEO144_F746ZG/CMakePresets.json",
18+
"ChibiOS/ST_NUCLEO144_F767ZI/CMakePresets.json",
1819
"ChibiOS/ST_STM32F4_DISCOVERY/CMakePresets.json",
1920
"ChibiOS/ST_STM32F411_DISCOVERY/CMakePresets.json",
2021
"ChibiOS/WEACT_F411CE/CMakePresets.json",
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# Copyright (c) .NET Foundation and Contributors
3+
# See LICENSE file in the project root for full license information.
4+
#
5+
6+
include(binutils.common)
7+
include(binutils.ChibiOS)
8+
9+
nf_setup_target_build(
10+
HAS_NANOBOOTER
11+
12+
BOOTER_LINKER_FILE
13+
STM32F76xx_booter
14+
15+
CLR_LINKER_FILE
16+
STM32F76xx_CLR
17+
18+
CLR_EXTRA_SOURCE_FILES
19+
# the next one is required is the target implements and it's using external memory
20+
${CMAKE_CURRENT_SOURCE_DIR}/target_external_memory.c
21+
22+
BOOTER_EXTRA_LINKMAP_PROPERTIES
23+
",--library-path=${CMAKE_SOURCE_DIR}/targets/ChibiOS/_common,--defsym=__main_stack_size__=0x400,--defsym=__process_stack_size__=0x800,--defsym=__crt_heap_size__=0x2000"
24+
25+
CLR_EXTRA_LINKMAP_PROPERTIES
26+
",--library-path=${CMAKE_SOURCE_DIR}/targets/ChibiOS/_common,--defsym=__main_stack_size__=0x400,--defsym=__process_stack_size__=0x800,--defsym=__crt_heap_size__=0x3B000"
27+
)
28+
29+
# generate bin file for deployment
30+
if(SRECORD_TOOL_AVAILABLE)
31+
32+
############################################################################################################
33+
## when changing the linker file make sure to update the addresses below with the offset of the CLR image ##
34+
## DO NOT use the leading 0x notation, just the address in plain hexadecimal formating ##
35+
############################################################################################################
36+
37+
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
38+
nf_generate_bin_package(
39+
${CMAKE_SOURCE_DIR}/build/${NANOBOOTER_PROJECT_NAME}.bin
40+
${CMAKE_SOURCE_DIR}/build/${NANOCLR_PROJECT_NAME}.bin
41+
10000
42+
${CMAKE_SOURCE_DIR}/build/nanobooter-nanoclr.bin)
43+
else()
44+
nf_generate_bin_package(
45+
${CMAKE_SOURCE_DIR}/build/${NANOBOOTER_PROJECT_NAME}.bin
46+
${CMAKE_SOURCE_DIR}/build/${NANOCLR_PROJECT_NAME}.bin
47+
10000
48+
${CMAKE_SOURCE_DIR}/build/nanobooter-nanoclr.bin)
49+
endif()
50+
51+
endif()
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"version": 4,
3+
"include": [
4+
"../../../CMake/arm-gcc.json",
5+
"../../../config/user-tools-repos.json",
6+
"../../../config/user-prefs.json"
7+
],
8+
"configurePresets": [
9+
{
10+
"name": "ST_NUCLEO144_F767ZI",
11+
"inherits": [
12+
"arm-gcc-cortex-preset",
13+
"user-tools-repos",
14+
"user-prefs"
15+
],
16+
"hidden": false,
17+
"cacheVariables": {
18+
"TARGET_BOARD": "${presetName}",
19+
"RTOS": "ChibiOS",
20+
"TARGET_SERIES": "STM32F7xx",
21+
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
22+
"STM32_CUBE_PACKAGE_REQUIRED": "OFF",
23+
"SUPPORT_ANY_BASE_CONVERSION": "ON",
24+
"NF_FEATURE_DEBUGGER": "ON",
25+
"NF_FEATURE_RTC": "ON",
26+
"NF_FEATURE_HAS_SDCARD": "OFF",
27+
"NF_FEATURE_HAS_CONFIG_BLOCK": "ON",
28+
"SWO_OUTPUT": "OFF",
29+
"NF_BUILD_RTM": "OFF",
30+
"API_System.Math": "ON",
31+
"API_Hardware.Stm32": "ON",
32+
"API_System.Device.Gpio": "ON",
33+
"API_System.Device.Spi": "ON",
34+
"API_System.Device.I2c": "ON",
35+
"API_System.Device.Pwm": "ON",
36+
"API_System.IO.Ports": "ON",
37+
"API_System.Device.Adc": "ON",
38+
"API_System.Device.Dac": "OFF",
39+
"API_System.Net": "ON",
40+
"API_nanoFramework.System.IO.Hashing": "ON",
41+
"API_nanoFramework.System.Security.Cryptography": "OFF",
42+
"API_nanoFramework.Device.OneWire": "OFF",
43+
"API_nanoFramework.Device.Can": "ON",
44+
"API_nanoFramework.ResourceManager": "ON",
45+
"API_nanoFramework.System.Collections": "ON",
46+
"API_nanoFramework.System.Text": "ON",
47+
"API_System.IO.FileSystem": "OFF",
48+
"API_nanoFramework.Graphics": "OFF"
49+
}
50+
}
51+
],
52+
"buildPresets": [
53+
{
54+
"inherits": "base-user",
55+
"name": "ST_NUCLEO144_F767ZI",
56+
"displayName": "ST_NUCLEO144_F767ZI",
57+
"configurePreset": "ST_NUCLEO144_F767ZI"
58+
}
59+
]
60+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Configuration of ChibiOS, HAL and MCU
2+
3+
For a successful build the following changes are required:
4+
5+
For memory maps, uuid etc. the reference document used was: http://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/96/8b/0d/ec/16/22/43/71/DM00224583/files/DM00224583.pdf/jcr:content/translations/en.DM00224583.pdf
6+
7+
For port maps:
8+
https://www.st.com/resource/en/user_manual/um1974-stm32-nucleo144-boards-mb1137-stmicroelectronics.pdf
9+
10+
NOTE: this configuration was successfully tested in an ST_NUCLEO144_F767ZI board using the Serial port through the onboard ST Link USB connection.
11+

0 commit comments

Comments
 (0)