cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to use external flash on F469I-DISCO freezes debugger

gfxfloro
Senior

Hi,

I am trying to make use of the external flash on the F469I-Disco Board. I tried following the instructions here:

https://touchgfx.zendesk.com/hc/en-us/articles/205886201-Placing-Assets-in-Flash-Memory

by adding these lines to my linker file:

    QUADSPI (rx)	: ORIGIN = ORIGIN(FLASH) + LENGTH(FLASH), LENGTH = 16M
ExtFlashSection :
{
   *(ExtFlashSection ExtFlashSection.*)
   *(FontFlashSection FontFlashSection.*)
   *(ExtFlashSection TextFlashSection.*)
   *(.gnu.linkonce.r.*)
   . = ALIGN(0x4);
} >QUADSPI

Now when I try to debug the debugger stops after the message

Waiting for debugger connection...

Debugger connected

When I'm not using the external flash I have no problems debugging.

Is there anything else I have to modify?

4 REPLIES 4
Martin KJELDSEN
Chief III

Hi,

Which debugger are you using?

gfxfloro
Senior

ST-LINK (GDB Server) in CubeIDE

gfxfloro
Senior

Any ideas why this would be happening? I'd really like to start using the external storage.

gfxfloro
Senior

I tried some more, and when changing the start address of QSPI to 0x90000000 the debugger works properly, but when starting the execution on the MCU the hard fault handler is entered with a precise data access violation and BFAR set to 0x90000000.

I tried following this video:

https://www.youtube.com/watch?v=237lPdMsDZs&feature=youtu.be

and even copying the settings used for the F7 board in it, but to no avail. Unfortunately TouchGFX doesn't generate the same files for my board, so I can't use specific settings.