Skip to content

Commit c74ee6d

Browse files
authored
Merge pull request #4582 from thread-liu/master
[update] stm32mp1 wifi sdio.
2 parents 11c2087 + 219012d commit c74ee6d

File tree

1 file changed

+6
-2
lines changed
  • bsp/stm32/stm32mp157a-st-discovery/board/ports

1 file changed

+6
-2
lines changed

bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct rthw_sdio
5454
};
5555

5656
/* SYSRAM SDMMC1/2 accesses */
57-
#define SDCARD_ADDR 0x2FFC0000
57+
#define SDCARD_ADDR 0x2FFFF000
5858
#if defined(__CC_ARM) || defined(__CLANG_ARM)
5959
__attribute__((at(SDCARD_ADDR))) static rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
6060
#elif defined ( __GNUC__ )
@@ -579,7 +579,11 @@ int rt_hw_sdio_init(void)
579579
#endif
580580

581581
#ifdef BSP_USING_SDIO2
582-
MX_RTC_Init();
582+
583+
if (IS_ENGINEERING_BOOT_MODE())
584+
{
585+
MX_RTC_Init();
586+
}
583587
LBEE5KL1DX_init();
584588

585589
struct stm32_sdio_des sdio_des2;

0 commit comments

Comments
 (0)