cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI.mac of STM32F746 Disco board project

Professional
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

1 REPLY 1
Martin KJELDSEN
Chief III

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