Finally, got all the modules working properly, JPEG, LTDC, and NOR flash all working and test out good. All the HAL issues were because of an issue with CUBEMx, and its code generation for IAR. CubeMx doesn't setup the linker file properly for the STM code it generates, especially for JPEG init. IAR uses a fixed 'stack size' in the linker file, but their JPEG huffman code requires more than they specified, so the JPEG init overwrites other vars in memory, and wrecks havoc.
I will let STM know their CubeMx gen for IAR needs a little tweak there... but anyhow, all looks good, now moving on to actually writing some code and setting up all the rest of the Perips....
I setup this project to work in both IAR and TrueStudio, as TrueStudio is quite nice (and free), but I still prefer IAR a bit over TrueStudio, mostly because I've just used it so much I can navigate faster in it..
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.