Topic : Linker case sensitivity settings issue

Forum : ST7/STM8

Original Post
Post Information Post
November 7, 2013 - 5:20pm
Guest

I received a project from a colleague that uses case sensitive variables like
int DUMMY
char dummy
and I don't get errors from the compiler as expected as ansi C is case sensitive. I get errors from the STM8 linker though as I see it is by default case INsensitive.
I had a look in the documentation and found that it should be possible to switch the

Replies
Post Information Post
+1
0
-1
November 15, 2013 - 12:12pm
Raisonance Support Team

I can't reproduce your issue with Ride7.
Aren't you using STVD?
If so, unfortunately I didn't find a way to switch the linker case sensitivity.
It can be done by putting the -C flag as the first linker command-line option.

Stéphane

+1
0
-1
November 19, 2013 - 10:32am
Guest

It's exactly what I want to do Stephane to set the -C flag for the linker command line. But how can I do it in the Ride environment menu? I just can't find in it a place where these options can be configured, so please tell me where if you know.

+1
0
-1
November 21, 2013 - 3:28pm
Raisonance Support Team

I suppose you're working with ST7 devices.
In this case, indeed, the linker isn't case sensitive.
To do so, open the RCST7.config in ..\Raisonance\ride\config\ST7

Around line #45, you'll find:
Project.SetPropertyValue( "Target", "ProcessorST7", "IsSTM8", "" ); // See RLST7.config

it should be:
Project.SetPropertyValue( "Target", "ProcessorST7", "IsSTM8", "-C" ); // See RLST7.config

Stéphane

+1
0
-1
December 18, 2013 - 5:58am
Guest

I see it is by default case INsensitive.

+1
0
-1
December 18, 2013 - 6:31am
Guest

Project.SetPropertyValue( "Target", "ProcessorST7", "IsSTM8", "-C" ); // See RLST7.config