Skip to content

Commit ff4fca6

Browse files
committed
ADD NEW TARGET : NUCLEO_F756ZG, based on existing NUCLEO_F746ZG
1 parent 78fd559 commit ff4fca6

File tree

29 files changed

+9890
-2
lines changed

29 files changed

+9890
-2
lines changed

targets/TARGET_STM/TARGET_STM32F7/TARGET_F746_F756/TARGET_NUCLEO_F756ZG/device/stm32f756xx.h

Lines changed: 9659 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32f7xx.h
4+
* @author MCD Application Team
5+
* @version V1.1.0
6+
* @date 22-April-2016
7+
* @brief CMSIS STM32F7xx Device Peripheral Access Layer Header File.
8+
*
9+
* The file is the unique include file that the application programmer
10+
* is using in the C source code, usually in main.c. This file contains:
11+
* - Configuration section that allows to select:
12+
* - The STM32F7xx device used in the target application
13+
* - To use or not the peripheral’s drivers in application code(i.e.
14+
* code will be based on direct access to peripheral’s registers
15+
* rather than drivers API), this option is controlled by
16+
* "#define USE_HAL_DRIVER"
17+
*
18+
******************************************************************************
19+
* @attention
20+
*
21+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
22+
*
23+
* Redistribution and use in source and binary forms, with or without modification,
24+
* are permitted provided that the following conditions are met:
25+
* 1. Redistributions of source code must retain the above copyright notice,
26+
* this list of conditions and the following disclaimer.
27+
* 2. Redistributions in binary form must reproduce the above copyright notice,
28+
* this list of conditions and the following disclaimer in the documentation
29+
* and/or other materials provided with the distribution.
30+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
31+
* may be used to endorse or promote products derived from this software
32+
* without specific prior written permission.
33+
*
34+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
35+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
38+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
41+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
42+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44+
*
45+
******************************************************************************
46+
*/
47+
48+
/** @addtogroup CMSIS
49+
* @{
50+
*/
51+
52+
/** @addtogroup stm32f7xx
53+
* @{
54+
*/
55+
56+
#ifndef __STM32F7xx_H
57+
#define __STM32F7xx_H
58+
59+
#ifdef __cplusplus
60+
extern "C" {
61+
#endif /* __cplusplus */
62+
63+
/** @addtogroup Library_configuration_section
64+
* @{
65+
*/
66+
67+
/**
68+
* @brief STM32 Family
69+
*/
70+
#if !defined (STM32F7)
71+
#define STM32F7
72+
#endif /* STM32F7 */
73+
74+
/* Uncomment the line below according to the target STM32 device used in your
75+
application
76+
*/
77+
#if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F767xx) && \
78+
!defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx)
79+
#define STM32F756xx /*!< STM32F756VG, STM32F756ZG, STM32F756ZG, STM32F756IG, STM32F756BG,
80+
STM32F756NG Devices */
81+
/* #define STM32F746xx */ /*!< STM32F746VE, STM32F746VG, STM32F746ZE, STM32F746ZG, STM32F746IE, STM32F746IG,
82+
STM32F746BE, STM32F746BG, STM32F746NE, STM32F746NG Devices */
83+
/* #define STM32F745xx */ /*!< STM32F745VE, STM32F745VG, STM32F745ZG, STM32F745ZE, STM32F745IE, STM32F745IG Devices */
84+
/* #define STM32F765xx */ /*!< STM32F765BI, STM32F765BG, STM32F765NI, STM32F765NG, STM32F765II, STM32F765IG,
85+
STM32F765ZI, STM32F765ZG, STM32F765VI, STM32F765VG Devices */
86+
/* #define STM32F767xx */ /*!< STM32F767BG, STM32F767BI, STM32F767IG, STM32F767II, STM32F767NG, STM32F767NI,
87+
STM32F767VG, STM32F767VI, STM32F767ZG, STM32F767ZI, STM32F768AI Devices */
88+
/* #define STM32F769xx */ /*!< STM32F769AG, STM32F769AI, STM32F769BG, STM32F769BI, STM32F769IG, STM32F769II,
89+
STM32F769NG, STM32F769NI Devices */
90+
/* #define STM32F777xx */ /*!< STM32F777VI, STM32F777ZI, STM32F777II, STM32F777BI, STM32F777NI, STM32F778AI Devices */
91+
/* #define STM32F779xx */ /*!< STM32F779II, STM32F779BI, STM32F779NI, STM32F779AI Devices */
92+
#endif
93+
94+
/* Tip: To avoid modifying this file each time you need to switch between these
95+
devices, you can define the device in your toolchain compiler preprocessor.
96+
*/
97+
98+
#if !defined (USE_HAL_DRIVER)
99+
/**
100+
* @brief Comment the line below if you will not use the peripherals drivers.
101+
In this case, these drivers will not be included and the application code will
102+
be based on direct access to peripherals registers
103+
*/
104+
#define USE_HAL_DRIVER
105+
#endif /* USE_HAL_DRIVER */
106+
107+
/**
108+
* @brief CMSIS Device version number V1.1.0
109+
*/
110+
#define __STM32F7_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
111+
#define __STM32F7_CMSIS_VERSION_SUB1 (0x01) /*!< [23:16] sub1 version */
112+
#define __STM32F7_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
113+
#define __STM32F7_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
114+
#define __STM32F7_CMSIS_VERSION ((__STM32F7_CMSIS_VERSION_MAIN << 24)\
115+
|(__STM32F7_CMSIS_VERSION_SUB1 << 16)\
116+
|(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\
117+
|(__STM32F7_CMSIS_VERSION))
118+
/**
119+
* @}
120+
*/
121+
122+
/** @addtogroup Device_Included
123+
* @{
124+
*/
125+
#if defined(STM32F756xx)
126+
#include "stm32f756xx.h"
127+
#elif defined(STM32F746xx)
128+
#include "stm32f746xx.h"
129+
#elif defined(STM32F745xx)
130+
#include "stm32f745xx.h"
131+
#elif defined(STM32F765xx)
132+
#include "stm32f765xx.h"
133+
#elif defined(STM32F767xx)
134+
#include "stm32f767xx.h"
135+
#elif defined(STM32F769xx)
136+
#include "stm32f769xx.h"
137+
#elif defined(STM32F777xx)
138+
#include "stm32f777xx.h"
139+
#elif defined(STM32F779xx)
140+
#include "stm32f779xx.h"
141+
#else
142+
#error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"
143+
#endif
144+
145+
/**
146+
* @}
147+
*/
148+
149+
/** @addtogroup Exported_types
150+
* @{
151+
*/
152+
typedef enum
153+
{
154+
RESET = 0,
155+
SET = !RESET
156+
} FlagStatus, ITStatus;
157+
158+
typedef enum
159+
{
160+
DISABLE = 0,
161+
ENABLE = !DISABLE
162+
} FunctionalState;
163+
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
164+
165+
typedef enum
166+
{
167+
ERROR = 0,
168+
SUCCESS = !ERROR
169+
} ErrorStatus;
170+
171+
/**
172+
* @}
173+
*/
174+
175+
/** @addtogroup Exported_macro
176+
* @{
177+
*/
178+
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
179+
180+
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
181+
182+
#define READ_BIT(REG, BIT) ((REG) & (BIT))
183+
184+
#define CLEAR_REG(REG) ((REG) = (0x0))
185+
186+
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
187+
188+
#define READ_REG(REG) ((REG))
189+
190+
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
191+
192+
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
193+
194+
/**
195+
* @}
196+
*/
197+
198+
#ifdef USE_HAL_DRIVER
199+
#include "stm32f7xx_hal_conf.h"
200+
#endif /* USE_HAL_DRIVER */
201+
202+
#ifdef __cplusplus
203+
}
204+
#endif /* __cplusplus */
205+
206+
#endif /* __STM32F7xx_H */
207+
208+
/**
209+
* @}
210+
*/
211+
212+
/**
213+
* @}
214+
*/
215+
216+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

