Connecting FSMC to LCD - CD pin not working, STM32F407VG
I've configured bank1 FSMC to drive a LCD using CubeMx copying the various example code. I've set up FSMC-A18 to be the pin driving the Control/Data selection on the LCD. All data lines + OE and WR work perfectly but A18 sits continuously low whether I write to REG or RAM. I can't see in the examples how this is supposed to work as I can't find any code that sets whether it should be high for data/low for control or visa versa. The pin itself works fine if I drive it direct.
This is my first use of FSMC and I'm clearly missing something - help appreciated
I can attach code and CubeMX images if that helps diagnose
