cancel
Showing results for 
Search instead for 
Did you mean: 

Same code from STM32L476RG won't run on one core of STM32H747.

PAngl.14
Associate II

On a my Nucleo-L476RG board, I used cube to only activate an LED connected gpio (PA5) - Nothing else.

Then I programmed some blinky code into the main while loop:

           HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, RESET);

           HAL_Delay(1000);

           HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, SET);

           HAL_Delay(1000);

           Then I `Generate Code', and start debugging.

The LED blinks as expected.

Then I move to my STM32H747I-Disco board with a STM32H747XIH.

           

           File, New, STM32 Project ( MCU Selector Screen opens and I select `STM32H747XI', Next.

           I name my project 747XIH_NoRtos. and open in MX perspective.

           In System Core I click GPIO pin I15 ands et it to GPIO Output. I do not select RTOS.

           I click Project, Generate Code.

A file structure with a branch for CM4 and a branch for CM7 is created.

Under CM4, Core, Src, main.c,

I enter similar blinky code in the main while loop.

Under CM4 I Generate Code and get 0 errors, 0 warnings.

Then Build All and again 0 error, 0 warnings.

I click on Run, Debug, leaving debug configuration at default.

The error(16) says to, `Please specify the serial number in the debug config’.

Serial number of what?

I assume I’m using ST Link built onto my DISCO board.

Are there other things I need to change in the debug configuration?

3 REPLIES 3
dbgarasiya
Senior II
PAngl.14
Associate II

Not sure if that link applies, I'm running a single STM32H747I-Disco with the dual core M4/M7.

My code is operating out of the M4.

I have a single ST Link using a single usb cable to my PC.(win10).

PAngl.1
Associate

​Now at work I get a different error message.

"Error in final launch sequence. Error in initializing ST_Link device,  Reason: (4)

Everythings the same except at work I'm using a different board (STM32H747I-Eval), same MCU.