Skip to content

[BUG] A HARDFAIL occurred when running the up_rtc_settime function in stm32_rtcounter.c #18173

@flyxin

Description

@flyxin

Description / Steps to reproduce the issue

  1. Using the STM32F103 chip. When running to the function up_rtc_settime in the file stm32_rtcounter.c located in platforms/nuttx/NuttX/nuttx/arch/arm/src/stm32, the function encountered a hard failure.
  2. In the function up_rtc_settime, the line putreg16(RTC_MAGIC, RTC_MAGIC_TIME_SET);, RTC_MAGIC_TIME_SET should be a register address, but currently it is a default illegal address: #define CONFIG_STM32_RTC_MAGIC_TIME_SET (0xf00d)
  3. Currently, it has been found that this address cannot be modified even on the STM32F1 chip.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 22.04

NuttX Version

Release 11.0.0

Issue Architecture

[Arch: arm]

Issue Area

[Area: Board support]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: Board supportBoard support issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions