May 24, 2021
03:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 24, 2021
03:28 AM
Hello All,
SDMMC_BLOCK V4.0.32 can be erroneously configured to same name (SDMMC_BLOCK_SD) for a a macro and a symbol.
sdmmc_block_conf.h:
sdmmc_block_conf.c:
Which does not compile, as there is no validity check for the application instance label:
Regards,
Mark.
SDMMC_BLOCK V4.0.32 can be erroneously configured to same name (SDMMC_BLOCK_SD) for a a macro and a symbol.
sdmmc_block_conf.h:
#define SDMMC_BLOCK_MAJOR_VERSION (4U) /**< Major version */
#define SDMMC_BLOCK_MINOR_VERSION (0U) /**< Minor version */
#define SDMMC_BLOCK_PATCH_VERSION (32U) /**< Patch version */
#define SDMMC_BLOCK_SD
#define SDMMC_BLOCK_SD_NUM_DELAY_ELEMENTS (8U)
#define SDMMC_BLOCK_SD_SUPPORT_4_BUS_WIDTH (1U)
#define SDMMC_BLOCK_RTOS_MODE_SELECT (1U)
sdmmc_block_conf.c:
/* SDMMC SD mode instance */
SDMMC_BLOCK_SD_t SDMMC_BLOCK_SD =
{
.sdmmc = XMC_SDMMC, /* SDMMC instance */
.int_priority = 63U, /* Node interrupt priority */
.int_sub_priority = 0U, /* Node interrupt sub-priority */
.mode_init_flag = false, /* Mode initialization false by default */
.rtos = &SDMMC_BLOCK_CMSIS_RTOS, /* RTOS resources */
};
Which does not compile, as there is no validity check for the application instance label:
Regards,
Mark.
Solved! Go to Solution.
- Tags:
- IFX
1 Solution
Jun 06, 2021
11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2021
11:51 PM
Hi Mark,
Thanks for sharing the info to other community users. The validity check for instance label should be taken care in the future versions of the software support for the device.
Best Regards,
Vasanth
Thanks for sharing the info to other community users. The validity check for instance label should be taken care in the future versions of the software support for the device.
Best Regards,
Vasanth
1 Reply
Jun 06, 2021
11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2021
11:51 PM
Hi Mark,
Thanks for sharing the info to other community users. The validity check for instance label should be taken care in the future versions of the software support for the device.
Best Regards,
Vasanth
Thanks for sharing the info to other community users. The validity check for instance label should be taken care in the future versions of the software support for the device.
Best Regards,
Vasanth