diff --git a/configs/stm32f746g-disco/src/stm32_appinitialize.c b/configs/stm32f746g-disco/src/stm32_appinitialize.c index 1ea76548960..aa2818899ab 100644 --- a/configs/stm32f746g-disco/src/stm32_appinitialize.c +++ b/configs/stm32f746g-disco/src/stm32_appinitialize.c @@ -65,6 +65,14 @@ int board_app_initialize(void) #ifdef CONFIG_FS_PROCFS int ret; +#ifdef CONFIG_STM32_CCM_PROCFS + /* Register the CCM procfs entry. This must be done before the procfs is + * mounted. + */ + + (void)ccm_procfs_register(); +#endif + /* Mount the procfs file system */ ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL); @@ -73,12 +81,6 @@ int board_app_initialize(void) SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", SAMV71_PROCFS_MOUNTPOINT, ret); } - -#ifdef CONFIG_STM32_CCM_PROCFS - /* Register the CCM procfs entry */ - - (void)ccm_procfs_register(); -#endif #endif return OK;