2020-03-22 07:59 PM
Hi,
Reference the Official Code from CubeMX in STM32Cube_FW_H7_V1.6.0 -> JPEG_MJPEG_VideoDecoding.
And I have built the code for my own board test, but I got some error on it.
When I debug the code, it always get in HardFault at StreamSize like the image below.
But if I change the size format from uint32_t to uint16_t, it will pass through ,even I know it is not correct.
Is there anyone can help to solve this?
Or how can I ask ST employee for help?
Thanks a lot!
2020-03-22 08:31 PM
What memory address is pavi->aviInfo.StreamSize at? Is it pointing to a valid memory address? Seems odd that line would cause a hard fault. Examine your SCB registers in the hard fault to determine if that line really is the cause.
2020-03-22 08:48 PM
Hi @TDK ,
Thanks for your reply!
pavi->aviInfo.StreamSize is at 0x24000000(AXI RAM)
And I also check the address , It is exist the data same as file.
But just annoyed why the uint32_t will effect the HardFault problem.
Is that something wrong about the Official Code or am I lose some setting ?
Thank you again your answer!
2020-03-22 09:09 PM
2020-03-22 09:15 PM
Change the StreamSize uint32_t to uint16_t
Or change the AVI_MAKEDWORD (uint16_t) , now is uint32_t
And What does the exact memory address mean?
Do you mean the data where to storage?
This is the debug mode show the address .