Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


  • Please log in to reply
2 replies to this topic

#1 Kenny Kerr

Kenny Kerr


  • Members
  • PipPip
  • 17 posts

Posted 02 January 2011 - 12:29 AM

Hi Chris, Do you know whether it’s possible to switch the netduino to big-endian? I’m doing a boatload of network I/O and it would save a lot of effort in the firmware if it were big-endian rather than little-endian. I know the ARM processors support switching this and the Micro Framework obviously supports both modes. I’m just not sure how to switch it on the Atmel microprocessor. My only concern is that the Atmel’s memory controller may only support little-endian. Cheers, Kenny

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 02 January 2011 - 12:39 AM

Hi Kenny, The Atmel chip uses little-endian for all register access. One could create a native code function that would swap around huge chunks of memory, though. Can you share any details of your application? Chris

#3 Kenny Kerr

Kenny Kerr


  • Members
  • PipPip
  • 17 posts

Posted 02 January 2011 - 02:18 AM

Hi Chris, Most of the I/O is to support a niche industry UDP protocol so the packets are relatively small and the multi-byte values are not encoded with a fixed number of bytes. I don’t think it would be worth it in this case. It’s not a big deal – just hoping to simplify my encoding and decoding – performance is not a problem. Thanks for the input! Cheers, Kenny

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.