Commit Graph

262 Commits

Author SHA1 Message Date
Achala Ram
800d9c5a4d am64x/am243x: Endat: Update documentation
- Add Heidenhain Test cases
- Add reference and links for Boosterpack in EnDat, HDSL
   and Tamagawa documentation

Fixes: PINDSW-6687, PINDSW-6553
Signed-off-by: Achala Ram <a-ram@ti.com>
2023-09-12 17:43:17 +05:30
Achala Ram
af61f50a46 am64x/am243x: EnDat: Enable long time test run
- Enable long time test run for position command
- Load all core firmware in load share mode

Fixes: PINDSW-6686

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-09-11 15:44:28 +05:30
Dhaval Khandla
47060ba7b1 am64x/am243x: hdsl: Add retry for Udma_ringDequeueRaw if it fails
- Switch to polling mode for UDMA completion
- In release mode, Udma_ringDequeueRaw() returns timeout
- Update App_udmaTrpdInit() to do fixed configuration only once. This
  reduces the copy time.

Fixes: PINDSW-6659

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-11 11:47:43 +05:30
Dhaval Khandla
db642b84db am64x/am243x: hdsl: Merge the trace example with the main example
- Update the UART options
- Fix and update the variable names for tracing
- Enable DMA in sysconfig

Fixes: PINDSW-6639, PINDSW-6651

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-11 11:47:35 +05:30
Dhaval Khandla
ed892ac090 am243x: hdsl: Set 300 MHz ICSSG core clock frequency fo am243x-lp examples
Fixes: PINDSW-6640

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-11 11:44:59 +05:30
Dhaval Khandla
a3cfd189bf Pull request #21: am64x/am243x: hdsl: Remove UART option 16 for long message test
Merge in PINDSW/motor_control_sdk from PINDSW-6641_fix_long_message_test_case to next

* commit 'e0a42c5a8286af60c1570a1c97d66993afd9e14e':
  am64x/am243x: hdsl: Remove UART option 16 for long message test
2023-09-10 23:07:49 -05:00
Dhaval Khandla
fd0d3d909e Pull request #18: Motor Control SDK: Update release documentation
Merge in PINDSW/motor_control_sdk from PINDSW-6551_update_release_documentation to next

* commit '90c7b05a0e9efc24a9f63e0fcc7d2fadfeeb61af':
  am243x/am263x: docs: Add migration guide
  am243x: docs: Add release notes page for 9.0.0
  allsoc: docs: Update the main page of documentation
  allsoc: docs: Fix the doxygen groups for API documentation
2023-09-06 23:46:43 -05:00
Dhaval Khandla
e0a42c5a82 am64x/am243x: hdsl: Remove UART option 16 for long message test
- Test case does not have correct pass/fail conditions

Fixes: PINDSW-6641

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-07 09:22:10 +05:30
Dhaval Khandla
90c7b05a0e am243x/am263x: docs: Add migration guide
Fixes: PINDSW-6637

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-04 13:09:24 +05:30
Dhaval Khandla
372402b0f5 am243x: docs: Add release notes page for 9.0.0
Fixes: PINDSW-6551

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-04 13:09:23 +05:30
Dhaval Khandla
81850f6662 allsoc: docs: Update the main page of documentation
- Update the text
- Update the block diagram and links
- Add links to IC SDK and MCU+ SDK
- Fix the documentation build warnings

Fixes: PINDSW-6552

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-04 13:09:23 +05:30
Dhaval Khandla
3cc1c220cd allsoc: docs: Fix the doxygen groups for API documentation
- Create separate groups for position sense and current sense

Fixes: PINDSW-6632

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-04 13:09:22 +05:30
Achala Ram
60c76e58dc Pull request #17: am64x/am243x: SDFM: Resolve sdfm handle initialization issue
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-6607_SDFM_resolve_static_code_analysis_bug to next

* commit 'd2aad2c201019065a56046effbe03666e3743512':
  am64x/am243x: SDFM: Remove sdfm handle null initialization
