2017-06-12 08:12 AM
Hello,
I tried my LCD with parallel FMC-16bit on the NucleoL496 kit. All is working so far so good.
Now I working on my board and this is a L471 processor.
The problem is that it crashes when I try to writing to FMC(0x60000000). It goes directly in hardfault.
Only FMC is activated and the difference between the two project are the number of pin (100 vs 144) and the model (L471 vs L496)
An idea what happens?
Pierre
Solved! Go to Solution.
2017-06-12 08:22 AM
Check that the FMC is properly initialized, compare the register settings between working and non-working example. ie dump the registers, compare and contrast.
2017-06-12 08:22 AM
Check that the FMC is properly initialized, compare the register settings between working and non-working example. ie dump the registers, compare and contrast.
2017-06-12 02:15 PM
Yes you are right.
After compare I remember that I chanded the stm32l4xx_ll_fmc.c file because it didn't enable the FMC in FMC_NORSRAM_Init().
It is neccessary to add __FMC_NORSRAM_ENABLE(Device, Init->NSBank);
Than you.