cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 FSMC bus access with CubeMX code generationi

gordon239955
Associate
Posted on April 30, 2014 at 04:45

hi,

I have a custom designed board with STM32F07 IC. The FSMC interface is working with certain version of software. recently i tried to use CubeMX to generate low-level code with FSMC HAL. I only added a few lines of code to test FSMC interface.

/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_ETH_Init();
MX_FSMC_Init();
MX_I2C1_Init();
MX_UART5_Init();
MX_USART6_UART_Init();
/* USER CODE BEGIN 2 */
fsmc_addr = 0x60000000;
HAL_SRAM_Read_16b(&hsram1, &fsmc_addr, fsmc_rd, 1);

i have logical analyzer connected to the FSMC bus. the problem is that i don't see NE1 signal asserted and any activity on the bus when the last function is stepped through. can you give me some advise on this? thanks. Best regards Gordon
This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
stm32cube-t
Senior III
Posted on May 09, 2014 at 15:53

Hello,

the code snippet you provide is not sufficient to understand the problem.

Can you provide STM32CubeMX project configuration file (.ioc) and the user code you added.

Thank you.
derun_a
Associate II
Posted on July 11, 2014 at 11:24

Hello,

I have almost the same problem.

I am trying to work with FSMC, my code is the same as above. I didn't add any more user code. I have the SRAM which is connected to NE1. I can't see any activity on the lines OE,WE, NE1. Could some one help me please. There is my *.ioc file in the attachment.

________________

Attachments :

new_board_tst_can_eth_usb_cube.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyOy&d=%2Fa%2F0X0000000bLU%2FJ2Bg7b5COrYQrEqUxGVNUOLurMzXWxhS_qG5qT9yt.k&asPdf=false
stm32cube-t
Senior III
Posted on July 21, 2014 at 17:46

There has been some updates in MX generated code. Can you please confirm you reproduce your issue by:

1/ creating a new project from scratch using STM32CubeMX 4.3 and configuring the peripherals for your use case

2/ test again the generated code.

Thanks.

derun_a
Associate II
Posted on July 25, 2014 at 13:59

I have successfully got access to the memory  using another kind of transfer addresses in function parameters. 

fsmc_addr = 0x60000000;

HAL_SRAM_Read_16b(&hsram1, (uint32_t *)fsmc_addr, fsmc_rd, 1);