2023-09-04 01:25:22 -05:00
Aaron Thomas
be358c412a Pull request #16: AM243x : Motor Control - Tamagawa : Edit existing documentation for reset commands
Merge in PINDSW/motor_control_sdk from a0503539_make_changes_in_docs_for_tamagawa to next

* commit '5c6c6a6c5fa9c7f27b09d2f6cf3621e0d94e0641':
  am64x/am243xx: tamagawa: Update documenation for reset command
2023-09-04 01:24:57 -05:00
Achala Ram
aa5b15313d Pull request #15: am64x/am243x: EnDat: Channel check issue
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-6569_EnDat_release_bug to next

* commit '394ada13f30e16b972ab6a366a14d45d4b897a5c':
  am64x/am243x: EnDat: Resolve channel mask checks
2023-08-31 06:34:06 -05:00
Achala Ram
d2aad2c201 am64x/am243x: SDFM: Remove sdfm handle null initialization
- Remove sdfm handle null initialization in driver file

Fixes: PINDSW-6607

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-31 16:49:19 +05:30
Aaron
5c6c6a6c5f am64x/am243xx: tamagawa: Update documenation for reset command
- Add steps to reset ABS and ABM values 10 times

Fixes: PINDSW-6611

Signed-off-by: Aaron Thomas <aaron.richard@ti.com>
2023-08-31 15:26:48 +05:30
Achala Ram
394ada13f3 am64x/am243x: EnDat: Resolve channel mask checks
- Resolve mask check conditions for periodic mode testing

Fixes: PINDSW-6569

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-30 20:47:32 +05:30
Dhaval Khandla
8e38d03072 Pull request #14: am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
Merge in PINDSW/motor_control_sdk from PINDSW-6579_fix_build to next

* commit '48ba4c94f66f782e3639f7c7f1a77e59eceb4063':
  am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
2023-08-29 09:03:02 -05:00
Dhaval Khandla
48ba4c94f6 am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
Fixes: PINDSW-6579

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-29 19:11:11 +05:30
Dhaval Khandla
69fa42c727 Pull request #11: am64x/am243x: hdsl: Add register list and exceptions list
Merge in PINDSW/motor_control_sdk from PINDSW_6535_add_hdsl_register_documentation to next

* commit '667808d9fb2de06049c28b2e5216add1deb57e43':
  am64x/am243x: hdsl: Add register list and exceptions list
2023-08-29 06:28:39 -05:00
Achala Ram
ed38acdd56 Pull request #13: am64x/am243x: EnDat: remove rx waiting bug
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-6569_EnDat_release_bug to next

* commit '84de86d58c05d9416377d7cf6c93774b2de0bc44':
  am64x/am243x: EnDat: Resolve rx waiting bug
2023-08-29 06:18:50 -05:00
Rajul Bhambay
3c0923c22c Pull request #6: am64x/am243x: HDSL: Multi-channel Sync Mode
Merge in PINDSW/motor_control_sdk from a0497643_MCUSDK-5489_hdsl_multichannel_sync_mode to next

* commit '7f45f14721d40e7fefc48453b2f41f7db061be4a':
  am64x/am243x: HDSL: Multi-channel Sync Mode
2023-08-29 06:14:43 -05:00
Achala Ram
84de86d58c am64x/am243x: EnDat: Resolve rx waiting bug
-Resolve rx waiting for channel0 and channel2

Fixes: PINDSW-6569

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-29 15:37:07 +05:30
Rajul Bhambay
7f45f14721 am64x/am243x: HDSL: Multi-channel Sync Mode
- 2 channels in Sync mode
 - fix for long msg issue

Fixes: PINDSW-5489, PINDSW-5538

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-08-29 15:01:42 +05:30
Dhaval Khandla
b6c6293522 Pull request #12: HDSL : Remove maximum deviation related processing
Merge in PINDSW/motor_control_sdk from PINDSW-6546_hdsl_remove_maxdev to next

