Skip to content

Add Nucleo F207ZG variant #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 12, 2017
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
14 changes: 14 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ Nucleo_144.build.core=arduino
Nucleo_144.build.board=Nucleo_144
Nucleo_144.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.enable_Serialx}

# NUCLEO_F207ZG board
# Support: USB HID, Serial1 (USART1 on PG9, PG14) and Serial2 (USART2 on PD6, PD5)
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG=Nucleo F207ZG
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.node=NODE_F207ZG
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.upload.maximum_size=1048576
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.upload.maximum_data_size=131072
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.mcu=cortex-m3
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.f_cpu=120000000L
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.board=NUCLEO_F207ZG
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.series=STM32F2xx
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.product_line=STM32F207xx
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.variant=NUCLEO_F207ZG
Nucleo_144.menu.board_part_num.NUCLEO_F207ZG.build.cmsis_lib_gcc=arm_cortexM3l_math

# NUCLEO_F429ZI board
# Support: USB HID, Serial1 (USART1 on PG9, PG14) and Serial2 (USART2 on PD6, PD5)
Nucleo_144.menu.board_part_num.NUCLEO_F429ZI=Nucleo F429ZI
Expand Down
2 changes: 2 additions & 0 deletions cores/arduino/stm32/stm32_def_build.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#define CMSIS_STARTUP_FILE "startup_stm32f091xc.s"
#elif defined(STM32F030x8)
#define CMSIS_STARTUP_FILE "startup_stm32f030x8.s"
#elif defined(STM32F207xx)
#define CMSIS_STARTUP_FILE "startup_stm32f207xx.s"
#elif defined(STM32F303xE)
#define CMSIS_STARTUP_FILE "startup_stm32f303xe.s"
#elif defined(STM32F407xx)
Expand Down
4 changes: 4 additions & 0 deletions cores/arduino/stm32/stm32_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
#elif defined (STM32F1xx)
#define FLASH_BASE_ADDRESS ((uint32_t)((FLASH_BANK1_END + 1) - FLASH_PAGE_SIZE)) //0x0801FC00
#define FLASH_PAGE_NUMBER 127
#elif defined (STM32F2xx)
/*start address:from sector2 : after 16KByte of used Flash memory */
#define FLASH_BASE_ADDRESS ((uint32_t)(0x08008000))
#define FLASH_DATA_SECTOR FLASH_SECTOR_2
#elif defined (STM32F3xx)
#define FLASH_BASE_ADDRESS ((uint32_t)((0x0807FFFF + 1) - FLASH_PAGE_SIZE)) //0x0807F800
#elif defined (STM32F4xx)
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/stm32/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
volatile uint32_t tmpval;
#if defined(STM32F1xx) || defined(STM32F4xx)
#if defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx)
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
tmpval = huart->Instance->DR; // Clear PE flag
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
Expand Down
Loading