Skip to main content
Professional
Associate III
April 16, 2019
Solved

QSPI.mac of STM32F746 Disco board project

  • April 16, 2019
  • 1 reply
  • 835 views

Hello,

When generating a project for STM32F746 Disco board a QSPI.mac is generated.

This file contains instruction to load into RAM

 __hwReset(0);   

 __message "---- setup device ----" ;

 Reg = __readMemory32(0x40023838, "Memory"); // RCC.AHB3ENR enable QSPI

 Reg |= (0x02UL);

 __writeMemory32(Reg, 0x40023838, "Memory");

....

How is it generated ?

How can we modify it as we uses different QUAD SPI on our target ?

thanks for any support

best regards

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi @Professional​,

Are you generating the project from within TouchGFX Designer? If so, which version of the application template are you using? I'm guessing 1.1.0. There is a 2.0.0 available.

The .mac files are only for IAR flashloaders, but i would suggest you simply program your application through ST-Link and choose the QSPI chip in there. Generally, we've moved away from IAR based flashloaders and sticking to ST-Link or STCubeProgrammer

/Martin

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
April 23, 2019

Hi @Professional​,

Are you generating the project from within TouchGFX Designer? If so, which version of the application template are you using? I'm guessing 1.1.0. There is a 2.0.0 available.

The .mac files are only for IAR flashloaders, but i would suggest you simply program your application through ST-Link and choose the QSPI chip in there. Generally, we've moved away from IAR based flashloaders and sticking to ST-Link or STCubeProgrammer

/Martin