Part Number: AM5718
Tool/software: TI-RTOS
Hi-
I am using the QSPI CSL and am attempting to use a word length of 128 bits (the maximum allowed). This requires that I set QSPI_SPI_CMD_REG bits 25:19 to "1111111". If you look at the CSL function for setting the command register, however, this can never be done:
void QSPISetCfgModeTxCmd(uint32_t baseAddr, HAL_QSPI_Command_t qspitxcmd)
{
uint32_t regVal;
...
HW_SET_FIELD32(regVal, QSPI_SPI_CMD_REG_WLEN,
qspitxcmd.wordLength - 1U);
...
/* Set the value of QSPI command in the command register */
QSPIsetCommandReg(baseAddr, regVal);
}
The problem is that the bitfield HAL_QSPI_Command_t.wordlength is only 7 bits. Even if I pass in "1111111" in this argument, it will be decremented by 1 before being written to the command register. Therefore, the maximum the CSL allows us to configure is a word length of 127 bits. After much time spent finding this problem, I plan to just include writing to the register directly from my application.
Is there any way this can be fixed in an upcoming release?
Thanks,
Nate
