conflicting types for 'task_handler_t'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

conflicting types for 'task_handler_t'

Jump to solution
2,149 Views
Anonymous
Deactivated User

I have built a test project using ConfigTools for LPC54606J512BD100 with MCUXpresso IDE v11.6.1 [Build 8255].

When I try to compile, I get the error "conflicting types for 'task_handler_t'" in file fsl_os_abstraction_bm.c

This project has no code added or modified by me and ConfigTools shows 0 errors and 0 warnings.

I'm not sure what file I need upload to this forum entry for someone to try to reproduce.

 

0 Kudos
Reply
1 Solution
2,067 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @Anonymous,

Thank you for the feedback, we will let the team in charge know about this issue.

Best regards, Raul.

View solution in original post

0 Kudos
Reply
8 Replies
2,109 Views
Anonymous
Deactivated User


Six files in the osa/ directory.

Screenshot_1.png

 

 

 

 

 

Yes, I added FreeRTOS


I did not add osa/ before using the ConfigTools. Everything was done through
that interface.


I added:
Operating Systems:
FreeRTOS kernel

Drivers:
adc
clock
common
ctimer
dma
dmic
dmic_dma
flexcomm
flexcomm_i2s
flexcomm_i2s_dma
gpio
i2c
i2c_dma
i2c_freertos
iocon
power
reset
sdif
spi
spi_dma
spi_freertos
usart
usart_dma
usart_freertos

CMS Include:
CMSIS_Include_CM
LPC54606_CMSIS
LPC54606_system

Utilities:
assert
debug_console
serial_manager
usart_adapter

Middleware:
File System
FAT File System
fatfs
mmc
ram
sd
usb

Memories
SDMMC Stack
mmc
sd
sdmmc_host_sdif_interrupt
sdmmc_osa_bm

0 Kudos
Reply
2,106 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @Anonymous,

It seems there is a situation with the FATFS Middleware and the MMC disk.

RaulRomero_0-1671743446691.png

Configuring the MMC disk, ConfigTools adds files from baremetal operating system: fsl_os_abstraction_bm.c and fsl_os_abstraction_bm.h; for make the MSDK adaptation configuration to work.

The problem with these files being added at OSA folder, is that you have the variable "task_handler_t" declared in two files: fsl_os_abstraction_bm.c and fsl_os_abstraction_free_rtos.c; making the build to fail.

Regards, Raul.

0 Kudos
Reply
2,097 Views
Anonymous
Deactivated User

Thank you for the explanation.

Do you think this will be corrected in an update?

0 Kudos
Reply
2,068 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @Anonymous,

Thank you for the feedback, we will let the team in charge know about this issue.

Best regards, Raul.

0 Kudos
Reply
923 Views
stefanct
Contributor III

This is still a problem, at least for i.MX RT MCUs. One has to exclude fsl_os_abstraction_bm.c from the build after adding the freertos component to an existing project via the sdk components manager with that family. I guess it's the same underlying issue.

0 Kudos
Reply
2,063 Views
Anonymous
Deactivated User
Thanks a lot for looking into this.
0 Kudos
Reply
2,113 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @Anonymous,

Trying to replicate your error, there is a possible redefinition of "task_handler_t" in files inside folder OSA. This redefinition is making your program to fail in building.

Could you please help us checking the OSA folder? How many files do you have? Did you add the OSA component before the ConfigTools configuration?

RaulRomero_0-1671732422961.png

Also, are you using FreeRTOS or baremetal for your aplication? What modules/peripherals are you using or editing trough ConfigTools?

Best regards, Raul.

0 Kudos
Reply
2,117 Views
Anonymous
Deactivated User

Somewhat disappointing no one from NXP seems concerned ConfigTools is creating code with errors.

0 Kudos
Reply