Bug reading the ID from the External Flash MX25LM51245G in STM32H735G-DK Eval kit board

Aperta
#21 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c
Ambito
embedded-iot

Direzione di ricerca

Start with the BSP_OSPI_NOR_Init and BSP_OSPI_NOR_ReadID entry points shown in the issue, then inspect the STM32H735G-DK external-flash configuration and ID-read path. Reproduce the read and trace the returned bytes against the MX25LM51245G datasheet; done means the loader consistently returns the expected 0x3a85c2 ID.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, I am taking the source code from trying to read the ID from the External Flash, but I am having some problems, note very sure if there is maybe with the clock config.

The initialization of the OCTOSPI device seems correct:
int32_t result=0;
uint8_t *ID;
memset(&ID,0,sizeof(ID));
Flash.InterfaceMode = BSP_OSPI_NOR_OPI_MODE;
Flash.TransferRate = BSP_OSPI_NOR_DTR_TRANSFER;
/Initialaize OSPI/
if(BSP_OSPI_NOR_Init(0,&Flash) !=0)
{
return 0;
}
/Configure the OSPI in memory-mapped mode/
//result = BSP_OSPI_NOR_EnableMemoryMappedMode(0);
result = BSP_OSPI_NOR_ReadID(0, &ID);

When I reached the line "result = BSP_OSPI_NOR_ReadID(0, &ID);" the returned ID is 0x85c2c2 and it must be 0x3a85c2, seems like there is a problem in one byte.

image

any help?

Thanks,
Aitor

Lingua principale
C
Stelle
188
Fork
93
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di STMicroelectronics/stm32-memory-loaders

Tutte le issue di STMicroelectronics/stm32-memory-loaders

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.