I have an SDMMC FileX thread using thread. The application builds fine. When I enable "Event Trace" option in the ThreadX properties tab and rebuild, the build breaks. The build log says: 'Building file: ../src/blinky_thread_entry.c' 'Invoking: Cross ARM C Compiler' C:\Renesas\e2_studio\eclipse\../Utilities/isdebuild arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O2 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\src" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\src\synergy_gen" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy_cfg\ssp_cfg\bsp" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy_cfg\ssp_cfg\driver" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\bsp" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\bsp\cmsis\Include" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\driver\api" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\driver\instances" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy_cfg\ssp_cfg\framework\el" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\framework\el" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\src\framework\el\tx" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy_cfg\ssp_cfg\framework" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\framework\api" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\inc\framework\instances" -I"C:\Users\Ashwin\e2_studio\workspace\BLINKY2\synergy\ssp\src\framework\el\tx\tx_src" -std=c99 -MMD -MP -MF"src/blinky_thread_entry.d" -MT"src/blinky_thread_entry.o" -c -o "src/blinky_thread_entry.o" -x c "../src/blinky_thread_entry.c" ../src/synergy_gen/blinky_thread.c:12:26: error: lvalue required as unary '&' operand #define SDMMC_TRANSFER0 (&NULL) ^ ../src/synergy_gen/blinky_thread.c:17:27: note: in expansion of macro 'SDMMC_TRANSFER0' .p_lower_lvl_transfer = SDMMC_TRANSFER0, .p_extend = NULL, }; ^ ../src/synergy_gen/blinky_thread.c: In function 'SF_EL_FX_MediaFormat': ../src/synergy_gen/blinky_thread.c:42:33: warning: variable 'p_block_media' set but not used [-Wunused-but-set-variable] sf_block_media_instance_t * p_block_media; ^ src/synergy_gen/subdir.mk:24: recipe for target 'src/synergy_gen/blinky_thread.o' failed make: *** [src/synergy_gen/blinky_thread.o] Error 1 make: *** Waiting for unfinished jobs.... 'Finished building: ../src/blinky_thread_entry.c' ' ' When disabling the "Event Trace" option and rebuilding, the error goes away. Is there a dependency I'm missing to make TraceX event tracing.
↧