2024-10-13 11:53 PM
Hi all
I have used CubeMx to create an FMC interface to psram(nonmultiplex) 8-bit data 10-bit address
The data is valid on the rising edge of the fourth clock
To have correct data on the data pins the pointer to write data (psram64) must be
a 64-bit pointer, if declared otherwise the data will not always be correct.
This will lead to the loss of 3 PIN address. it means that I will need to declare a 13-bit address
to access 1024 bytes of data
Can I configure the address to 10 bits and still have a correct data value
definition:
uint64_t * psram64 = (uint64_t *)0x60000000;
uint8_t FMC_buf[5]={1,2,4,8,0x10};
for(int i=0 ; i < 5; i++ )
HAL_SRAM_Write_16b(&hsram1, &psram64[i], &FMC_buf[i], 1);
The cubeMx configuration shows 10 10-bit addresses but needs to be a 13-bit address.