我按照PWM历程在Project_init中加入了PWM初始化配置的下述代码后,为什么我在debug调试过程中无法使用Registers窗口查看TIMER寄存器的变化?
//PWM_Parameter_SETPWM_init();PWM_Params_init(&pwmParams);pwmParams.idleLevel = PWM_IDLE_LOW;pwmParams.periodUnits = PWM_PERIOD_HZ;pwmParams.periodValue = 1e6;pwmParams.dutyUnits = PWM_DUTY_FRACTION;pwmParams.dutyValue = PWM_DUTY_FRACTION_MAX / 2;//Log_info1("Board_PWM1:%d",Board_PWM1);pwm = PWM_open(Board_PWM1, &pwmParams);if(pwm == NULL){Log_error0("PWM_open error!");Task_exit();}
Kevin Qiu1:
编译有错误吗,从这些看不出到底哪里有问题,你需要提供更详细的信息
user6359397:
//PWM_Parameter_SETPWM_init();PWM_Params_init(&pwmParams);pwmParams.idleLevel = PWM_IDLE_LOW;pwmParams.periodUnits = PWM_PERIOD_HZ;pwmParams.periodValue = 1e6;pwmParams.dutyUnits = PWM_DUTY_FRACTION;pwmParams.dutyValue = PWM_DUTY_FRACTION_MAX / 2;//Log_info1("Board_PWM1:%d",Board_PWM1);pwm = PWM_open(Board_PWM1, &pwmParams);if(pwm == NULL){Log_error0("PWM_open error!");Task_exit();}我在Project_zero的Project_init中添加了上述代码,在调试的时候发现Register窗口无法跟踪到TIMER的状态,这是为什么?
Kevin Qiu1:
已在另一帖中回复了,请不要重复发帖
user6359397:
回复 Kevin Qiu1:
对不起,没发好,抱歉
user6359397:
回复 Kevin Qiu1:
编译没有错误,我无法看到TIMER的状态呀
user6359397:
//PWM_Parameter_SETPWM_init();PWM_Params_init(&pwmParams);pwmParams.idleLevel = PWM_IDLE_LOW;pwmParams.periodUnits = PWM_PERIOD_HZ;pwmParams.periodValue = 1e6;pwmParams.dutyUnits = PWM_DUTY_FRACTION;pwmParams.dutyValue = PWM_DUTY_FRACTION_MAX / 2;//Log_info1("Board_PWM1:%d",Board_PWM1);pwm = PWM_open(Board_PWM1, &pwmParams);if(pwm == NULL){Log_error0("PWM_open error!");Task_exit();}我按照PWM历程在Project_init中加入了PWM初始化配置的下述代码后,为什么我在debug调试过程中无法使用Registers窗口查看TIMER寄存器的变化?
Kevin Qiu1:
已在另外一篇帖子中回复你,此贴你不需要继续回复