Skip to main content
gfxfloro
Associate III
January 7, 2020
Question

Trying to use external flash on F469I-DISCO freezes debugger

  • January 7, 2020
  • 4 replies
  • 861 views

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?

This topic has been closed for replies.

4 replies

Martin KJELDSEN
Principal III
January 9, 2020

Hi,

Which debugger are you using?

gfxfloro
gfxfloroAuthor
Associate III
January 9, 2020

ST-LINK (GDB Server) in CubeIDE

gfxfloro
gfxfloroAuthor
Associate III
January 13, 2020

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

gfxfloro
gfxfloroAuthor
Associate III
January 15, 2020

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.