* commit '7bc9f4f7bf2c8ed7852c7e1d057e17b9ff0a72e6':
  am64x/am243x: hdsl: Update VERSION register definition
  am64x/am243x: hdsl: Remove maximum deviation related processing
2023-08-28 05:19:52 -05:00
Dhaval Khandla
667808d9fb am64x/am243x: hdsl: Add register list and exceptions list
Fixes: PINDSW-6535

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 16:22:41 +05:30
Dhaval Khandla
7bc9f4f7bf am64x/am243x: hdsl: Update VERSION register definition
- Remove coding field
- Higher 4 bits represent major version
- Update version to 0.5

Fixes: PINDSW-6536

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 15:58:23 +05:30
Dhaval Khandla
c1f342479a am64x/am243x: hdsl: Remove maximum deviation related processing
- Remove MAXDEV_H, MAXDEV_L, MAXDEV_H_THRES, MAXDEV_L_THRES from memory map
  in driver
- Fix the typo in register names for threshold registers

Fixes: PINDSW-6543

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 15:58:23 +05:30
Achala Ram
044f71b27d Pull request #10: am64x/am243: Enable Multi channel continuous mode
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-5681_EnDat_enable_multi_channel_continuous_mode to next

* commit '34b62601844e718b3c9484fa6290eac437330e44':
  am64x/am243: EnDat: Enable periodic trigger mode for multi-channel
2023-08-25 22:52:07 -05:00
Achala Ram
be7bb9799f Pull request #7: am64x/am243: SDFM: Add trigger based normal current sampling.
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-5523_SDFM_trip_generation to next

* commit 'c41804bd2ed5ccd22e68347321fae171798468ba':
  am64x/am243: SDFM: Add trigger based normal current sampling
2023-08-25 22:47:58 -05:00
Achala Ram
34b6260184 am64x/am243: EnDat: Enable periodic trigger mode for multi-channel
- Also fix propagation delay related configuration

Fixes: PINDSW-5681,PINDSW-6533

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-25 22:16:39 +05:30
Achala Ram
c41804bd2e am64x/am243: SDFM: Add trigger based normal current sampling
- Add support for trigger based sampling by using IEP compare
  events
- Add support for double update per PWM cycle
- Fixed the IEP compare event hit value calculation
- Tested with SDFM clock input from EPWM

Fixes: PINDSW-5522, PINDSW-6544, PINDSW-6546

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-25 22:10:06 +05:30
Naresh A
a2640f8fde Pull request #8: PINDSW-6434 add documentation
Merge in PINDSW/motor_control_sdk from PINDSW-6434_add-documentation to next

* commit '354e9896981ed53b38339f62dee803668f95fac8':
  am64x/am243x/am263x : add documentation
  am64x/am243x/am263x : add documentation
2023-08-25 03:48:18 -05:00
Dhaval Khandla
5a8f9f83ea Pull request #9: Bug-fixes for HDSL
Merge in PINDSW/motor_control_sdk from PINDSW-5486_hdsl_bug_fixes to next

* commit '47b87f5cf7dd98e755c9ae554a89339f6559bac3':
  am64x/am243x: hdsl: Remove SUC instruction usage
  am64x/am243x: hdsl: Fix ONLINE_STATUS_1 register corruption
  am64x/am243x: hdsl: Fix QMLW bits in ONLINE STATUS registers
  am64x/am243x: hdsl: Make FREL/FRES bit set sticky in EVENT/EVENT_S
  am64x/am243x: hdsl: Fix reset behaviour after triggering manual reset
  am64x/am243x: hdsl: Add versioning in firmware
  am64x/am243x: hdsl: Fix the SUM/SSUM/FIX1 bit configuration in ONLINE STATUS registers
  am64x/am243x: hdsl: Fix the fast position and velocity calculation
  am64x/am243x: hdsl: Fix the two most significant bytes of fast position
  am64x/am243x: hdsl: Update the register memory map
  am64x/am243x: hdsl: Remove the scanf waiting for Enter during initialization
