Skip to main content
Peter Ivanov
Associate
September 17, 2017
Question

How to enable generation of HAL_NAND_MspInit()

  • September 17, 2017
  • 1 reply
  • 958 views
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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 18, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Peter Ivanov
    Associate
    September 18, 2017
    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

    Technical Moderator
    September 18, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks