SDRAM as heap not working in STM32H573 #15515
Replies: 8 comments 5 replies
-
Hi, Can anyone please provide inputs on this issue. |
Beta Was this translation helpful? Give feedback.
-
Maybe take a look at https://github.com/micropython/micropython/blob/master/ports/stm32/mpu.h it possibly needs enabling and configuring for your chip? |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for your input. There is an another discussion similar to this which happened with H7 chip. They could resolve it by enabling mpu config for H7 chips in sdram.c file which is included by default in recent modules. So not getting the required modifications for H5 chip. And couldn't get any info either. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, Can anyone please provide your valuable suggestions on this. |
Beta Was this translation helpful? Give feedback.
-
Hi, Can anyone help on this? |
Beta Was this translation helpful? Give feedback.
-
Maybe look at the datasheets for the H5 and the h7 and compare the mpu sections. If they look pretty similar you might be able to mostly copy the sdram code section from h7 to H5 and see if that works. |
Beta Was this translation helpful? Give feedback.
-
Hi, Can anyone look into this issue please. |
Beta Was this translation helpful? Give feedback.
-
Hi, Any hope, we can get solution for this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
We have made custom board using STM32H573ZI. We have connected Alliance memory make SDRAM chip (AS4C1M16S-7TCN which has 16Mbit SDRAM) via FMC. We have tested it's connectivity in STM32CubeIDE which is working well. But it is not getting used in Micropython.
We have made all the necessary configurations (FMC pin assignments, SDRAM settings etc.) in mpconfigboard.h, added SDRAM section in linker script and built the firmware. When we don't assign the SDRAM address to heap, MCU boots well and firmware runs properly. But SDRAM will not get utilized in this case.
However, if we enable the heap assignment line, then firmware doesn't run / MCU doesn't boot.
below are the configuration settings we have made for SDRAM portion.
Looks like, something is missing in Micropython firmware modules related to STM32H5 series microcontrollers to use SDRAM as heap.
Please help us to resolve the above issue.
Beta Was this translation helpful? Give feedback.
All reactions