This thing is covered in docs (tips & tricks):
when performing type conversion, you must be sure, that
biased char variable is located at even address.
So, if &TxFrame1[offset] is odd located, you have a problem.
When you comment line 'offset++', you set
&TxFrame1[offset]
even-located and everything is ok.
~d
On Monday 04 August 2003 23:13, Akshay wrote:
> *(unsigned int *)&TxFrame1[offset] = 0x0001;
--
/*****************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ.
(_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314
*****************************************************************/