2021-02-11 02:35 AM
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
Solved! Go to Solution.
2021-02-11 03:14 AM
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
2021-02-11 02:45 AM
Hello @alessandro.breuza
Could you please share your ioc file to check the complete configuration?
Thanks, Khouloud
2021-02-11 03:01 AM
2021-02-11 03:14 AM
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