cancel
Showing results for 
Search instead for 
Did you mean: 

AVI format with Motion-JPEG

Charlie CHEN
Associate III

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.0693W000000UTGXQA4.png

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!

4 REPLIES 4
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".
Charlie CHEN
Associate III

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!

What exactly do you mean by "change the size format from uint32_t to uint16_t"?
I'm guessing pavi->aviInfo.StreamSize is not actually at 0x24000000 and is somewhere past that point. Did you look at the exact memory address?
If you feel a post has answered your question, please click "Accept as Solution".
Charlie CHEN
Associate III

Change the StreamSize uint32_t to uint16_t

0693W000000UTRpQAO.png

Or change the AVI_MAKEDWORD (uint16_t) , now is uint32_t

0693W000000UTSYQA4.png

And What does the exact memory address mean?

Do you mean the data where to storage?

This is the debug mode show the address .

0693W000000UTnCQAW.png