Did you use costom FW or code example? Have you ever tried any FreeRTOS code example as DFU app1?
I will also try to test this case, and show you my test result.
I have tried out a FreeRTOS code example under DFU mode and there is no any problem. Did you get this working?
For cm4 successful start in DFU app1, note change below line in main_cm0p.c
2 of 2 people found this helpful
I was in contact with OP about this topic and found out the problem.
The first was redirection the start address of the CM4 code which was fixed in the second reply here.
The other problem was not enough RAM allocation. I was using a custom linker script and forgot to update the ones used for DFU instead of the original ones, leaving me with a tiny fraction of the RAM needed to run the FreeRTOS task scheduler. I believe I needed 1024*48 bytes allocated in FreeRTOS.h and without increasing the RAM in the linker script for app1, the script would fail on the stack over ram check.
All is solved now however and the program works perfectly!