cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable generation of HAL_NAND_MspInit()

Peter Ivanov
Associate
Posted on September 17, 2017 at 17:46

Hi,

The HAL_NAND_MspInit() is not generated in the stm32f4xx_hal_msp.c when the attached .ioc is used. Therefore the NAND pins are not driven by the MCU and NAND driver is not working at all. How can I enable generation of GPIO initialization code? Or is it a bug?

Thanks,

Peter

3 REPLIES 3
Imen.D
ST Employee
Posted on September 18, 2017 at 18:11

Hello

Ivanov.Peter

,

After check in your project, I found the generation of GPIO initialized in

stm32f4xx_hal_msp.c and called by HAL_FSMC_MspInit () function

0690X00000608HiQAI.png

Kind Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on September 18, 2017 at 19:02

Hi Imen,

Interesting. Thanks for checking. Maybe it is because I'm running CubeMX on Arch Linux?

I've tried this .ioc on a Windows machine and the FSMC initialization code is generated.

Best regards,

Peter

Posted on September 18, 2017 at 19:09

Hi

Ivanov.Peter

,

I raised your feedback internally to CubeMx team for more check this case, specially on Arch Linux.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen