Look in the reference manual for FSMC, you have the 4 BCRs in FSMC_Bank1->BTCR[0..3] followed by the 4 BTRs, they are not one after the other hence the index has to be 3 and 7 respectively for both cases.
FSMC_BANK=6 is actually incorrect, we would have to use
Problem with SSD1289
in Support
Posted
Look in the reference manual for FSMC, you have the 4 BCRs in FSMC_Bank1->BTCR[0..3] followed by the 4 BTRs, they are not one after the other hence the index has to be 3 and 7 respectively for both cases.
FSMC_BANK=6 is actually incorrect, we would have to use
For the correct addressing of BTR4 here, replace:
by 4
Then to configure BCR4, so this line is left as is
.
That should lead to correct configuration of Bank 4, if all the switches in it are configured correctly.
Regards
Abhishek