2023-08-25 03:23:10 -05:00
Dhaval Khandla
47b87f5cf7 am64x/am243x: hdsl: Remove SUC instruction usage
- SUC instruction does not work as expected

Fixes: PINDSW-6531

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 17:00:53 +05:30
Dhaval Khandla
0fe32fbc31 am64x/am243x: hdsl: Fix ONLINE_STATUS_1 register corruption
- TEMP_REG1 was being used by QM_ADD and ONLINE STATUS update in
  v-frame processing
- Update version to 0.4

Fixes: PINDSW-6487

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
4f8af91522 am64x/am243x: hdsl: Fix QMLW bits in ONLINE STATUS registers
- Mask was not applied to QM register before checking the low value
- Enable QMLW/POS checks for all H-frames

Fixes: PINDSW-6530

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
dd0d2e356b am64x/am243x: hdsl: Make FREL/FRES bit set sticky in EVENT/EVENT_S
- Firmware should not clear these bits in EVENT/EVENT_S registers
- Update the version to 0.3

Fixes: PINDSW-6526

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
6b8d4c32cc am64x/am243x: hdsl: Fix reset behaviour after triggering manual reset
- Remove HALT instructions
- Clear all registers after reset

Fixes: PINDSW-6492

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
36a591f12b am64x/am243x: hdsl: Add versioning in firmware
- Update the version to 0.2
- Use the VERSION and VERSION2 register
- Remove the hardcoding from driver

Fixes: PINDSW-6518

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
7605041284 am64x/am243x: hdsl: Fix the SUM/SSUM/FIX1 bit configuration in ONLINE STATUS registers
- MASK_SUM should not be used for masking SUMMARY while updating these
  SUM and SSUM bits in ONLINE STATUS registers
- Fix the mask for SCE and VPOS updates

Fixes: PINDSW-6487, PINDSW-6488

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
8d4349c792 am64x/am243x: hdsl: Fix the fast position and velocity calculation
- Fix sign extension in estimator for relative position and acceleration
  addition
- Fix sign estimation for relative position calculation
- Remove an unnecessary RET instruction
- Fix register corruption for ALIGN_PH
- Fix register usage for DTE error signaling

Fixes: PINDSW-5689

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
9ac1395d6e am64x/am243x: hdsl: Fix the two most significant bytes of fast position
- Register corruption was causing loss of multi-turn data in fast position

Fixes: PINDSW-5651

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Dhaval Khandla
9ce9770c05 am64x/am243x: hdsl: Update the register memory map
- Fix the address of ONLINE STATUS bytes by adding a reserved byte
- Create separate entries for low and high bytes of ONLINE STATUS registers
- Add SAFE_CTRL and POSTX registers
- Use high and low addresses in firmware for ONLINE STATUS registers

Fixes: PINDSW-6489

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Dhaval Khandla
9ac546cfd9 am64x/am243x: hdsl: Remove the scanf waiting for Enter during initialization
Fixes: PINDSW-6517

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Dhaval Khandla
745b57dcee Pull request #5: am64x/am243x/am263x: Update the gitignore file
Merge in PINDSW/motor_control_sdk from PINDSW-6511_update_gitignore to next

* commit '900e6266d40f656b7a80a28c94851ca64b3e011a':
  am64x/am243x/am263x: Update the gitignore file
2023-08-21 01:17:36 -05:00
Dhaval Khandla
900e6266d4 am64x/am243x/am263x: Update the gitignore file
- Add .repo and mcupsdk_setup folders in .gitignore

Fixes: PINDSW-6511

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-18 15:58:26 +05:30
Naresh A
354e989698 am64x/am243x/am263x : add documentation
add documentation

Fixes: PINDSW-6434

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-28 12:02:00 +05:30
Naresh A
596d48c7d7 am64x/am243x/am263x : add documentation
add documentation

Fixes: PINDSW-6434

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 16:59:28 +05:30