Skip to content

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

Open
@urrudelu30

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions