Skip to main content
Visitor II
July 10, 2019
Solved

Possible bugs found in STM32CubeMP1 & misleading AN5253.

  • July 10, 2019
  • 1 reply
  • 1007 views

Hi,

I'm currently working on porting Arduino Core for STM32 to STM32MP1 Cortex M4 core.

Here are some stuff I found:

  1. Typo: I post it in the Github: https://github.com/STMicroelectronics/STM32CubeMP1/pull/1
  2. Possible bugs in HAL driver: stm32mp1xx_hal_conf_template.h includes some modules and definitions that STM32CubeMP1 doesn't actually have, such as "stm32mp1xx_hal_eth.h", "stm32mp1xx_hal_rtc.h", "stm32mp1xx_hal_smartcard.h", HAL_ETH_MODULE_ENABLED....etc. I'm not sure if it is a bug or something intentional.
  3. The Section 4.1 "STM32 product cross-compatibility" in AN5253 "Migrating from STM32F469/479 line to STM32MP151, STM32MP153 and STM32MP157 lines" has some misleading contents. Specifically, it describes as if the Cortex M4 core supports OTGFS, OTGHS, and RTC (probably more) but the STM32Cube package does not actually support those peripherals. Does this mean that it is planned to support those, or the AN is misleading?

Thank you.

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    Hi @Bumsik Kim​ 

    Thanks for your post.

    We confirm the 3 issues you report.

    1 and 2 as been internally escalate for fix.

    3. We confirm AN5253 issue. There is no plan to support OTG and RTC in STM32CubeMP1 package. Note that RTC time and date could be read by Cortex-M4 by directly reading registers, no driver provided as RTC is initialized on Linux side.

    Will keep you posted here when fix and doc update will be delivered.

    BR,

    Olivier

    1 reply

    Technical Moderator
    July 12, 2019

    Hi @Bumsik Kim​ 

    Thanks for your post.

    We confirm the 3 issues you report.

    1 and 2 as been internally escalate for fix.

    3. We confirm AN5253 issue. There is no plan to support OTG and RTC in STM32CubeMP1 package. Note that RTC time and date could be read by Cortex-M4 by directly reading registers, no driver provided as RTC is initialized on Linux side.

    Will keep you posted here when fix and doc update will be delivered.

    BR,

    Olivier

    Visitor II
    July 13, 2019

    Hi, Thanks for reply and confirm them! I expected more than a week to get an answer lol. ​I look forward to seeing updates!