STM32H7 does not have the a functioning Timer driver

オープン
#835 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
embedded-iot

調査の方向性

まず、既存の stm32_tim_lowerhalf.c と stm32_tim.c の実装を、stm32h7/stm32_tim.h と stm32h7/stm32_tim.c のファイルと比較します。startup.c からの stm32_timer_initialize 呼び出しを追跡し、NUCLEOH743ZI2 のタイマーパスを確認します。H7 ビルドで必要な初期化が提供され、関数が存在しないために startup.c が失敗しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Related to https://github.com/apache/incubator-nuttx-apps/issues/834

I was trying to determine a way to use the timer with my NUCLEOH743ZI2 board. Following the guidelines provided in the above issue, I was still experiencing some problems. I did a deep dive into the what the ultimate cause of the problem was. This is as follows:

When navigating to nuttx -> arc -> arm -> src -> stm32 This folder contains a stm32_tim_lowerhalf.c file that defines the function stm32_timer_initialize which we need in order to get any timer up and operating. However in the stm32h7 folder found in the same location as the stm32 folder I noticed that the stm32_tim.h file defines it, but the stm32_tim.c file does not integrate it. Additionally, the stm32_tim_lowerhalf.c file does not exist.

Ultimately, this cause the startup.c file to fail on calling the stm32_timer_initialize function as it does not think that it exists. I am unsure how to go about using timers with the H7 board.

Any thoughts, or feedback would be great! Thank you for your time!

主要言語
C
スター
475
フォーク
811
平均マージ
1日 11時間
マージ済み PR(30日)
181

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/nuttx-apps のほかの issue

apache/nuttx-apps の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。