Using eCAP Block in HRCAP Mode to Capture Input Signals not working on TMS320f280039C or TMS320f28003x

11 visualizaciones (últimos 30 días)
I was able tu (build) the default example from Using eCAP Block in HRCAP Mode to Capture Input Signals
but whenever try to use with my board TMS320f280039C launchpad then fail to build!
I dont't have any problem to use or build normal eCAP but error when try to use eCAP3(HR)

Respuestas (2)

Satwik
Satwik el 23 de Jul. de 2025
Hello @Ruhaizan,
I understand you are experiencing issues using the eCAP block in HRCAP mode to capture input signals on the TI F28003x family of processors. According to the following MathWorks documentation for the release R2024a, TI F28003x processors should be able to use eCAP block in HRCAP mode to capture input signals: https://www.mathworks.com/help/releases/R2024a/ti-c2000/ug/ecap-hrcap-type1-example.html
Here is an existing MATLAB answer post which might be helpful as it addresses a similar issue: https://www.mathworks.com/matlabcentral/answers/234166-how-to-fix-this-error-c28069pmsmfoc_ert2-slx
The suggestion here is to setup TI Code Composer Studio (CCS) on the machine. You may refer to the following documentation and ensure that the compatible version of CCS is setup: https://www.mathworks.com/help/ti-c2000/gs/CCS-MATLAB-versions.html
Additionally, make sure that the hardware setup for the F28003x is completed correctly by following the steps outlined in this documentation:
I hope this helps!

Aditya Pahariya
Aditya Pahariya el 24 de Jul. de 2025
This is the known Bug for F28003x, we will be working on the fix in the update release version.
Thanks for pointing out .
As a workaround you can generate the code for F28002x with the eCAP block in High resolution mode with exact same settings as required for F28003x, and then you can use the function definition of 'HRCAP3_Type1_ScaleFactor' from the file 'MW_c28xx_cap.c' (in the generated code for F28002x) in your custom code for F28003x.
Regards,
Aditya
  2 comentarios
Ruhaizan
Ruhaizan el 24 de Jul. de 2025
Thank for keep me updated on this status...
Will work around using F28002x and keep you updating about the issue
Ruhaizan
Ruhaizan el 20 de Oct. de 2025 a las 7:16
I try to replace the HRCAP3_Type1_ScaleFactor but still not fixing the issue..
Step:
  1. Build with F28002x
  2. Change to F28003x and build with comment out eCAP3(HR)
  3. Copy the HRCAP3_Type1_ScaleFactor part into MW_c28xx_cap that generate after F28003x
  4. Renable the eCAP3(HR) but fail

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by