Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
urrudelu30 opened this issue May 4, 2024 · 0 comments

Comments

@urrudelu30
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant