Issues with ISELED library, pre-compiled with Greenhills

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issues with ISELED library, pre-compiled with Greenhills

ソリューションへジャンプ
2,402件の閲覧回数
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,357件の閲覧回数
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,335件の閲覧回数
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,358件の閲覧回数
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 件の賞賛
返信