cancel
Showing results for 
Search instead for 
Did you mean: 

FSMC_CLK is not running for muxed NOR configuration

Pranay Dhuri
Associate II
Posted on June 05, 2017 at 08:27

Hi,

I am trying to configure STM32F207ZG nucleo board for synchronous muxed NOR flash and have configured for the same over cubeMX 

0690X00000607EOQAY.png

after generating the code i am calling HAL_NOR_Program and HAL_NOR_ReadBuffer in my code.

0690X00000607EUQAY.png

I probed FSMC_Clk signal but no trace of it on DSO.

5 REPLIES 5
Imen.D
ST Employee
Posted on June 05, 2017 at 15:13

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 05, 2017 at 16:26

hi

DAHMEN.IMEN

‌ ,

I have attached .ioc file to the query now, please have a look.

Thanks.

Posted on June 07, 2017 at 17:53

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 the

BANK1

with address 0x60000000. Then the

FSMC_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 */

}

0690X00000607FqQAI.png

0690X00000607FlQAI.png

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 08, 2017 at 09:15

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.

Pranay Dhuri
Associate II
Posted on June 14, 2017 at 10:23

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 -0690X00000602UHQAY.bmp

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.