Skip to main content
alessandro.breuza
Associate III
Feb 11, 2021 10:35 AM UTC
Solved

Compile error in OctoSPI on STM32H733

Hello,

when generating code from CubeMX for STM32H733ZGTx setting PB13 as OCTOSPIM_P1_IO2, the following code is output:

GPIO_InitStruct.Alternate = GPIO_AF4_OCTOSPIM;

This won't compile as the correct definition is

GPIO_AF4_OCTOSPIM_P1

CubeMX v. 6.1.1

FW_H7 v. 1.8.0

Best regards,

Alessandro

This topic has been closed for replies.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Feb 11, 2021 11:14 AM UTC

First, thanks for sharing your ioc file which helped me to quickly check your problem.

I have checked from my side, and yes, you're totally right, the value assigned in the code of the Alternate parameter is not defined and wrong, what caused a compilation errors as you have mentioned in your description, issue confirmed and it will be fixed.

Sorry for any inconvenience this may have caused and many thanks @alessandro.breuza​ for bringing this issue to our attention and especially for your contribution.

Khouloud

3 replies

Khouloud ZEMMELI
ST Employee
Feb 11, 2021 10:45 AM UTC

Hello @alessandro.breuza​ 

Could you please share your ioc file to check the complete configuration?

Thanks, Khouloud

alessandro.breuza
Associate III
Feb 11, 2021 11:01 AM UTC

Core\Src\stm32h7xx_hal_msp.c, line 132

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Feb 11, 2021 11:14 AM UTC

First, thanks for sharing your ioc file which helped me to quickly check your problem.

I have checked from my side, and yes, you're totally right, the value assigned in the code of the Alternate parameter is not defined and wrong, what caused a compilation errors as you have mentioned in your description, issue confirmed and it will be fixed.

Sorry for any inconvenience this may have caused and many thanks @alessandro.breuza​ for bringing this issue to our attention and especially for your contribution.

Khouloud