cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,669 Views
Registered: ‎08-15-2011

Setting the MicroBlaze to be configured for Big Endian

Hey all,

I'm currently building a communication stack and geting a string of uint32 values from some other devices.
(I cannot change this because its a fixed protocol)

These uint32 values will be sent as MSB first.
But the Zynq will interprete a uint32 with LSB first. Therefore I have a byteswap at the moment which makes calculations quite hard.

I don't want to use a software byteswap because the incomming bytes a sometimes uint8, uint16 or uint32, depending on the previous values, Therefore only using a typecst will be easier.

Is there a possibility to change the endines from LITTLE-ENDIAN to BIG-ENDIAN, so all variables will be interpretet with MSB first?

Thanks
Andy

0 Kudos
1 Reply
Highlighted
Scholar
Scholar
1,659 Views
Registered: ‎06-14-2012

0 Kudos