AnsweredAssumed Answered

FLEXBUS 16 bit data path, write to 8 bits only.

Question asked by Dennis Kelley on Apr 20, 2017
Latest reply on Apr 24, 2017 by xiangjun.rong

I am using a K64's Flexbus to access a 2Mx16 SRAM and a 2Mx16 NandFlash part. I set it up for 16 bit data and a non-multiplexed address bus of 21 bits. What will happen if my code tries to access a variable that is only 8 bits, or a 16 or 32 bit variable that is not aligned to the 16 bit address? Do I have to use an SRAM that has the BHE and BLE inputs to be abe to do a write to a byte variable without affecting the other byte in the 16 bit memory location?

Outcomes