Karol, I imported you example project in e2studio, and I removed all the features that belongs to USB. My new emmc thread function is simply: #include "new_thread0.h" void new_thread0_entry(void); static bool sdmmc_wp; /* EMMC Thread entry function */ void new_thread0_entry(void) { UINT status; status = g_sf_block_media_sdmmc1.p_api- open(g_sf_block_media_sdmmc1.p_ctrl, g_sf_block_media_sdmmc1.p_cfg); if (status) while (1); status = g_sf_block_media_sdmmc1.p_api- ioctl(g_sf_block_media_sdmmc1.p_ctrl, SSP_COMMAND_GET_WRITE_PROTECTED, &sdmmc_wp); if (status) while (1); /* TODO: add your own code here */ while (1) { tx_thread_sleep (1); } } When I debug the project, the application stops in the first while(1), giving the error code 40000 (sdcard or emmc device failed to initialize). My need is to put the GuiX images and some data on the eMMC (because the internal flash of the S7 isn't enough). Is there something I am missing? Here is the configuration for my eMMC thread:
↧