TSS library for KL46 board using new KDS+PE  tool

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

TSS library for KL46 board using new KDS+PE  tool

ソリューションへジャンプ
6,109件の閲覧回数
bheemarao
Contributor II

Hi,


I am trying to work on TSS library for KL46 board using new KDS+PE tool.

I just added TSS_Library module and assigned PTB16, PTB17 for electrodes and ‘Aslider’ as control type.

 

I Generate the code and After cleaning i builded but getting below errors.

 

Is there any working example projects in KDS+PE for slider in KDS for KL46.


Best Regards

Bheema Rao

 

ラベル(1)
1 解決策
4,411件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hello Bheema,

I have it working on my side for the FRDM-KL25Z (I do not have a KL46Z at hand right now). See Tutorial: Touching the Freedom KL25Z Board | MCU on Eclipse about the project setup (for CodeWarrior). I have attached for you my KDS project (you find as well on GitHub: mcuoneclipse/Examples/KDS/FRDM-KL25Z/KL25Z_Touch at master · ErichStyger/mcuoneclipse · GitHub).

There are two differences between KDS and CodeWarrior:

  1. Add the TSS library to the linker options
  2. Change compiler option to accept asm("...")

1. Linker library: add the TSS library and path to the project settings

pastedImage_0.png

2. Change the compiler language so it accepts the assembly syntax used in the TSS library:

pastedImage_1.png

With this, things should work on your end too.

I hope this helps,

Erich

元の投稿で解決策を見る

6 返答(返信)
4,411件の閲覧回数
l0g1x
Contributor I

Erich,

I loaded up the project zip file you attached 2 messages above this, and am getting the following error (KDS 3.0.0 with Processor Expert) and not sure at all what to do. Also, i noticed that TSS 3_1 does not work either. Is there a reason your project uses 3_0?

15:28:01 **** Incremental Build of configuration Debug for project KL25Z_Touch ****

make -j4 all

'Building file: ../Sources/TSS/._TSS_Freemaster.c'

'Building file: ../Sources/TSS/._TSS_Sensor.c'

'Building file: ../Sources/TSS/._TSS_SensorGPIO.c'

'Building file: ../Sources/TSS/._TSS_SensorTSI.c'

'Invoking: Cross ARM C Compiler'

'Invoking: Cross ARM C Compiler'

arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/pdd/inc" -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/iofiles" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Generated_Code" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources/TSS" -ansi -MMD -MP -MF"Sources/TSS/._TSS_Freemaster.d" -MT"Sources/TSS/._TSS_Freemaster.o" -c -o "Sources/TSS/._TSS_Freemaster.o" "../Sources/TSS/._TSS_Freemaster.c"

'Invoking: Cross ARM C Compiler'

'Invoking: Cross ARM C Compiler'

arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/pdd/inc" -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/iofiles" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Generated_Code" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources/TSS" -ansi -MMD -MP -MF"Sources/TSS/._TSS_Sensor.d" -MT"Sources/TSS/._TSS_Sensor.o" -c -o "Sources/TSS/._TSS_Sensor.o" "../Sources/TSS/._TSS_Sensor.c"

arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/pdd/inc" -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/iofiles" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Generated_Code" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources/TSS" -ansi -MMD -MP -MF"Sources/TSS/._TSS_SensorGPIO.d" -MT"Sources/TSS/._TSS_SensorGPIO.o" -c -o "Sources/TSS/._TSS_SensorGPIO.o" "../Sources/TSS/._TSS_SensorGPIO.c"

arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/pdd/inc" -I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/iofiles" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Generated_Code" -I"C:/Users/krystian/Desktop/KL25Z_Touch/Sources/TSS" -ansi -MMD -MP -MF"Sources/TSS/._TSS_SensorTSI.d" -MT"Sources/TSS/._TSS_SensorTSI.o" -c -o "Sources/TSS/._TSS_SensorTSI.o" "../Sources/TSS/._TSS_SensorTSI.c"

../Sources/TSS/._TSS_SensorTSI.c:1:1: warning: null character(s) ignored [enabled by default]

D9-BF75-E4988137539E

^

../Sources/TSS/._TSS_Freemaster.c:1:1: warning: null character(s) ignored [enabled by default]

D9-BF75-E4988137539E

^

../Sources/TSS/._TSS_Sensor.c:1:1: warning: null character(s) ignored [enabled by default]

D9-BF75-E4988137539E

^

../Sources/TSS/._TSS_SensorGPIO.c:1:1: warning: null character(s) ignored [enabled by default]

D9-BF75-E4988137539E

^

../Sources/TSS/._TSS_Freemaster.c:1:2: error: stray '\5' in program

../Sources/TSS/._TSS_Freemaster.c:1:2: error: stray '\26' in program

../Sources/TSS/._TSS_Freemaster.c:1:2: error: stray '\7' in program

../Sources/TSS/._TSS_Sensor.c:1:2: error: stray '\5' in program

