2017-06-04 11:27 PM
Hi,
I am trying to configure STM32F207ZG nucleo board for synchronous muxed NOR flash and have configured for the same over cubeMX
after generating the code i am calling HAL_NOR_Program and HAL_NOR_ReadBuffer in my code.
I probed FSMC_Clk signal but no trace of it on DSO.
2017-06-05 06:13 AM
Hi
Dhuri.Pranay
,What about your initialization code and configuration?
Please share your .ioc file to check if you have correctly configured your project.
Thanks
Imen
2017-06-05 09:26 AM
hi
DAHMEN.IMEN
,I have attached .ioc file to the query now, please have a look.
Thanks.
2017-06-07 10:53 AM
Hi
Dhuri.Pranay
,Your project worked great and FSMC_Clk signalappears for me.
Based on your configuration for
synchronous muxed NOR flash
, I just added read access in the While loop to theBANK1
with address 0x60000000. Then theFSMC_Clk
signal appears./* USER CODE BEGIN WHILE */
while (1) { /* USER CODE END WHILE *//* USER CODE BEGIN 3 */
tmp = *(__IO uint16_t*) (0x60000000);}
/* USER CODE END 3 */}
Regards
Imen
2017-06-08 02:15 AM
Thanks
DAHMEN.IMEN
,I was callingHAL_NOR_ReadBufferto read in while loop ,the problem was with the address which I was using for read cycle. I was sending the address as 0x00000000, then I changed it to 0x60000000 as you said ,now I am able to see FSMC_CLK on LA.
2017-06-14 01:23 AM
Hi
DAHMEN.IMEN
,For the same configuration(sync muxed NOR) I checked for write operation by runningHAL_NOR_Program()in while loop.
uint32_t addr= 0x60000000;
uint16_t data=0xEEEE;
while(1)
{
(HAL_NOR_Program(&hnor1,&addr, &data);
}
Then I probed AD[3:0] ,NOE ,NWE to check program but what I am getting is unexpected -
D7:- NWE
D6:- NL
D[0:3]:- AD[0:3]
here data(0xEEEE) is not as I am sending (for
AD[0:3] it should be E
)but getting something different as output.