Issues with ISELED library, pre-compiled with Greenhills

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

Issues with ISELED library, pre-compiled with Greenhills

Jump to solution
1,274 Views
SorinT
Contributor I

Hello, I am currently working with S32 SDK ISELED, Version 4.8.0 EAR.

I am trying to integrate this library with an application project using the greenhills compiler but I'm having some issues with it.

First of all, when building with the compiler/assembler/linker options specified in the S32 SDK ISELED
Release Notes, the ISELED library does not initialize properly, the flexio and DMA drivers are not fully configured so the ISELED library doesn't work.

I debugged that and found out that the library reads the 2 enumerations from digLED_ConfigType struct as 4 bytes each instead of 1 byte each, as it should, given the --short-enum compiler option. Removing this compiler option worked, the library initializes properly and I am able to command the ISELED chips.

But still, from time to time, I am getting some Hard Faults from inside the library, for unaligned access. Can someone confirm the compiler options that work with the GHS ISELED library for S32K144?

Note: The same issues applies for S32 SDK ISELED Version 4.0.0 RTM.

Thank you!

Labels (1)
0 Kudos
1 Solution
1,229 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

The compile flags for the GHS library are:
CFLAGS:=-cpu=cortexm4 \
-C99 \
--gnu_asm \
-mthumb \
-DEU_DISABLE_ANSILIB_CALLS \
-Wimplicit-int \
-Wshadow \
-Wtrigraphs \
-Ogeneral \
-Wundef \
-fhard \
-fpu=vfpv4_d16 \
-preprocess_assembly_files \
-fno-common \
-version_info

 

Could you please double-check?

 

Thank you,

BR, Daniel

View solution in original post

0 Kudos
2 Replies
1,207 Views
SorinT
Contributor I

Hello,

Thank you, it is working much better now. Still, I am having some hard faults, more rare actually, when I'm reinitializing the library after a power cutoff on the ISELED chips. The reason seems to be that the library resets the .chainLength and .retData from the digLED_ReadDataResultType input structure and a timoutCallback happening sometime in the process. Is there a "right" way to do the reinitialization of the library?

Regards,

Sorin

0 Kudos
1,230 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

The compile flags for the GHS library are:
CFLAGS:=-cpu=cortexm4 \
-C99 \
--gnu_asm \
-mthumb \
-DEU_DISABLE_ANSILIB_CALLS \
-Wimplicit-int \
-Wshadow \
-Wtrigraphs \
-Ogeneral \
-Wundef \
-fhard \
-fpu=vfpv4_d16 \
-preprocess_assembly_files \
-fno-common \
-version_info

 

Could you please double-check?

 

Thank you,

BR, Daniel

0 Kudos