2023-03-10 08:31 AM
I have octospi hyperram memory to use on stm32h7b0 with nor flash I usually use stm32cubemx because it make the life easier but it's my first time configuring memories with it..can anyone help me with that ?
Solved! Go to Solution.
2023-03-14 08:41 AM
Hello @JJuli.1,
The parameters you cited are memory related ones which means they are specific to the memory used:
Please mark my answer as best by clicking on the "Select as Best" button if it fully answered your question. This will help other users find this solution faster.
Thank you.
Chahinez
2023-03-10 08:52 AM
Hello @JJuli.1,
You can use STM32CubeMX to configure both of the OCTOSPI interfaces present on the STM32H7B0.
There are some parameters to set that are related to the memory you are using and to the use case.
Regards,
Chahinez.
2023-03-13 05:04 AM
2023-03-14 08:35 AM
thank you for your responses, I am currently using cubemx for my project. are there any examples to help me on how to set the following parameters:
memory type, chip select high time, refresh rate ?
2023-03-14 08:41 AM
Hello @JJuli.1,
The parameters you cited are memory related ones which means they are specific to the memory used:
Please mark my answer as best by clicking on the "Select as Best" button if it fully answered your question. This will help other users find this solution faster.
Thank you.
Chahinez
2023-03-14 08:43 AM
I recommend you checking the Table 7. STM32CubeMX - Configuration of OCTOSPI parameters of the "6.2.4 OCTOSPI configuration and parameter settings" section of the AN5050. It will certainly help you understand the parameters configuration and how to set them.
Regards,
Chahinez.
2023-03-14 08:48 AM
thank you for your help i will check the table
I have one more question, when to use the hyperbus instead of the regular one?
2023-03-14 09:19 AM
Hello @JJuli.1,
The OctoSPI interface can operate in two different low-level protocols: Regular-command and HyperBus.
When in Regular-command protocol, the OCTOSPI communicates with the external device using commands. Each command can include the following phases:
The HyperBus protocol enables the communication with HyperRAM and HyperFlash memories and the frame is composed of the following phases:
For any further inquires, I suggest you open another thread. It will help us and the other users of the community assist you with your issue.
It will also be helpful for others to find the answer faster if they have a similar issue/question.
Thank you.
Chahinez.
2023-11-16 06:21 AM
About the refresh rate. My octospi clock is 104Mhz, i use as external ram memory APMemory APS6408L-3OBMx, could someone help me calculate the refresh rate?
2023-11-16 03:38 PM
I have found the answer to my question myself.
1/104MHZ = 9.62ns = octospi clock cycle
Refresh = Refresh rate/ octospi clock cycle = 4µs/9.62ns = 4µs/(1/(104MHZ)) = 416
Choose as refresh value 417 or 418, don't ask me why.
The value of refresh rate, we can find it in datasheet, for APMemory it is the parameter tCEM(CE# low pulse width), for my memory it has the value 4µs. --> See picture below.
Refresh rate for the Hyperbus Cypress memory(infineon): look at the parameter "HyperRAM Chip Select Maximum Low Time - Industrial Temperature" = tCSM = 4.00 µs --> see picture below