Hello,
I'm trying to communicate with the SD card (SD slot is connected on the board). It is connected via mibspi2.
In HALCoGen I've activated the mibspi2 driver and checked in the pinmux if there were no conflicts.
Then I've set the Baudrate from Data Format 0 to 400kHz (because this frequency is for the SD card to reset it's internal registers).
In the main program first I've to send 10 dummy bytes to the SD card and then send CMD0 wtih crc = 0x95.
Then do some polling with CMD55 and ACMD41 to check if the SD card is in idle mode. After this the card is ready to receive general commands.
Now I want to set the SPI clock speed higher, because I want to transmit data at maximum speed allowed.
My question is: How can I change the mibspi2 it's clock when the program is running?
Kind regards,
Jason