cancel
Showing results for 
Search instead for 
Did you mean: 

stm8s-Discovery TSL_IO_ALCODE

johnf
Associate
Posted on April 30, 2010 at 12:50

Hallo colleagues,

I bought STM8S-Discovery kit and followed all steps of UM0834 - User manual for generation sample code. But I made any mistake - error code is generated. Can anybody help me?

Thanks,

Frantisek

@page {size:21cm 29.7cm;margin:2cm;} .ExternalClassE39BB2978DA3443E89F27F6FA7E7FC0C P {margin-bottom:0.21cm;} @page {size:21cm 29.7cm;margin:2cm;} .ExternalClassE39BB2978DA3443E89F27F6FA7E7FC0C P {margin-bottom:0.21cm;}

Running Linker

clnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib'' -o Debug\muj_prvni_project.sm8 -mDebug\muj_prvni_project.map Debug\muj_prvni_project.lkf

&sharperror clnk Debug\muj_prvni_project.lkf:1 no default placement for segment .TSL_IO_ALCODE

The command: ''clnk -l''C:\Program Files\COSMIC\CXSTM8_16K\Lib'' -o Debug\muj_prvni_project.sm8 -mDebug\muj_prvni_project.map Debug\muj_prvni_project.lkf '' has failed, the returned value is: 1

exit code=1.

oh , point missing ....

#discovery
1 REPLY 1
Grom
Associate II
Posted on May 03, 2010 at 15:57

Ahoj !

If you whant to use the Touch Sensing Library (for TS1 button use) you need to reserved a section dedicated to touch sensing variable in the microcontroler

Flash. This action is done by paramettring the linker input file directly in STVD.

(see picture below) . to access this window just click on Project>Settings

 

 

 

0690X00000605cTQAQ.png

 

 

* Dont forget the -r2 parametter

Hope it will solved your problem

Grom