Wednesday, November 22nd 2017, 10:49pm UTC+1

You are not logged in.

  • Login
  • Register

jmag999

Beginner

Date of registration: Aug 13th 2014

Posts: 16

1

Friday, August 11th 2017, 2:17am

[SOLVED] STM32F746 External QSPI Programming with J-Flash

I am trying to get this working in j-flash. I edited JLinkDevices.xml in the C:\Program Files (x86)\SEGGER\JLink_V618 directory. I added the following to the file:


<Device>
<ChipInfo Vendor="ST" Name="STM32F746NG" Core="JLINK_CORE_CORTEX_M7" />
<FlashBankInfo Name="QSPI Flash" BaseAddr="0x90000000" MaxSize="0x01000000" Loader="ST_STM32F746G_Disco_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
</Device>

I also copied the ST_STM32F746G_Disco_QSPI.elf to the same directory.

When I open my j-flash project with the STM32F746NG selected, I don't see anything related to the external flash bank. When I try to program, I get "Could not execute task. Selected Data (0x90000000 .... does not fit into the selected flash sectors.

Obviously it doesn't know about the new space. Have I edited the wrong xml file?

jmag999

Beginner

Date of registration: Aug 13th 2014

Posts: 16

2

Friday, August 11th 2017, 2:21am

I figured it out. I had to go in and re-select the MCU. Then it showed the 1MB + 32MB banks. I figured just re-opening j-flash after editing the xml file would update the project but this is not the case.

jmag999

Beginner

Date of registration: Aug 13th 2014

Posts: 16

3

Friday, August 11th 2017, 2:26am

It looks like the Discovery board J-link does not work with J-Flash (even though I have another J-link that does have a license). Is there any other way to get this programmed without switching the on-board debugger back to a st-link?

jmag999

Beginner

Date of registration: Aug 13th 2014

Posts: 16

4

Friday, August 11th 2017, 2:53am

Wow, it worked through GDB in Atollic. Awesome! I didn't have to do anything additional to get this to work besides adding the lines to the xml file and copying the elf file to the segger driver install directory.

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,691

5

Friday, October 13th 2017, 3:49pm

Hi,


good to hear that it works for you :)
Can I close this thread?

Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link

jmag999

Beginner

Date of registration: Aug 13th 2014

Posts: 16

6

Friday, October 13th 2017, 3:52pm

Sure