The trick will not work if MCU is in debug mode.You can check the DBG_STANDBY bit in DBG_CR register: READ_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);it must be 0 for the correct restart to happen. you can useCLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);...
you may have problems with converting RGB to YCbCrif you are unlucky to use jpeg_utils.c from one of these beautiful stm examples, you should be aware that there is a bug in JPEG_InitPreProcColorTables function.They add 1 for a nicer rounding: ((int3...