Associate III
January 30, 2023
Solved
STM32 MCU unable to communicate with DPRAM
- January 30, 2023
- 7 replies
- 5536 views
Hello,
I'm working on my customized board with STM32H747XIH6 MCU which is connected to the DPRAM (Part No: 70T653MS12BCGI). The connectivity is as follows.
While I'm trying to read and write from the DPRAM after 22 locations the software hangs
I have attached my code snippet hardware configuration file and console message below for your reference.
uint8_t MemCheck(uint32_t startAdd, uint32_t endAdd)
{
uint8_t jCount = 0;
uint32_t iCnt = 0;
uint32_t Data = 0;
uint32_t AddRange = 0;
unsigned int addout = 0;
AddRange = (endAdd - startAdd)/4;
for(jCount = 0; jCount < 4; jCount++)
{
for(iCnt = 0; iCnt < AddRange; iCnt++)
{
addout = startAdd;
addout = startAdd+(iCnt*4);
*(uint32_t*) (addout) = addout;
}
for(iCnt = 0; iCnt < AddRange; iCnt++)
{
addout = startAdd+(iCnt*4);
Data = *(uint32_t*)(addout);
if(Data != addout)
{
return 0xFF; //Test Failed
}
}
}
return 0x00;
}Console Message :
handle_vCont_t, Failed halting thread
handle_vCont_t, Failed halting thread
Kindly help me figure out the issue as to where is the fault I'm not able to detect the DPRAM.
