2020-11-05 01:58 PM
Hi,
I have been building on a demo STM32F746g-DISCO touchgfx application for a little while now.
My next thing I want to acheive is software update. I realised that the application do not fit in the internal flash.
So I am thinking about my options. Either:
The approach I have tried going with is 1). But I am having issues jumping to the application but with no success re-enabling interrupts etc, normaly Hal_Delay() stop working, or some other strange issues, from turning on CPU cache or initiating SystemClock Config twice.
Another question is why are there 2 ld files in the touchgfx project, one ram and one flash.
Which way would you guys have gone solving this?
BR
Robin
2020-11-18 04:28 AM
What won't fit in internal flash? application + assets? Just application? You can place assets in qspi, leaving code in internal.
the .ld files are generated by CubeMX. You want to use the _FLASH version. The RAM version is for putting startup code etc into ram.
e.g.
/* Sections */
SECTIONS
{
/* The startup code into "RAM" Ram type memory */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >RAM
/Martin