Skip to content

freertos serial monitor lcd test

Hampus Sandberg edited this page Aug 15, 2015 · 4 revisions

Introduction

To test the LCD a separate project was created to keep things simple. The code is available here.

FSMC Problem

In the new STM32CubeF4 V1.1.0 library I discovered a problem with using the FSMC interface. From the code used in with the AN2790 application note, available here, they use a function called FSMC_NORSRAMCmd. This was part of the old STM32F4 library V1.3.0 but I can't find it in the new version. What it does is setting the MBKEN bit in the SRAM/NOR-Flash chip-select control registers 1..4 (FSMC_BCR1..4) that is needed to enable that particular memory bank. More info can be found in the reference manual section 36.5.6 (page 1556 in rev 7).

What I did was to copy the function from the old library to the new one as can be seen in this commit. I'm not sure if this is a bug or if you're supposed to enable the FSMC in some other way but this seems to work.

Clone this wiki locally