This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
To make the Fls works with Autosar Fee module, I have to do some changes in Fls driver.
in function Fls_Ospi_readDirect:
pSrc = (uint8 *)(FLS_BASE_ADDRESS + addrOffset); #if 0 remainSize = (uint32)trans->count & 3U; size = (uint32)trans->count - remainSize; /* Transfer the data in 32-bit size */ for (i = 0U; i < size; i += 4U) { HW_WR_REG32(pDst + i, HW_RD_REG32(pSrc + i)); } /* Transfer the remaining data in 8-bit size */ for (i = 0; i < remainSize; i++) { HW_WR_REG32(pDst + size + i, HW_RD_REG8(pSrc + size + i)); } #endif /* This code is used to replace the comment out code above to avoid data abort exception which cased by alignment issue at function HW_WR_REG32(). 12/2024 by Phoenix */ for (i = 0; i < trans->count; i++) { HW_WR_REG32(pDst + i, HW_RD_REG8(pSrc + i)); }
The other one is that I need to clear the register that was set by RBL.
Hello Pheonix,
Thanks for sharing these changes, will analyze and fix in next MCAL release.
Best Regards,
Gunjan