Error while using S32K1_ISELED_BETA_3.9.0

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

Error while using S32K1_ISELED_BETA_3.9.0

2,771 Views
leila
Contributor III

Hi, 

I just installed the newest ISELED driver S32K1_ISELED_BETA_3.9.0 in the same folde where S32SDK_S32K1xx_RTM_3.0.0 is installed; and used it in my project. But while building the project, I get an error:

../SDK/platform/drivers/src/iseled/gcc/libiseled_S32K14x.a(flexio_iseled_driver.o): In function `digLED_FlexIO_InitInterface':
flexio_iseled_driver.c:(.text.digLED_FlexIO_InitInterface+0x50): undefined reference to `flexIODeviceState'

I can not find any flexio_iseled_driver.c file in the directory installed. I am not sure how to solove this problem.

Would you please help me out?

Labels (1)
Tags (1)
11 Replies

2,479 Views
johnathan_weise
Contributor II

Hello, I am getting an error

Ld error: undefined reference to 'flexIODeviceState'

which I am assuming is related to the original question here? I got it while porting over working code from ISELED_BETA_2.9.2 into 3.9.0 like above. Is the solution the same? If so, I'm not familiar with editing header files and where to add this line...

0 Kudos
Reply

2,479 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

Just add flexio_device_state_t    flexIODeviceState; anywhere in code.

Best regards,

Razvan

 

0 Kudos
Reply

2,479 Views
johnathan_weise
Contributor II

Looks like I also missed including flexio.h which for some reason was not required in the 2.9 version...

thank you for the help

0 Kudos
Reply

2,479 Views
leila
Contributor III

I found the problem. 

I had forgoten to add "flexio_device_state_t flexIODeviceState;" in my project as it is described in the ISELED user guid.

2,479 Views
benjamin_dollin
Contributor I

Hello,

can you share the solution? 

I have the same problem and can't find the solution in the ISELED user guid. 

0 Kudos
Reply

2,479 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

As Leila said you must add in your application this declaration: flexio_device_state_t flexIODeviceState;.

Best regards,

Razvan

0 Kudos
Reply

2,479 Views
benjamin_dollin
Contributor I

Thank you very much for the fast response, it seems to work.

But now I'm stuck on this problem:

pastedImage_1.png

It just stops on this point and did't finish flashing. 

Do you also have a fast solution for this? 

0 Kudos
Reply

2,479 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

Can you try to use openSDA?

Razvan

0 Kudos
Reply

2,479 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

This capture doesn't include any error.

Could you share more details? 

Razvan

0 Kudos
Reply

2,478 Views
benjamin_dollin
Contributor I

There occur no error, it just hang on this point. 

I use J-link Base.

Could it be a hardware problem ? 

0 Kudos
Reply

2,478 Views
leila
Contributor III

Hi,

Just add

flexio_device_state_t    flexIODeviceState;

in the header file where you are initializing ISELED.

0 Kudos
Reply