2021-06-23 04:32 AM
Hi,
I'm trying to configure manually OCTOSPI registers in order to implement Hyperbus protocol but when I try to write registers it has no effect...
I'm using that command:
OCTOSPI1->CR = OCTOSPI1->CR | (0x1 << 0);
But the register keep it's value 0.
Solved! Go to Solution.
2021-06-23 09:32 AM
>>But where did you find this information?
I understand the problem space, an elephant with a tesseract if you will..
2021-06-23 05:12 AM
Hello @AGEBE.1 ,
Have a look at this article, which will help you to configure OctoSPI, it's applicable for STM32L4 series.
Imen
2021-06-23 05:12 AM
Can you see any other registers, are they all zero?
Make sure all clocks are enabled
On H7 there's also IOMNGREN (AHB3) OCTOSPI*M*
2021-06-23 06:37 AM
The other peripherial was all zero yes.
But thank you, you solved my problem!
2021-06-23 06:43 AM
But where did you find this information?
I can't find the bit associated to OSPI. According to stm32l4r5xx.h file, this bit is supposed to be the 8th of this register:
#define RCC_AHB3ENR_OSPI1EN_Pos (8U)
2021-06-23 09:32 AM
>>But where did you find this information?
I understand the problem space, an elephant with a tesseract if you will..
2021-06-24 01:12 AM
Thanks a lot!