Trying to run the Timer example

Open
#834 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
embedded-iot

Research direction

Start with the timer example documentation at the linked NuttX character-timer page and the menuconfig steps for the Nucleo-H743ZI2. Compare the selected STM32 peripheral-timer configuration with the running system's /dev contents and the Failed to open /dev/timer0: 2 error. Done means the example can access the expected timer device, or the documentation clearly explains the required configuration.

Written by the indexing model from the issue text.

Description

Hello! I am trying to run the timer example following the steps provided here: https://nuttx.apache.org/docs/latest/components/drivers/character/timer.html

The few things that I do that I do not see in the steps, is also selecting a peripheral timer, from the STM32 peripheral tag.

I get the error Failed to open /dev/timer0: 2 when running the example. A quick ls of the /dev shows the following:

console
 null
 ttyS0

Why isnt /dev/timer0 part of this list.

++ I am using a Nucleo-H743ZI2 board with pretty much nothing else running other than the simple timer example. From the link provided i followed the second set of steps via the menuconfig

Dominant language
C
Stars
465
Forks
782
Avg merge
3d 11h
Merged PRs (30d)
44

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/nuttx-apps

All issues in apache/nuttx-apps

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.