Skip to main content
GunkutA
Associate III
January 15, 2020
Question

STM32H747I-DISCO programming

  • January 15, 2020
  • 13 replies
  • 2261 views

Hello, I just got STM32H747I-DISCO board. I have stlink-2 and I guess I cannot program this board with stlink2. Do I need to get STLink-3 or STLink-4 in order to program this board? In the description it says: Board has a built in STLink-v3 inside of it. Does it meanI " do not need an external programmer to program it"? If yes how will I do that without an external programmer. Thanks beforehand.

This topic has been closed for replies.

13 replies

berendi
Principal
January 15, 2020

Connect the USB port marked ST-Link V3 to your PC to access the built-in ST-Link

0690X00000Bw0axQAB.png

GunkutA
GunkutAAuthor
Associate III
January 15, 2020

Hello Berendi thank you. Do you know in order to code these dual cored boards, do we need to use another syntax we use in STM32 Mcu's. Because even basic

if(HAL_GPIO_ReadPin(GPIOC, GPIO_PİN_7)){
	 		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_2, 1);
	 	 }

function gives an error...

berendi
Principal
January 15, 2020

The syntax of the C language has not changed.

If I can't see the error message, I can't guess what it means.

GunkutA
GunkutAAuthor
Associate III
January 15, 2020

Sorry, error messages are:

'GPIO_P' undeclared (first use in this function); did you mean 'GPIOA'?

expected ')' before 'N_4' main.c /STM32H747I_deneme1_CM4/Core/Src line 204 C/C++ Problem

make: *** [Core/Src/subdir.mk:30: Core/Src/main.o] Error 1 STM32H747I_deneme1_CM4 C/C++ Problem

stray '\260' in program main.c /STM32H747I_deneme1_CM4/Core/Src line 204 C/C++ Problem

And same type of errors. These errors are in these lines of code:

if(HAL_GPIO_ReadPin(GPIOB, GPIO_PİN_4)){
		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_1, 1);
	 }
	 else{
		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_1, 0);
	 }
	 if(HAL_GPIO_ReadPin(GPIOC, GPIO_PİN_7)){
	 		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_2, 1);
	 	 }
	 else{
		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_2, 0);
	 }
	 if(HAL_GPIO_ReadPin(GPIOA, GPIO_PİN_8)){
	 		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_3, 1);
	 	 }
	 else{
		 HAL_GPIO_WritePin(GPIOH, GPIO_PIN_3, 0);
	 }
	 if(HAL_GPIO_ReadPin(GPIOC, GPIO_PİN_8)){
	 		 HAL_GPIO_WritePin(GPIOP, GPIO_PIN_5, 1);
	 	 }
	 else{
		 HAL_GPIO_WritePin(GPIOP, GPIO_PIN_5, 0 );

GunkutA
GunkutAAuthor
Associate III
January 15, 2020

.