apache / apache/nuttx

[BUG] STM32H7 tickless mode stops filesystem from initializing

Open
#17,361 6 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: File System OS: Mac Type: Bug
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

The filesystem fails to initialize when SCHED_TICKLESS is enabled. Would love some direction to debug such issue.

Logs:
```
nx_mount: found procfs
stm32_sdio_initialize: Initializing SDIO slot 0
stm32_sdio_initialize: Bind SDIO to the MMC/SD driver, minor=0
mmcsd_slotinitialize: minor: 0
mmcsd_hwinitialize: DMA supported: 1
mmcsd_hwinitialize: Attached MMC/SD interrupts
mmcsd_slotinitialize: MMC/SD slot is empty
mmcsd_slotinitialize: MMC: /dev/mmcsd0 0KB 1-bit backwards compatibility mode
stm32_sdio_initialize: Successfully bound SDIO to the MMC/SD driver
mmcsd_mediachange: arg: 0x2400bec0
mmcsd_probe: type: 0 probed: 0
mmcsd_removed: type: 0 present: 1
mmcsd_widebus: No card inserted.
mmcsd_probe: Card present. Probing....
mmcsd_cardidentify: Identifying card...
mmcsd_cardidentify: SD V2.x card
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: R3: 00ff8000
mmcsd_cardidentify: ERROR: Failed to identify card
mmcsd_probe: ERROR: Failed to initialize card: -5
find_blockdriver: pathname="/dev/mmcsd0"
find_blockdriver: ERROR: Failed to find /dev/mmcsd0
open_blockdriver: ERROR: Failed to file /dev/mmcsd0 block driver
stm32_bringup: Partition 0 did not register
find_blockdriver: pathname="/dev/mmcsd0"
find_blockdriver: ERROR: Failed to find /dev/mmcsd0
open_blockdriver: ERROR: Failed to file /dev/mmcsd0 block driver
stm32_bringup: Partition 1 did not register
find_blockdriver: pathname="/dev/mmcsd0p0"
find_blockdriver: ERROR: Failed to find /dev/mmcsd0p0
nx_mount: ERROR: Failed to find block driver /dev/mmcsd0p0
stm32_bringup: ERROR: Could not mount fat partition -15:

NuttShell (NSH)
nsh>
```

### On which OS does this issue occur?

[OS: Mac]

### What is the version of your OS?

MacOs latest

### NuttX Version

release/12.12

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: File System]

### Host information

_No response_

### Verification

- [x] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.