Skip to main content
sundar
Associate III
March 12, 2014
Question

Stm32l100

  • March 12, 2014
  • 4 replies
  • 745 views
Posted on March 12, 2014 at 08:35

Hello,

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

    This topic has been closed for replies.

    4 replies

    waclawek.jan
    Super User
    March 12, 2014
    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
    sundarAuthor
    Associate III
    March 12, 2014
    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

     

    Tesla DeLorean
    Guru
    March 12, 2014
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    sundar
    sundarAuthor
    Associate III
    March 13, 2014
    Posted on March 13, 2014 at 07:36

    Hello Clive,

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

    Regards,

    Sanil