Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello,
I have custom HW on which I can run your example project: resolver_angle_speed_am263px-cc_r5fss0-0_nortos_ti-arm-clang from SDK 9.2.0.56.
I have to comment out the multiplexing since it's NA.
//Board_driversOpen(); /* setting up resolver related pins on board muxes */ //i2c_io_expander_resolver_adc();
And also change the excitation output from D16 to D17 but that's it. Here's the excitation sine wave to my resolver with the example project:
And the example output:
[Cortex_R5_0] setting up the EPWM ISR!! setting up the EPWM ISR Complete!! Resolver Enabled!! Forcing the Sync Pulse from the EPMW0!! 4000 Iterations complete. Printing some of the values ANGLES (DEGREES) || VELOCITIES (RPS) ----------------------------------------------------------------||----------------------------------------------- ATAN RAW_TRACK2 SW_TRAKC2 || HW_TRACK2 SW_TRACK2 83.457642 83.364258 -0.006338 || 83.369751 83.391724 83.446655 83.419189 83.397217 || 0.006747 0.006747 83.474121 83.413696 83.391724 || 0.006165 0.006165 83.430176 83.424683 83.402710 || 0.007423 0.007423 83.430176 83.424683 83.402710 || 0.007232 0.007232 83.402710 83.419189 83.397217 || 0.006859 0.006859 83.430176 83.413696 83.391724 || 0.006487 0.006487 83.446655 83.408203 83.386230 || 0.004764 0.004764 83.446655 83.413696 83.391724 || 0.006319 0.006319 83.457642 83.413696 83.391724 || 0.006370 0.006370 All tests have passed!!
My problem is that when I carry over the same configurations (RESOLVER, EPWM, EPWM SYNCOUT XBAR) to our application project using the same custom HW, I do not see the excitation output. The cause must be software but I am struggling to understand how to find the root cause.
The contents of Drivers_epwmSyncoutXbarOpen(), Drivers_epwmOpen() and Drivers_resolverOpen() are identical between the example and my Application.
I am calling the following once in my application
RDC_enableResolver(CONFIG_RESOLVER0_BASE_ADDR); EPWM_forceSyncPulse(RESOLVER_SYNC_BASE_ADDR);
But after this I don't see any PWM output.
I'd really appreciate some pointers to debug where it's going wrong please. For reference, PFA the modified example project that runs on my custom HW.
resolver_angle_speed_am263px-cc_r5fss0-0_nortos_ti-arm-clang.zip
Thank you.