2025-09-16 3:27 AM - last edited on 2025-09-16 4:42 AM by Andrew Neil
Hello everyone,
I am using the STM32N6570-DK.
Background
The example STM32CubeN6/Projects/STM32N6570-DK/Applications/DCMIPP/DCMIPP_ContinuousMode at main · STMicroelectronics/STM32CubeN6 · GitHub is just a FSBL project. So the application is part of the FSBL and limited to 512 KB memory. I want to use this example for my project but I don't want to be limited to the 512 KB. Thats why I tried to migrate this example to an FSBL with load & run application.
What have I done so far?
At first I created a new project and tried to blink a LED in the main.c file of the _Appli project. This worked and I knew the project setup was correct. Then I set up everything what I need for the DCMIPP_ContinuousMode in the .ioc File and also copied the code from the example. So I copied more or less everything thats in the main.c of the DCMIPP_ContinuousMode example to the main.c of my _Appli project. As soon as I could build the _FSBL and _Appli project with no errors I tried to debug it. But I jumped into an HardFaultError and lost my connection to the board.
Debugging
The function that causes the error is ISP_Init(&hcamera_isp, &hdcmipp, 0, &appliHelpers, ISP_IQParamCacheInit[0]). It gets called in the main.c of the _Appli project and I just copied this from the example. And in this function it is the function ISP_Algo_Init(hIsp); which causes the error.
Can someone explain what the problem is and how I can get the DCMIPP_ContinuousMode example to work on a FSBL with load & run application?
Thanks in advance!