cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging the demo touch key control software

vaibhav2
Associate II
Posted on August 20, 2009 at 13:55

Debugging the demo touch key control software

7 REPLIES 7
luca239955_st
Associate III
Posted on May 17, 2011 at 15:04

>> my compiler gives an error...

what error?

vaibhav2
Associate II
Posted on May 17, 2011 at 15:04

Hi,

I am trying to debug the demo touch key control on the evoluation board.

I am facing problem to debug it, as i am using only free version tools (cosmic and raisonance.

The limitation of the free version is 16K byte flash.

Touch key control evoluation code is only 11k bytes of flash.

so i was hoping to debug it using my free toolset.

But as i have to select stm8s207k6 to start debugging which is having 32k flash. my compiler gives an error.

Isnt it possible to debug the evoluation software on evoluation board which has stm8s207k6 with free license. it helps to understand the code flow and lessens the debugging time.

regards,

Vaibhav.

:-[ :-[

vaibhav2
Associate II
Posted on May 17, 2011 at 15:04

Following error is occured when i try to run the touch key sofware on evoluation board with mcu stm8s207k6.

running Linker

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

#error clnk Debug\stm8s20xk_ts1_eval_fw.lkf:1 no default placement for segment .TSL_IO_ALCODE

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

exit code=1.

Is this due to i am using free version tools?

If not then how to get rid of this error?

Regards,

Vaibhav

luca239955_st
Associate III
Posted on May 17, 2011 at 15:04

>> Is this due to i am using free version tools?

No, you are just missing a segment definition: see

http://www.st.com/mcu/forums-cat-8609-27.html

for possible solution (same problem on a different project)

Regards,

Luca (Cosmic)

vaibhav2
Associate II
Posted on May 17, 2011 at 15:04

Thanks Luca for the help,

with your inputs i could able to build the touch control evaluation software but my debugger is still not working.

I am attaching a error log gerenated by STVD tool.

Please let me know if this is beacause of limited 16k byte free version?

where can i check the error description with error logs?

Vaibhav

luca239955_st
Associate III
Posted on May 17, 2011 at 15:04

the 16k limitation applies only for the compiler, and your error is in the debugger...

More generally, the ONLY limitation of the 16k compiler version is the code size: if you get any other error than ''code size limit exceeded '' (or similar) it is NOT due the the fact that you are using limited tools.

vaibhav2
Associate II
Posted on May 17, 2011 at 15:04

Where can I find the error decription for swim prog error [42004]??

Regards,

Vaibhav