2021-02-05 10:42 AM
Have anybody QSPI loader algorythm for Keil?
I can't create workable code....
Solved! Go to Solution.
2021-02-05 02:14 PM
https://www.keil.com/pack/Keil.STM32H7xx_DFP.2.7.0.pack
Tip: It's a .ZIP file...
2021-02-05 12:27 PM
When you have installed stlink utility try read readme.txt in
c:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ExternalLoader\MX25LM51245G_STM32L4R9I-DISCO
here exist too keil project...
2021-02-05 12:50 PM
I want for STM32H743 and MT25QL
2021-02-05 12:53 PM
thanks for link, a used this sample when I worked with F746 and w25q - without problems.
But H743 and MT25QL.......
void QSPI_WriteEnable(void)
{
QUADSPI_ComConfig_InitTypeDef QUADSPI_ComConfig_InitStructure;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_FMode = QUADSPI_ComConfig_FMode_Indirect_Write;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_DDRMode = QUADSPI_ComConfig_DDRMode_Disable;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_SIOOMode = QUADSPI_ComConfig_SIOOMode_Disable;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_DummyCycles = 0;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_ABSize = QUADSPI_ComConfig_ABSize_8bit;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_ADSize = QUADSPI_ComConfig_ADSize_24bit;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_DMode = QUADSPI_ComConfig_DMode_NoData;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_ADMode = QUADSPI_ComConfig_ADMode_NoAddress;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_ABMode = QUADSPI_ComConfig_ABMode_NoAlternateByte;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_IMode = QUADSPI_ComConfig_IMode_1Line;
QUADSPI_SetFIFOThreshold(0);
QUADSPI_SetDataLength(0);
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_Ins = WRITE_ENABLE_CMD ;
QUADSPI_ComConfig_Init(&QUADSPI_ComConfig_InitStructure);
while(QUADSPI_GetFlagStatus(QUADSPI_FLAG_BUSY)==SET);
sprintf((char *)str, "WR1: 0x%08X \r\n ",QUADSPI_GetFMode());
HAL_UART_Transmit(&huart7, str, strlen((char *)str), 3000);
QUADSPI_AutoPollingMode_Config(0x02,0x02,QUADSPI_PMM_AND);
QUADSPI_AutoPollingModeStopCmd(ENABLE);
QUADSPI_SetDataLength(0x00);
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_FMode = QUADSPI_ComConfig_FMode_Auto_Polling;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_ADMode = QUADSPI_ComConfig_ADMode_NoAddress;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_DMode = QUADSPI_ComConfig_DMode_1Line;
QUADSPI_ComConfig_InitStructure.QUADSPI_ComConfig_Ins = READ_STATUS_REGISTER_CMD;
QUADSPI_ComConfig_Init(&QUADSPI_ComConfig_InitStructure);
sprintf((char *)str, "WR2: 0x%08X \r\n ",QUADSPI_GetFMode());
HAL_UART_Transmit(&huart7, str, strlen((char *)str), 3000);
while(QUADSPI_GetFlagStatus(QUADSPI_FLAG_SM)==RESET);
QUADSPI_ClearFlag(QUADSPI_FLAG_SM);
QUADSPI_ClearFlag(QUADSPI_FLAG_TC);
while(QUADSPI_GetFlagStatus(QUADSPI_FLAG_BUSY)==SET);
sprintf((char *)str, "WR3: 0x%08X \r\n ",QUADSPI_GetFMode());
HAL_UART_Transmit(&huart7, str, strlen((char *)str), 3000);
}
it halts on
while(QUADSPI_GetFlagStatus(QUADSPI_FLAG_SM)==RESET);
2021-02-05 01:18 PM
On what pins? Don't they have some in the "Packs" directories for the H7 related to the EVAL or DISCO boards?
C:\Keil5xx\Arm\Packs\Keil\STM32H7xx_DFP\2.7.0\CMSIS\Flash\STM32H747I_Disco_QSPI\QSPI
C:\Keil5xx\Arm\Packs\Keil\STM32H7xx_DFP\2.7.0\CMSIS\Flash\STM32H7xx_MT25TL01G.FLM
The QL's should be a relatively short walk
2021-02-05 01:40 PM
Your second link is for MT25TL01G, but I have MT25QL128
Yor first link - my DFP version is 2.4.0, updater list contains onl 2.5.1. Where you got 2.7.0 version?
Folder STM32H747IDisco_QSPI\QSPI contains SOURCE or .FLM?
2021-02-05 01:46 PM
My pins
2021-02-05 01:56 PM
Source code/project, the top level has .FLM's
Using MDK 5.33, pulling most current packs itself.
>>Your second link is for MT25TL01G, but I have MT25QL128
Sure, but you were looking for working examples, and this should be relatively close, the QL128 only needing 3-byte addressing. These are half a dozen or more examples under the CMSIS\Flash trees.
I could code something exact if the bounty was compelling.
2021-02-05 01:58 PM
Can you attach Source with project here?
2021-02-05 02:14 PM
https://www.keil.com/pack/Keil.STM32H7xx_DFP.2.7.0.pack
Tip: It's a .ZIP file...