Xilinx / Xilinx/embeddedsw

About the "NumSect" in the FlashErase function of QSPIPSU

Open
#216 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

When the ByteCount is the multiple of the sector size, the sector_cnt is miscalculated.

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.

Research direction

Start at the FlashErase function and trace how ByteCount and sector size determine sector_cnt. Reproduce the calculation with ByteCount equal to an exact multiple of the sector size, then verify that the resulting sector count matches the intended erase range.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.