Erasing sector in dual flash mode
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- embedded-iot
Direzione di ricerca
Locate CSP_QSPI_EraseSector() in the loader sources and trace how dual-flash addresses and erase ranges are calculated. Reproduce the listed sector cases on the STM32H745I-DISCO setup; done means erasing one sector leaves its adjacent sector unchanged, including alternating sectors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I faced an issue while I worked through the erasing cycle on STM32H745I-DISCO with dual MT25QL512ABB8ESF-0SIT QSPI flash. When the QSPI is in dual flash mode, the CSP_QSPI_EraseSector() method will erase the next or the previous sector as well (based on the destination sector) i.e:
#define MEMORY_SECTOR_SIZE 0x10000
- If you erase sector 0 then sector 1 will be erased too (
CSP_QSPI_EraseSector(0 * MEMORY_SECTOR_SIZE, (0 + 1) * MEMORY_SECTOR_SIZE - 1)) - If you erase sector 1 then sector 0 will be erased too! (
CSP_QSPI_EraseSector(1 * MEMORY_SECTOR_SIZE, (1 + 1) * MEMORY_SECTOR_SIZE - 1)) - If you erase sector 2 then sector 3 will be erased too (
CSP_QSPI_EraseSector(2 * MEMORY_SECTOR_SIZE, (2 + 1) * MEMORY_SECTOR_SIZE - 1)) - If you erase sector 3 then sector 2 will be erased too! (
CSP_QSPI_EraseSector(3 * MEMORY_SECTOR_SIZE, (3 + 1) * MEMORY_SECTOR_SIZE - 1))
and so on.
I didn't find any workaround to fix this issue so right now for the demo code to work I had to erase the sectors first and then run writing loop:
for (var = 0; var < SECTORS_COUNT; var++)
{
if (CSP_QSPI_EraseSector(var * MEMORY_SECTOR_SIZE, (var + 1) * MEMORY_SECTOR_SIZE - 1) != HAL_OK)
{
while (1) {}
}
}
for (var = 0; var < SECTORS_COUNT; var++)
{
if (CSP_QSPI_WriteMemory(buffer_test, var * MEMORY_SECTOR_SIZE, MEMORY_SECTOR_SIZE) != HAL_OK)
{
while (1) {}
}
}
- Lingua principale
- C
- Stelle
- 188
- Fork
- 93
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di STMicroelectronics/stm32-memory-loaders
-
STM32N6 Loader Source CodeAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
STMicroelectronics/stm32-memory-loaders#28 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
-
Support CubeMX!Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
STMicroelectronics/stm32-memory-loaders#18 · 7 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
STMicroelectronics/stm32-memory-loaders#14 · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
STMicroelectronics/stm32-memory-loaders#10 · 2 commenti ·
Tutte le issue di STMicroelectronics/stm32-memory-loaders
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Polprzewodnikowy/N64FlashcartMenu#486 · 3 commenti ·
-
crash
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
`core.output` prints string properties without escaping their quotesForse già presa @JensOgorek l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zauberzeug/lizard#399 ·
I maintainer di solito rispondono entro 2 giorni