cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32l100

sundar
Associate II
Posted on March 12, 2014 at 08:35

Hello,

What does stm32l100 follow Big Enidian or Small Enidian..?

4 REPLIES 4
Posted on March 12, 2014 at 11:12

Little endian only.

See PM0056 rev.5, ch.2.2.6 and SCB_AIRCR.ENDIANESS. Also see RM0041 ch. 2.2.

JW
sundar
Associate II
Posted on March 12, 2014 at 13:15

Ho !,..i have an issue ,.......Thank You for the reply  waclawek ,....

 My Host is STM32l100 which is connected to a network processor (LON : FT5000 ''BigEnidian''),communicates through UART !......how to over come this Problem of difference in Enidians.,one solution i know interchange the bits before sending and reviving,...any easy solution(as my app involves nested structure and enums ....! ) 

Regards 

Sanil

 

Posted on March 12, 2014 at 15:05

There are never any easy solutions when dealing with two processors/architectures using different endian configurations.

You have to pay careful attention to ALL structures and parameters and the bit/byte order expectations. With compilers bit-fields are a particular area of grief.

Socket implementations have macro's to handle such things

The Thumb instruction set also contains several bit/byte reordering commands.

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/BABJJDDB.html

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sundar
Associate II
Posted on March 13, 2014 at 07:36

Hello Clive,

Thank you for the info ,......

Regards,

Sanil