Issues with ISELED library, pre-compiled with Greenhills

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Issues with ISELED library, pre-compiled with Greenhills

跳至解决方案
2,412 次查看
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!

标签 (1)
0 项奖励
回复
1 解答
2,367 次查看
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 项奖励
回复
2 回复数
2,345 次查看
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 项奖励
回复
2,368 次查看
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 项奖励
回复