AnsweredAssumed Answered

Why does this assignment statement not work?

Question asked by liukai on Jan 13, 2014
Latest reply on Jan 21, 2014 by CraigG

I use bf518 in visualDSP5.0++ update10.
I write a module[unsigned char USB_DATA_proc(unsigned char ch1)]. This module in my attachment usb_process.c.  In this module I define a variable "DSP_rece", and "rece_usb" is global variable. In the line 70 I want the  "DSP_rece" equal to "rece_usb". But after execute this statement, "DSP_rece" is 0x00000.  However, in this  module the line 89 there is the same statement. When execute this statement, "DSP_rece" is correct.
In the attachment ,picture 1-3 show the correct result. And picture 11-12 show the wrong result, I cannot get the correct result.