Codewarrior USB Tap & resetting the target

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Codewarrior USB Tap & resetting the target

2,836件の閲覧回数
v_dave
Contributor IV
Hello All,
 
I am using Codewarrior for the DSC56800\E 8.0 and the USB Tap.  My project involves motor control so when the debugger has stopped I need everything to stop or my motor will keep moving.
 
Right now when I hit a breakpoint in my project the PWM timer that is driving the stepper motor controller still seems to be running as the motor continues to run.  How can I stop this when the debugger is stopped?
 
The other issue I see that is similar is when I "kill the thread" the code in the processor keeps executing just like when I hit a breakpoint.  It would seem to me that the USB Tap would hold the target in Reset when it is not running.  Am I missing a setting somewhere?
 
Also, I sometimes want to reset the target and restart the code.  Is there a simple way to reset the target without breaking the connection?  Or is the only option is to use the Restart command that reloads the code?
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

989件の閲覧回数
trytohelp
NXP Employee
NXP Employee
Hi,
 
Same request has been answered via the Support under the SR: 1-364955111
See below the answer:

Details from the Hardware team regarding the PWM feature.
The PWM module on 56800E DSCs has DBG_EN bit I PWM Configure register (PMCFG register), which can disable PWM outputs when debugger is stopped.
From Peripheral User manual: "When this write-protectable bit is set to one, the PWM will continue to run while the chip is in EOnCE Debug mode.
If the device enters the EOnCE mode and this bit is zero, the PWM outputs will be switched to their inactive state until the EOnCE mode is exited. At that point the PWM pins will resume operation as programmed in the PWM registers."
The PWM module on 56F80x DSCs hasn't this feature, so the PWM outputs are active in EOnCE Debug mode and PWM is running still.
The question is if the motor can successfully run again after it is stopped. For example if it is stopped from very high revolutions, I am not sure if it starts again to this value. It should ideally rump up to this high revolutions.
 
Regards
Pascal
0 件の賞賛
返信

989件の閲覧回数
v_dave
Contributor IV
Hello,
 
Thanks for the response.
 
I had seen refeence to this bit in the databooks but I haven't been able to find it again.  Also since I am using PE Beans I thought this might be more accessible but I guess not. 
 
I will try setting it directly in my code and see how this works.  The biggest thing I want to accomplish is to have a breakpoints while the motor is running since this is when some of my important calculations will be happening.
 
0 件の賞賛
返信

989件の閲覧回数
trytohelp
NXP Employee
NXP Employee
Hi,
 
Don't hesitate to contact us if you need more details.
 
Pascal
0 件の賞賛
返信