2014-04-29 07:45 PM
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
2014-05-09 06:53 AM
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.2014-07-11 02:24 AM
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=false2014-07-21 08:46 AM
2014-07-25 04:59 AM
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);