../Sources/TSS/._TSS_Sensor.c:1:2: error: stray '\26' in program

../Sources/TSS/._TSS_Sensor.c:1:2: error: stray '\7' in program

../Sources/TSS/._TSS_Freemaster.c:1:5: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorGPIO.c:1:2: error: stray '\5' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:2: error: stray '\26' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:2: error: stray '\7' in program

../Sources/TSS/._TSS_Sensor.c:1:5: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:2: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:5: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:7: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorGPIO.c:1:2: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:7: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorGPIO.c:1:9: error: unknown type name 'Mac'

../Sources/TSS/._TSS_Sensor.c:1:2: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'X'

../Sources/TSS/._TSS_SensorGPIO.c:1:17: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:9: error: unknown type name 'Mac'

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'X'

../Sources/TSS/._TSS_SensorGPIO.c:1:27: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:17: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:35: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:27: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:7: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:35: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:9: error: unknown type name 'Mac'

../Sources/TSS/._TSS_Sensor.c:1:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'X'

../Sources/TSS/._TSS_Sensor.c:1:17: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\260' in program

../Sources/TSS/._TSS_Sensor.c:1:27: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:35: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:2: error: stray '\5' in program

../Sources/TSS/._TSS_SensorTSI.c:1:2: error: stray '\26' in program

../Sources/TSS/._TSS_Freemaster.c:1:39: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\260' in program

../Sources/TSS/._TSS_Sensor.c:1:39: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorTSI.c:1:2: error: stray '\7' in program

../Sources/TSS/._TSS_SensorTSI.c:1:5: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:2: error: stray '\2' in program

../Sources/TSS/._TSS_SensorTSI.c:1:7: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:9: error: unknown type name 'Mac'

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'X'

../Sources/TSS/._TSS_SensorTSI.c:1:17: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorTSI.c:1:27: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\260' in program

../Sources/TSS/._TSS_SensorTSI.c:1:35: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:43: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\260' in program

../Sources/TSS/._TSS_SensorTSI.c:1:39: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:43: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:39: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:43: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\342' in program

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\342' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\2' in program

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\342' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:43: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Freemaster.c:1:47: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:47: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\16' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\342' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\1' in program

../Sources/TSS/._TSS_Freemaster.c:1:16: error: stray '\36' in program

cc1.exe: out of memory allocating 1677721600 bytes

../Sources/TSS/._TSS_Sensor.c:1:47: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\1' in program

../Sources/TSS/._TSS_SensorTSI.c:1:16: error: stray '\36' in program

cc1.exe: out of memory allocating 1677721600 bytes

make: *** [Sources/TSS/._TSS_SensorTSI.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [Sources/TSS/._TSS_Freemaster.o] Error 1

../Sources/TSS/._TSS_SensorGPIO.c:1:47: warning: null character(s) ignored [enabled by default]

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\1' in program

../Sources/TSS/._TSS_Sensor.c:1:16: error: stray '\36' in program

cc1.exe: out of memory allocating 1677721600 bytes

make: *** [Sources/TSS/._TSS_Sensor.o] Error 1

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\1' in program

../Sources/TSS/._TSS_SensorGPIO.c:1:16: error: stray '\36' in program

cc1.exe: out of memory allocating 1677721600 bytes

make: *** [Sources/TSS/._TSS_SensorGPIO.o] Error 1

15:28:03 Build Finished (took 1s.622ms)

0 件の賞賛
返信
4,412件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hello Bheema,

I have it working on my side for the FRDM-KL25Z (I do not have a KL46Z at hand right now). See Tutorial: Touching the Freedom KL25Z Board | MCU on Eclipse about the project setup (for CodeWarrior). I have attached for you my KDS project (you find as well on GitHub: mcuoneclipse/Examples/KDS/FRDM-KL25Z/KL25Z_Touch at master · ErichStyger/mcuoneclipse · GitHub).

There are two differences between KDS and CodeWarrior:

  1. Add the TSS library to the linker options
  2. Change compiler option to accept asm("...")

1. Linker library: add the TSS library and path to the project settings

pastedImage_0.png

2. Change the compiler language so it accepts the assembly syntax used in the TSS library:

pastedImage_1.png

With this, things should work on your end too.

I hope this helps,

Erich

4,411件の閲覧回数
kyizawwin
Contributor II

Hi Erich,

It works for my KL05Z too. Thanks!

Bryan

0 件の賞賛
返信
4,411件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hello Bheema Rao,

I will answer you this question via SR1-2563861380

thanks for your attention.

Best Regards,

ZhangJun

0 件の賞賛
返信
4,411件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Bheema,

I think the TSS config not correctly, while  It is  difficult find solution of the problem  from your screenshots , can you send your project ?

Alice

Best Regards

0 件の賞賛
返信
4,411件の閲覧回数
bheemarao
Contributor II

Hi Alice,

I am enclosing my project folder for your reference.

Best Regards

Bheema Rao

0 件の賞賛
返信