Prev: using struct as simulink model argument values in referenced model
Next: Best OS/platform for Matlab
From: Pawel on 17 Sep 2009 04:40 Hi! I have some problems with programming F28335 chip by Simulink. I opened sample project for my processor: c28335pwmtest, but it doesen't work proper: on ePWM outputs I didn't get any signals. I changed this program: timer period is set by dialog (not by input port). I set up it for constant value 10000 and I set up initial value in CMPA for 5000, but CMPA source is set to input port. For this input port I have attached constant block with 8000 value (like in example project). I can download this program and run it, but I don't get proper working program: on scope in ePWM1a pin i get PWM signal, but with filling 50% (like initial value), I can change this value in program and I get other filling, but I should get filling from input port, not from initial value... When I change value in constant block - it don't make any results in program - it looks like ePWM is initialized by initial value and later it isn't updated any time. I was trying check all options in ePWM block, but I don't find any solution. Does anybody had similar problem? What am I doing wrong? About my software: I have Matlab R2008b, CCStudio 3.3 with SP12 and I have installed other updates (DSP/BIOS, CGTool etc) Best regards! Pawel
From: Pawel on 17 Sep 2009 06:46 Does problem could be in my DSP board? I have F28335 chip in TMS320C2000 Experiment Kit - in Matlab I have avaiable F28335 ezDSP configuration, not this experiment kit... But program is loaded without any errors and warnings - only doesen't work proper
From: Antonin Ancelle on 22 Sep 2009 11:21
Hi Pawel, Check bug report 521642 at the following page. http://www.mathworks.com/support/bugreports/search_results?search_executed=1&keyword=&release_filter=Exists+in&release=151&selected_products=72&commit=Search Cheers, Antonin. "Pawel " <blaszczy(a)student.agh.edu.pl> wrote in message news:h8sslk$g67$1(a)fred.mathworks.com... > Hi! > I have some problems with programming F28335 chip by Simulink. > I opened sample project for my processor: c28335pwmtest, but it doesen't > work proper: on ePWM outputs I didn't get any signals. I changed this > program: timer period is set by dialog (not by input port). I set up it > for constant value 10000 and I set up initial value in CMPA for 5000, but > CMPA source is set to input port. For this input port I have attached > constant block with 8000 value (like in example project). I can download > this program and run it, but I don't get proper working program: on scope > in ePWM1a pin i get PWM signal, but with filling 50% (like initial value), > I can change this value in program and I get other filling, but I should > get filling from input port, not from initial value... When I change value > in constant block - it don't make any results in program - it looks like > ePWM is initialized by initial value and later it isn't updated any time. > I was trying check all > options in ePWM block, but I don't find any solution. > Does anybody had similar problem? What am I doing wrong? > About my software: I have Matlab R2008b, CCStudio 3.3 with SP12 and I have > installed other updates (DSP/BIOS, CGTool etc) > > Best regards! > Pawel |