STM32N6 VENC at higher resolutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-10 9:23 AM
Hi,
We have STM32N6570-DK and are testing camera input, video encode and write to SD card
We have not been able to make the "VENC_SDCard_Appli" example work, the SD card just contains zeros.
The "VENC_SDCard_ThreadX" example does work however, resulting in an 800x480 video.
Are there any examples on encoding at 1080p resolution? Changing the encoder parameters and level results in memory allocation failures in EncAsicMemAlloc_V2.
Many thanks
- Labels:
-
STM32N6 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 1:02 AM
Hello @therealnerd2
Can you provide details about the reading of the SD card for the VENC_SDCard_Appli demo? Did you follow all the recommendations in the Readme.html of this project below:
- The configuration of OTP124 fuses VDDIO3_HSLV=1 I/O XSPIM_P2 High speed option enabled.
- Have you signed and programmed the FSBL in external memory at address 0x7000 0000 and the Application at 0x7010 0000 by applying the correct header (STM32_SigningTool_CLI.exe)?
- Are you viewing the image from the OV5640 camera on the LCD screen?
- The re-reading of the SDCard must be done in raw mode as explained in the Readme.html in the section After execution.
Best regards
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 3:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 4:04 AM
If I step through the example, I can see that "encoder_prepare" is actually failing, but the error is not being checked.
The error comes from EWLmalloc, which is not able to allocate any memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 4:07 AM
I see this is https://github.com/STMicroelectronics/STM32CubeN6/issues/1. With that patch, the example now runs and the SDcard is now readable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 5:46 AM
Can you please:
1) confirm if the patch in that issue is valid
2) explain how to increase the recording resolution to 1080p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-12 2:41 AM
Hello @therealnerd2 ,
Unfortunately, increasing the resolution to 1080p within VENC_SDCard_ThreadX requires a bit of work. The fact is that 1080p won't fit into the internal memory as in the original application. Camera and encoder buffer allocation requires some rework to be placed in external memory.
Best regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-12 4:21 AM
Hi Daniel,
Thanks for the reply, this makes sense with what we are seeing.
Is such an example using external memory planned? It's a shame for a chip advertised as 1080p capable that we cannot easily prove this working and test power usage.
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 1:16 AM
Hi therealnerd2,
I understand your frustration.
We will strive to provide a 'ready-to-use' 1080p example in upcoming releases
Best regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 2:02 AM
Great, thank you
