I have the Flexbus of a K22 hooked up to an OLED display through FB_AD[7:0].
I'm not convinced that I've configured the Flexbus peripheral correctly as I'm seeing spurious pulses on the FB_AD signal when looking at the bus on a logic analyser.
My code so far is...
// Configure the FlexBus chip select
FB->CS.CSAR = EBI_BASE_ADDRESS; // 0x60000000
// Set up the port size to 8bit
FB->CS.CSCR = FB_CSCR_PS(1) | FB_CSCR_AA_MASK | FB_CSCR_WS(1) | FB_CSCR_BLS_MASK;
// Set up the chip select mask register
FB->CS.CSMR = FB_CSMR_V_MASK;
Do I need to set FB_BE_7_0 = 1 and TSIZ[1:0] = 0b01 in the FB_CSPMCR register in order for correct 8-bit operation?
Thanks in advance,