targets/TARGET_STM/mbed_rtx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
#define OS_CLOCK 216000000
453453
#endif
454454

455-
#elif defined(TARGET_STM32F746ZG)
455+
#elif (defined(TARGET_STM32F746ZG) || defined(TARGET_STM32F756ZG))
456456

457457
#ifndef INITIAL_SP
458458
#define INITIAL_SP (0x20050000UL)

targets/targets.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@
888888
"NUCLEO_F746ZG": {
889889
"inherits": ["Target"],
890890
"core": "Cortex-M7F",
891-
"extra_labels": ["STM", "STM32F7", "STM32F746", "STM32F746ZG"],
891+
"extra_labels": ["STM", "STM32F7", "STM32F746", "STM32F746ZG", "F746_F756"],
892892
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
893893
"default_toolchain": "ARM",
894894
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
@@ -899,6 +899,19 @@
899899
"release_versions": ["2", "5"],
900900
"device_name": "STM32F746ZG"
901901
},
902+
"NUCLEO_F756ZG": {
903+
"inherits": ["Target"],
904+
"core": "Cortex-M7F",
905+
"extra_labels": ["STM", "STM32F7", "STM32F756", "STM32F756ZG", "F746_F756"],
906+
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
907+
"default_toolchain": "ARM",
908+
"supported_form_factors": ["ARDUINO"],
909+
"detect_code": ["0819"],
910+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"],
911+
"features": ["LWIP"],
912+
"release_versions": ["2", "5"],
913+
"device_name": "STM32F756ZG"
914+
},
902915
"NUCLEO_F767ZI": {
903916
"inherits": ["Target"],
904917
"core": "Cortex-M7FD",

0 commit comments

Comments
 (0)