__ARMCC_VERSION

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

Hi

 

Where this define nned to be?

I use laird - Sterling EWB (Cypress 4343 ..and STM32f411)

I dont find where this define.

0 Likes
5 Replies
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

@harelTur what do you mean by definition? Can you elaborate?

What is the error that you are getting in WICED? Can you post the error screenshot here?

Thanks

0 Likes
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

Hi 

 

I didn't get error.

I have some code that run over few platform and this code check the platform 

 

#if defined (__ARMCC_VERSION)
WPRINT_INFO(("__ARMCC_VERSION"));
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (__ANDROID__)
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (_MSC_VER)
offset = SB_MAX(sizeof(uint16_t), _Alignof(SampleVal_t)); // starts after size member (uint16_t)
#endif

 

I notice that not inter to define   __ARMCC_VERSION

How I cause to code to inter here ?

I dont want to add define   __ARMCC_VERSION, this is the version of something..

 

0 Likes
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

@harelTur I don't think I understand what you are asking here.

In which file are you trying to add this data or make this modification?

Are you asking what the __ARMCC_VERSION  is? If so, that is the ARM GCC compiler that you would be using during compilation.

0 Likes
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

Hi 

Its simple.

In my project I use some algorithem that can be run over few platform.

When I check this code on emmbeded platform I check this define ()__ARMCC_VERSION) to know that this platform is ARM and due to version I can know something about the MCU.

Now in our Algorithem a lot of time we check this define but I see that the Wiced not know about this define.

How to cause to Wiced to know it ?

 

for example :

 

#if defined (__ARMCC_VERSION)
WPRINT_INFO(("__ARMCC_VERSION"));
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (__ANDROID__)
offset = SB_MAX(sizeof(uint16_t), __alignof__(SampleVal_t)); // starts after size member (uint16_t)
#elif defined (_MSC_VER)
offset = SB_MAX(sizeof(uint16_t), _Alignof(SampleVal_t)); // starts after size member (uint16_t)
#endif

 

0 Likes
cono_285081
Level 1
Level 1
Welcome! 5 replies posted First question asked

Wiced seems to be in maintenance and not recommended for new designs.

0 Likes