processor-sdk/pdk.git
2 months agoCCM test fail leading to sdr test failure REL.CORESDK.08.00.00.35 REL.CORESDK.08.00.00.36
Parth Nagpal [Mon, 2 Aug 2021 13:07:12 +0000 (18:37 +0530)]
CCM test fail leading to sdr test failure
Commented out the failing CCM tests for the release 8.00.00
Signed-off-by: Parth Nagpal <x1080849@ti.com>
2 months agoPDK-9368: j721s2: Sciclient/Sciserver fixes to match RM/PM data
Jonathan Bergsagel [Thu, 29 Jul 2021 04:22:44 +0000 (23:22 -0500)]
PDK-9368: j721s2: Sciclient/Sciserver fixes to match RM/PM data

Updates sciclient/sciserver source files to match latest SoC data
in related RM_PM_HAL sources.  Fixes issues with related test apps.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
2 months agoPDK-9368: Update TIFS and default BoardCfg_RM for J721S2
Jonathan Bergsagel [Tue, 27 Jul 2021 21:23:58 +0000 (16:23 -0500)]
PDK-9368: Update TIFS and default BoardCfg_RM for J721S2

Updates J721S2 TIFS binary and brings in latest RM changes
as well.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
2 months agoPCIe driver example failing for freeRtos
Parth Anil Nagpal [Tue, 27 Jul 2021 10:16:31 +0000 (15:46 +0530)]
PCIe driver example failing for freeRtos
This is fixed by increasing the stack size for freeRtos

3 months ago[GPIO Driver]Reverting Commit ID: 6afb0eda364 REL.CORESDK.08.00.00.32 REL.CORESDK.08.00.00.33 REL.CORESDK.08.00.00.34
Vivek Dhande [Thu, 22 Jul 2021 06:40:05 +0000 (12:10 +0530)]
[GPIO Driver]Reverting Commit ID: 6afb0eda364

- [GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 months agoIPC: AM65xx Linker File Updates to place reset vectors in ATCM
Don Dominic [Wed, 21 Jul 2021 19:48:34 +0000 (01:18 +0530)]
IPC: AM65xx Linker File Updates to place reset vectors in ATCM

- Move reset vectors, boot code, startup code and startup data to ATCM from OCMC RAM
- This is required in case of Linux for IPC Echo Test

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure... REL.CORESDK.08.00.00.31
Vivek Dhande [Tue, 20 Jul 2021 17:41:07 +0000 (23:11 +0530)]
[GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration

- Issue:
    - When application compiled and run from RC package/ for pre-compiled GPIO Driver Lib for the any other MCU core than MCU1_x, then application hangs
- Root-cause:
    - GPIO driver used core macros for configuration of interrupts
    - since this driver lib is marked as core independent, only application for first compiled mcux_x  work
    - For subsequent MCU core build, lib is not built and hence uses old interrupts configuration which is protected under macros for "mcux_x"
- Resolution:
    - Mark GPIO driver as core dependent in the make file

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 months agoIPC: Linker File Updates to place .resource_table in start of EXT_DATA memory
Don Dominic [Wed, 21 Jul 2021 16:52:40 +0000 (22:22 +0530)]
IPC: Linker File Updates to place .resource_table in start of EXT_DATA memory

- Place .resource_table in start of corresponding cores EXT_DATA memory
- Linux expects the .resource_table at this address for each core

- without this updates, .tracebuf was going as the first entry in EXT_DATA memory
  and .resource_table will be placed following this

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoIPC Example: Multicore Perf Test Fix for HS Devices REL.CORESDK.08.00.00.30
Don Dominic [Thu, 15 Jul 2021 13:02:20 +0000 (18:32 +0530)]
IPC Example: Multicore Perf Test Fix for HS Devices

- Use HS KEY for signing
  - HS KEY will work for both GP and HS device
  - So instead of creating two app image - one with GP KEY and HS KEY, we will use one app image for both

- Updates ref. to https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/502b5ea5f1de9df56376a95edea00837c17fe979

- This resolves the "Boot Halted" issue with IPC Multicore performance test on HS Devices.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoosal: Increase maximum values for tasks and queues
Lucas Weaver [Wed, 14 Jul 2021 16:11:01 +0000 (11:11 -0500)]
osal: Increase maximum values for tasks and queues

3 months agoRemoving HS Build input for early init as it is not required
Ankur [Wed, 14 Jul 2021 09:06:19 +0000 (14:36 +0530)]
Removing HS Build input for early init as it is not required

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoFixed: PDK-10315: SBL does not set NB priorities for the HS device
Brijesh Jadav [Tue, 13 Jul 2021 05:01:44 +0000 (10:31 +0530)]
Fixed: PDK-10315: SBL does not set NB priorities for the HS device

- Setting NB priorities only after module is enabled

Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
3 months agoPDK-10318: Added ADCBUF memory initialization (Ping and Pong).
KALYAN VAGVALA [Tue, 13 Jul 2021 09:19:24 +0000 (14:49 +0530)]
PDK-10318: Added ADCBUF memory initialization (Ping and Pong).

3 months agoRevert "PDK-9018: Added board check for J721E EVM in board library" REL.CORESDK.08.00.00.29
Ankur [Tue, 13 Jul 2021 18:20:48 +0000 (23:50 +0530)]
Revert "PDK-9018: Added board check for J721E EVM in board library"

This reverts commit 50c30968518ca2bb32867dcb6a416d4a5bee1086.

3 months ago[PDK-10322] EthFW config shouldn't be done for HLOS boot
Ankur [Tue, 13 Jul 2021 17:51:36 +0000 (23:21 +0530)]
[PDK-10322] EthFW config shouldn't be done for HLOS boot

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoApi Guide: OSAL: HeapP Build Fixes
Don Dominic [Mon, 12 Jul 2021 21:07:29 +0000 (02:37 +0530)]
Api Guide: OSAL: HeapP Build Fixes

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-10297] Board: Add uart flash programmer for J7200 HS
Jonathan Bergsagel [Sat, 10 Jul 2021 00:19:23 +0000 (19:19 -0500)]
[PDK-10297] Board: Add uart flash programmer for J7200 HS

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 months agoupdated input clock src for cpsw for awr294x REL.CORESDK.08.00.00.28
Prasad Konnur [Wed, 30 Jun 2021 06:22:10 +0000 (11:52 +0530)]
updated input clock src for cpsw for awr294x

 - CPSW was sourcing from DPLL Core Hsdiv ClkOut2 which has different
     frequency for ETS (300MHz) and LOP (400MHz)
 - it cant be used as clk src for CPSW which requires 200MHz on ETS.
 - Updated to use DPLL Per Hsdiv ClkOut1 which is 200MHz for both
     variants.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 months agoAdding XDC path for SCIClient FW test app
Ankur [Thu, 8 Jul 2021 03:31:52 +0000 (09:01 +0530)]
Adding XDC path for SCIClient FW test app

Signed-off-by: Ankur <a0132173@ti.com>
3 months ago[PDK-10131] Fix for McSPI Clock Mismatch REL.CORESDK.08.00.00.27
Ankur [Wed, 7 Jul 2021 15:11:50 +0000 (20:41 +0530)]
[PDK-10131] Fix for McSPI Clock Mismatch

Signed-off-by: Ankur <a0132173@ti.com>
3 months ago[PDK-10294] OSAL UT: J7200: Fix OSAL_TestApp issue in OSAL_timer_test on mcu1_0...
Don Dominic [Wed, 7 Jul 2021 14:12:52 +0000 (19:42 +0530)]
[PDK-10294]  OSAL UT: J7200: Fix OSAL_TestApp issue in OSAL_timer_test on mcu1_0 with SBL

- Use MCU_TIMER_2 when running on mcu1_0 with Sys BIOS
- TimerP_ANY in SysBIOS will allocate MCU Timer 0 which was used by SBL and remains at Smart-idle wake-up-capable mod with Emulation mode set 1( The timer runs free, regardless of PINSUSPENDN value.)
  - Hene TimerP_Create with default timer 0 in UT was crashing
- MCU Timer 1 is used by sysbios on mcu1_0
- UT works fine with MCU Timer 2;

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoFreeRTOS C6x Build Fix
Don Dominic [Wed, 7 Jul 2021 11:05:24 +0000 (16:35 +0530)]
FreeRTOS C6x Build Fix

- Add c66xdsp_1 and c66xdsp_2 to osal freertos lib corelist
- The same is required for freertos c66x examples and UT

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9355] FreeRTOS: C66x: Use CSL API to read TSC Counter value
Don Dominic [Mon, 5 Jul 2021 13:20:23 +0000 (18:50 +0530)]
[PDK-9355] FreeRTOS: C66x: Use CSL API to read TSC Counter value

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9355] FreeRTOS: C66x: Cache Config Updates
Don Dominic [Mon, 5 Jul 2021 14:00:09 +0000 (19:30 +0530)]
[PDK-9355] FreeRTOS: C66x: Cache Config Updates

- Update L1P/L1D/L2 Chache Size to 32KB
- Enable cache for all DDR space - 0x80000000 to 0xFFFFFFFF (2GB space)
  - Added new port.c API vPortCacheSetMAR

- This update is with ref. to the following SYSBIOS Default Settings in sysbios_c66.cfg
  ```
   /* Enable cache */
   var Cache = xdc.useModule('ti.sysbios.hal.Cache');
   var Cache = xdc.useModule('ti.sysbios.family.c66.Cache');
   Cache.initSize.l1pSize = Cache.L1Size_32K;
   Cache.initSize.l1dSize = Cache.L1Size_32K;
   Cache.initSize.l2Size  = Cache.L2Size_32K;
   /* Enable cache for all DDR space - 0x80000000 to 0xFFFFFFFF (2GB space) */
   Cache.setMarMeta(0x80000000, 0x80000000, Cache.Mar_ENABLE);
   ```

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9355] FreeRTOS: C66x: Enable FreeRTOS Task Switch Example and UT for J721E C66x...
Don Dominic [Sat, 3 Jul 2021 08:47:47 +0000 (14:17 +0530)]
[PDK-9355] FreeRTOS: C66x: Enable FreeRTOS Task Switch Example and UT for J721E C66x cores

- Add interrupt defines
- Add Timer Interrupt configuration to C66x Events through DMSC RM APIs
- Update C66x common defines to _TMS320C6X
- Remove BOARD_INIT_UNLOCK_MMR flag for Board_Init which is not required and will fail for J7 C66x cores

- Enable UART logs for posix demo example
- Enable UART console logs for j721e c66x/c7x

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9355] FreeRTOS: C66x: Add default Linker file
Don Dominic [Sat, 3 Jul 2021 08:40:48 +0000 (14:10 +0530)]
[PDK-9355] FreeRTOS: C66x:  Add default Linker file

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9355] FreeRTOS: C66x: Enable FreeRTOS CPU Port for j721e c66xdsp_1/c66xdsp_2
Don Dominic [Fri, 25 Jun 2021 17:06:15 +0000 (22:36 +0530)]
[PDK-9355] FreeRTOS: C66x: Enable FreeRTOS CPU Port for j721e c66xdsp_1/c66xdsp_2

- Added FreeROTSConfig for j721e c66x cores
- Differnt timer_id/int_num/event_id for c66xdsp_1/c66xdsp_2
  - Main Domain DMTimer 0 for c66xdsp_1; interrupt idx 14
  - Main Domain DMTimer 1 for c66xdsp_2; interrupt idx 15
  - event_id to match same as SYS/BIOS default cfg
    - 21 for c66xdsp_1; 20 for c66xdsp_2;
- c66 port.c update for timerParams.eventId
  - Added dummy entry(TimerP_USE_DEFAULT) for tpr12/awr294x

- freertos lib build works fine for j721e-c66xdsp_1/c66xdsp_2; tpr12/awr294x-c66xdsp_1

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoKEYWRITER: PMIC example code
Anuraag Tummanapally [Wed, 21 Apr 2021 14:52:07 +0000 (14:52 +0000)]
KEYWRITER: PMIC example code

Example code to pull VPP high for j721e for efuse programming

3 months agoKEYWRITER: Generate test binaries
Anuraag Tummanapally [Tue, 20 Apr 2021 11:10:37 +0000 (11:10 +0000)]
KEYWRITER: Generate test binaries

3 months agoKEYWRITER: cert: new extns, wp, rp, active flags
Anuraag Tummanapally [Fri, 19 Mar 2021 09:52:44 +0000 (09:52 +0000)]
KEYWRITER: cert: new extns, wp, rp, active flags

Fixes: SYSFW-4457

Signed-off-by: Anuraag Tummanapally <anuraagt@ti.com>
3 months agoKEYWRITER: Omits raw enc. of fields with TIFEK Pub
Anuraag Tummanapally [Mon, 19 Apr 2021 10:31:39 +0000 (10:31 +0000)]
KEYWRITER: Omits raw enc. of fields with TIFEK Pub

Fixes: SYSFW-4353

3 months agoKEYWRITER: Moving keywriter to boot folder
Anuraag Tummanapally [Mon, 15 Feb 2021 10:56:48 +0000 (10:56 +0000)]
KEYWRITER: Moving keywriter to boot folder

Fixes: PDK-8965

Signed-off-by: Anuraag Tummanapally <anuraagt@ti.com>
3 months agoKEYWRITER: Makes x509 cert gen script modular
Anuraag Tummanapally [Fri, 12 Feb 2021 13:02:03 +0000 (13:02 +0000)]
KEYWRITER: Makes x509 cert gen script modular

Fixes: PDK-8966

Signed-off-by: Anuraag Tummanapally <anuraagt@ti.com>
3 months agoPDK-9498 : McSPI FreeRTOS port
sujith [Mon, 5 Jul 2021 10:49:15 +0000 (16:19 +0530)]
PDK-9498 : McSPI FreeRTOS port

Tested following on j721e
Master
MCSPI_Slave_TestApp_tirtos
MCSPI_Slave_Dma_TestApp_tirtos
MCSPI_Baremetal_Slave_TestApp
MCSPI_Master_TestApp_tirtos

Slave
MCSPI_Master_TestApp_freertos
MCSPI_Master_Dma_TestApp_freertos
MCSPI_Baremetal_Master_TestApp
MCSPI_Slave_TestApp_tirtos

Signed-off-by: sujith <sujith.s@ti.com>
3 months agoPDK-10280: Fix for C7x interrupt based Sciclient Operation
Piyali Goswami [Sun, 4 Jul 2021 18:04:39 +0000 (23:34 +0530)]
PDK-10280: Fix for C7x interrupt based Sciclient Operation

The C7x CLEC will continue to forward the Secure Proxy interrupt even when the ESR is cleared.
The C7x HWI interrupt handler will re-enable ESR causing the interrupt to keep happening and thus the code to be stuck.
This fix will disable forwarding the interrupt from the CLEC and re-enable forwarding when the interrupt is serviced.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 months ago[PDK-10283] sciclient_rtos_app Fix for FreeRTOS
Ankur [Sun, 4 Jul 2021 15:56:37 +0000 (21:26 +0530)]
[PDK-10283] sciclient_rtos_app Fix for FreeRTOS

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoPDK-9712: Fix for UT in release mode
Piyali Goswami [Sun, 4 Jul 2021 15:48:40 +0000 (21:18 +0530)]
PDK-9712: Fix for UT in release mode

Fix for the Sciclient Firewall UT in release mode to correctly count the number of events causing an abort

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 months ago[PDK-10279] SCIclient UT fix for C6x
Ankur [Sun, 4 Jul 2021 13:57:30 +0000 (19:27 +0530)]
[PDK-10279] SCIclient UT fix for C6x

Signed-off-by: Ankur <a0132173@ti.com>
3 months ago[MCASP,MCSPI] component.mk fixes and Enable Examples
Don Dominic [Fri, 2 Jul 2021 18:37:49 +0000 (00:07 +0530)]
[MCASP,MCSPI] component.mk fixes and Enable Examples

- Fix setting <example>_XDC_CONFIGURO
  - <rtos> suffix ```$(1)``` was missing and XDC CONFIGURO was not being set for SYSBIOS(tirtos) apps

- Enable all examples back, which was temp disabled due to Jenkins Build failures

- Remove duplicate ```export spi_EXAMPLE_LIST``` present after each rtos app rule

- Other minor cleanups/enhancements which includes
  - Filtering of Board list with DEFAULT BOARD LIST for current RTOS type
  - Filtering of Core list with DEFAULT CORE LIST for current RTOS type
  - Removed unnecassary extra check for ```ifeq (freertos tirtos)``` over ```ifneq (safertos) before adding to examples list
  - Intendations/Proper spaces in b/w $if statements

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoPDK-9712: Fix for multiple aborts in Sciclient Firewall test app
Piyali Goswami [Sun, 4 Jul 2021 10:54:00 +0000 (16:24 +0530)]
PDK-9712: Fix for multiple aborts in Sciclient Firewall test app

The Sciclient firewall test app checks for reads and writes when trying to check for the firewall based data aborts.
The SYSBIOS behavior is that it generated data aborts only for reads and the Free RTOS behavior is that is generates for reads and writes.
The test is simplified to suit both settings to only try reads and then check the number of aborts.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 months agoPDK-9018: Added board check for J721E EVM in board library
M V Pratap Reddy [Sat, 3 Jul 2021 18:08:31 +0000 (23:38 +0530)]
PDK-9018: Added board check for J721E EVM in board library

 - j721e_evm platform is used for Edge AI demo integration on
   J721E EAIK board. These demos are not using board init function.
   Updated board init to check for J721E EVM board and return error
   if the board is not EVM to handle any unintentional board init
   calls from Edge AI demos running on EAIK board.

3 months agoosal: Increase maximum number of free RTOS TaskP
Lucas Weaver [Thu, 1 Jul 2021 12:04:36 +0000 (07:04 -0500)]
osal: Increase maximum number of free RTOS TaskP

-In sysbios, there was no maximum number of TaskP
-Vision apps use cases require an increase in this maximum value

3 months agoOSAL UT: AM64x Package Build Fix
Don Dominic [Tue, 29 Jun 2021 09:10:27 +0000 (14:40 +0530)]
OSAL UT: AM64x Package Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agobuild fix board diag cpsw REL.CORESDK.08.00.01.12
Prasad Konnur [Tue, 29 Jun 2021 06:57:55 +0000 (12:27 +0530)]
build fix board diag cpsw

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 months agoPDK-9829: set frequency for awr294x based on efuse
Prasad Konnur [Tue, 22 Jun 2021 08:59:03 +0000 (14:29 +0530)]
PDK-9829: set frequency for awr294x based on efuse

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 months agoOSAL UT: tpr12/awr294x build issues fix
Don Dominic [Mon, 28 Jun 2021 09:28:18 +0000 (14:58 +0530)]
OSAL UT: tpr12/awr294x build issues fix

- Reduce no.of tasks for mutex test due to memory constraints for stack
- Enable GateMutexPri module in SYSBIOS cfg for awr294x

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoDisabling McASP example due to parallel build REL.CORESDK.08.00.00.26
Ankur [Tue, 29 Jun 2021 03:20:56 +0000 (08:50 +0530)]
Disabling McASP example due to parallel build

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoReview comment fix REL.CORESDK.08.00.00.25
Ankur [Mon, 28 Jun 2021 11:38:09 +0000 (17:08 +0530)]
Review comment fix

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoFix for non OSPI J721E SBL
Ankur [Mon, 28 Jun 2021 10:56:25 +0000 (16:26 +0530)]
Fix for non OSPI J721E SBL

Signed-off-by: Ankur <a0132173@ti.com>
3 months agoUART: KW Issues Fixes 2
Don Dominic [Mon, 28 Jun 2021 07:56:20 +0000 (13:26 +0530)]
UART: KW Issues Fixes 2

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoMcASP: Build : removed all indentation in component.mk
sujith [Mon, 28 Jun 2021 07:40:21 +0000 (13:10 +0530)]
McASP: Build : removed all indentation in component.mk

Signed-off-by: sujith <sujith.s@ti.com>
3 months agoosal_tirtos: C++ Build Fix
Don Dominic [Mon, 28 Jun 2021 04:08:47 +0000 (09:38 +0530)]
osal_tirtos: C++ Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoBOARD: DDR: Add macro to enable/disable DDR Memory Prime
Don Dominic [Mon, 28 Jun 2021 05:09:56 +0000 (10:39 +0530)]
BOARD: DDR: Add macro to enable/disable DDR Memory Prime

- Added new macro BOARD_DDR_ENABLE_DDR_MEM_PRIME in board_cfg.h
  to Enable/Disable DDR Memory Prime for ECC
- Disabled by default
- define the macro to Enabled DDR Memory Prime for ECC

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoMcASP : Package updated to fix build issue
sujith [Sat, 26 Jun 2021 09:39:20 +0000 (15:09 +0530)]
McASP : Package updated to fix build issue

Signed-off-by: sujith <sujith.s@ti.com>
3 months agoBOARD: DDR Thermal Testapp: Migration to support FreeRTOS
Don Dominic [Fri, 25 Jun 2021 10:43:49 +0000 (16:13 +0530)]
BOARD: DDR Thermal Testapp: Migration to support FreeRTOS

- Replace SYSBIOS with OSAL API's
- Makefile updates

- Validate app on j721e/j7200 mcu1_0 freertos/tirtos/baremetal

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agotimeSync: v2: Use Enet_ntohs instead of ntohs
Misael Lopez Cruz [Fri, 25 Jun 2021 11:47:27 +0000 (06:47 -0500)]
timeSync: v2: Use Enet_ntohs instead of ntohs

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
3 months agoOSPI: Removed SMP app from spi_component.mk
Aditya Wadhwa [Fri, 25 Jun 2021 13:08:30 +0000 (18:38 +0530)]
OSPI: Removed SMP app from spi_component.mk

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 months ago[PDK-9695][FreeRTOS Porting] Pending activities for CSIRX DSS porting
Vivek Dhande [Wed, 23 Jun 2021 14:21:22 +0000 (19:51 +0530)]
[PDK-9695][FreeRTOS Porting] Pending activities for CSIRX DSS porting

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 months ago[JACINTOREQ-1464] UDMA Example: Remove udma memcpy SMP example
Don Dominic [Fri, 25 Jun 2021 11:18:02 +0000 (16:48 +0530)]
[JACINTOREQ-1464] UDMA Example: Remove udma memcpy SMP example

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9289] OSAL: KW Issues Fix
Don Dominic [Thu, 24 Jun 2021 15:03:09 +0000 (20:33 +0530)]
[PDK-9289] OSAL: KW Issues Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoIPC: Baremetal Lib Build Fix
Don Dominic [Fri, 25 Jun 2021 07:45:28 +0000 (13:15 +0530)]
IPC: Baremetal Lib Build Fix

- pOsalPrms variable was used only under the ifdef IPC_CFG_PRINT_ENABLE
- Since IPC_CFG_PRINT_ENABLE is disabled for ipc_baremetal lib,
  there were build failures for unused variable

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoUART: KW Issues Fix
Don Dominic [Thu, 24 Jun 2021 11:41:20 +0000 (17:11 +0530)]
UART: KW Issues Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PRSDK-8844] IPC: Lock Mutex in RPMessage_recvNb() API
Don Dominic [Wed, 23 Jun 2021 17:56:27 +0000 (23:26 +0530)]
[PRSDK-8844] IPC: Lock Mutex in RPMessage_recvNb() API

- This is to avoid semaphore count overflow, in cases where
  RPMessage_recvNb() is used in non-baremetal scenario.
  Because in non-baremetal case whenever a new message is received,
  RPMessage_enqueMsg internal API will post the semaphore (call unlockMutex)
  This may cause overflow and hence call lockMutex with timeout zero

- Validated multicore ipc echo test with mcu1_0(rtos) <-> mcu2_0(baremetal)

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoFreeRTOS: Enable vTaskPrioritySet API
Don Dominic [Wed, 23 Jun 2021 15:28:04 +0000 (20:58 +0530)]
FreeRTOS: Enable vTaskPrioritySet API

- Set INCLUDE_vTaskPrioritySet in FreeRTOSConfig.h
- vTaskPrioritySet is used by OSAL API TaskP_setPrio

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9437] Board: DDR UDMA Prime: Move source buffer to MSMC for better performance
Don Dominic [Wed, 23 Jun 2021 12:43:28 +0000 (18:13 +0530)]
[PDK-9437] Board: DDR UDMA Prime: Move source buffer to MSMC for better performance

- Instead of CPU Write the first chunk of DDR and later use as source buffer
- Init Source buffer in MSMC
- This improves performnce since MSMC-DDR memcpy perf of UDMA is better than DDR-DDR

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-9437] Board: DDR ECC: Use DMA to prime DDR memory for ECC config
Don Dominic [Mon, 21 Jun 2021 18:40:56 +0000 (00:10 +0530)]
[PDK-9437] Board: DDR ECC: Use DMA to prime DDR memory for ECC config

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-6793] OSAL: MutexP: Added new UT
Don Dominic [Wed, 23 Jun 2021 20:10:52 +0000 (01:40 +0530)]
[PDK-6793] OSAL: MutexP: Added new UT

- Added new UT to validate mutex locking with OSAL Mutex API's
  - Test creates 'n' tasks
  - Each tasks enters critical section inside a for loop of 'm' times
  - Forcefully yeild/switch task in middle of critical section
- Verify value fo critical variable after tasks completion
- Same test, fails when mutex locking is not done

- Also includes, some comment updates in MutexP.h

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months ago[PDK-6793] SYSBIOS: Enable ti.sysbios.gates.GateMutexPri module
Don Dominic [Wed, 23 Jun 2021 19:51:22 +0000 (01:21 +0530)]
[PDK-6793] SYSBIOS: Enable ti.sysbios.gates.GateMutexPri module

- Enable SYSBIOS Events - ti.sysbios.knl.Event
  for AM65xx/J721E/J7200/J721S2/AM64x R5F/A72/C7x/C66x
  in top level sysbios cfg file at ti/build/

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoIPC: KW Issues Fix
Don Dominic [Thu, 24 Jun 2021 12:11:16 +0000 (17:41 +0530)]
IPC: KW Issues Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoPDK-9661 : McASP : Porting to support FreeRTOS & TI RTOS
sujith [Mon, 21 Jun 2021 14:53:19 +0000 (20:23 +0530)]
PDK-9661 : McASP : Porting to support FreeRTOS & TI RTOS

Tested following
bios
am65xx mcu 10, mpu 10
j721e mcu 10
j7200 mcu 10
freertos
am65xx mcu 10
j721e mcu 10
j7200 mcu 10

Signed-off-by: sujith <sujith.s@ti.com>
3 months agoJACINTOREQ-1464 : McASP
sujith [Thu, 17 Jun 2021 09:13:27 +0000 (14:43 +0530)]
JACINTOREQ-1464 : McASP

Signed-off-by: sujith <sujith.s@ti.com>
3 months agoRevert "ccs lauch script : Reset MCU 11 to ensure tcm config take effect"
Ankur [Thu, 24 Jun 2021 04:37:45 +0000 (10:07 +0530)]
Revert "ccs lauch script : Reset MCU 11 to ensure tcm config take effect"

This reverts commit 896234a04d12859682db698f5a83914d2cc2d5f1.

3 months agoremove build for tpr12_qt from top level build
Prasad Konnur [Mon, 21 Jun 2021 08:16:18 +0000 (13:46 +0530)]
remove build for tpr12_qt from top level build

 - when building from packages folder it builds for all supported Boards
 - current tpr12 PDK releases are packaging only for tpr12_evm

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 months agoOSAL: Match FreeRTOS Semaphore max count for J7 with that of tirtos
Don Dominic [Wed, 23 Jun 2021 18:17:11 +0000 (23:47 +0530)]
OSAL: Match FreeRTOS Semaphore max count for J7 with that of tirtos

- Update freertos sempahore max count for j721e/j721s2/j7200
  to match with tirtos

Signed-off-by: Don Dominic <a0486429@ti.com>
3 months agoFreeRTOS: making _system_post_cinit as weak
Aditya Wadhwa [Tue, 22 Jun 2021 20:07:33 +0000 (01:37 +0530)]
FreeRTOS: making _system_post_cinit as weak
\
- this allows applications to override this function

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 months ago[Build Fix]PCIe and USB REL.CORESDK.08.00.00.24
Vivek Dhande [Wed, 23 Jun 2021 09:35:15 +0000 (15:05 +0530)]
[Build Fix]PCIe and USB

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 months agoPDK-7119: SBL: Adds basic config for Ethernet PHY REL.CORESDK.08.00.00.23
Jonathan Bergsagel [Tue, 22 Jun 2021 06:03:52 +0000 (01:03 -0500)]
PDK-7119: SBL: Adds basic config for Ethernet PHY

Adds basic board config for external Ethernet GESI
board connected to J721E/J7200.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
4 months agotimesync: hal: ptp: Update to use OSAL APIs
Praveen Rao [Mon, 14 Jun 2021 20:55:28 +0000 (15:55 -0500)]
timesync: hal: ptp: Update to use OSAL APIs

Signed-off-by: Praveen Rao <prao@ti.com>
4 months agoPCIE,USB: Build warnings fix REL.CORESDK.08.00.00.22
Don Dominic [Tue, 22 Jun 2021 13:21:57 +0000 (18:51 +0530)]
PCIE,USB: Build warnings fix

- Fix following kind of build warnings in pcie and usb
```
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: ignoring old recipe for target 'PCIE_Qos_ExampleProject_tirtos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: overriding recipe for target 'PCIE_Qos_ExampleProject_freertos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: ignoring old recipe for target 'PCIE_Qos_ExampleProject_freertos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'USB_Baremetal_HostMsc_TestApp' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'USB_Baremetal_DevMsc_TestApp' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'USB_Baremetal_HostMsc_usb30_TestApp' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'PCIE_sample_ExampleProject_tirtos' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'PCIE_sample_ExampleProject_freertos' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'PCIE_Qos_ExampleProject_tirtos' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:365: target 'PCIE_Qos_ExampleProject_freertos' given more than once in the same rule
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: overriding recipe for target 'USB_HostMsc_usb30_TestApp_freertos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: ignoring old recipe for target 'USB_HostMsc_usb30_TestApp_freertos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: overriding recipe for target 'PCIE_sample_ExampleProject_tirtos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: ignoring old recipe for target 'PCIE_sample_ExampleProject_tirtos_has_dep'
/ti/jacinto_backup/pdk/packages/ti/build/makefile:125: warning: overriding recipe for target 'PCIE_sample_ExampleProject_freertos_has_dep'

```

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months agoPDK-9868: Integrated the USB updates done for AM57x platform
M V Pratap Reddy [Tue, 22 Jun 2021 11:18:01 +0000 (16:48 +0530)]
PDK-9868: Integrated the USB updates done for AM57x platform

4 months ago[Addressed Review Comments]Patch2
Vivek Dhande [Tue, 22 Jun 2021 11:46:41 +0000 (17:16 +0530)]
[Addressed Review Comments]Patch2

- Fixed review comments from: https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/1980/overview

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 months agoPDK-8166: Fix for SD access failure at 1.8v
M V Pratap Reddy [Tue, 22 Jun 2021 06:16:53 +0000 (11:46 +0530)]
PDK-8166: Fix for SD access failure at 1.8v

   - MMCSD PHY parameters needs to be configured to different values based
     on the SD card volatge and operating frequency/mode

4 months ago[Addressed Review Comments]
Vivek Dhande [Tue, 22 Jun 2021 08:48:58 +0000 (14:18 +0530)]
[Addressed Review Comments]

- Added back files for J721E

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 months ago[FreeRTOS Porting][PDK-9500]FATFS/USB/PCIE Driver migration to FreeRTOS on R5F
Vivek Dhande [Fri, 18 Jun 2021 09:37:31 +0000 (15:07 +0530)]
[FreeRTOS Porting][PDK-9500]FATFS/USB/PCIE Driver migration to FreeRTOS on R5F

- PCIe freeRTOS porting
- Removed USB support for J721
- Removed SMP apps

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 months ago[FreeRTOS Porting][PDK-9500]FATFS/USB/PCIE Driver migration to FreeRTOS on R5F
Vivek Dhande [Tue, 15 Jun 2021 15:36:57 +0000 (21:06 +0530)]
[FreeRTOS Porting][PDK-9500]FATFS/USB/PCIE Driver migration to FreeRTOS on R5F

- USB freeRTOS porting
- Removed USB support for J721 & J7200
- Removed SMP apps

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 months agoOSAL: FreeRTOS TaskP: Update in TaskP_isTerminated
Don Dominic [Mon, 21 Jun 2021 14:14:07 +0000 (19:44 +0530)]
OSAL: FreeRTOS TaskP: Update in TaskP_isTerminated

- Add a new flag 'terminated' to TaskP_freertos structure
- Set the flag when taskFxn completes execution
- TaskP_isTerminated to check the flag first

- This update is required to be equivalent with SYSBIOS task going to Task_Mode_TERMINATED state,
  with either Task_exit() (which will be called automatically when the task returns from its top-level function)
  or by Task_delete()

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months agoOSAL: TaskP: Add API's to disable and restore task schedular
Don Dominic [Mon, 21 Jun 2021 11:01:42 +0000 (16:31 +0530)]
OSAL: TaskP: Add API's to disable and restore task schedular

- New API's
  - TaskP_disable : disables all other Tasks from running until ::TaskP_restore
  - TaskP_restore : Restore Task scheduling state

- SYSBIOS
  - Task_disable
  - Task_restore

- FreeRTOS
  - vTaskSuspendAll
  - xTaskResumeAll

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months agoOSAL: Increase the task count
Praveen Rao [Mon, 21 Jun 2021 14:39:47 +0000 (09:39 -0500)]
OSAL: Increase the task count

Increasing the task count in the OSAL from 20 to 40.
In the FreeRTOS OSAL port, we have static task creation and the
max task is pre-determined.
But, For EthFW server app, we would need around 28 tasks, hence
increasing the count from 20 to 40.

Signed-off-by: Praveen Rao <prao@ti.com>
4 months agoDiabling all McSPI example due to build issue REL.CORESDK.08.00.00.21
Ankur [Sat, 19 Jun 2021 20:41:39 +0000 (02:11 +0530)]
Diabling all McSPI example due to build issue

Signed-off-by: Ankur <a0132173@ti.com>
4 months agoDiabling McSPI RTOS apps due to Nightly Build issue
Ankur [Sat, 19 Jun 2021 11:01:43 +0000 (16:31 +0530)]
Diabling McSPI RTOS apps due to Nightly Build issue

Signed-off-by: Ankur <a0132173@ti.com>
4 months agoRemoving SMP test app for Uart + removing local app name
Ankur [Sat, 19 Jun 2021 07:30:40 +0000 (13:00 +0530)]
Removing SMP test app for Uart + removing local app name

Signed-off-by: Ankur <a0132173@ti.com>
4 months ago[PDK-9782] OSAL: FreeRTOS TaskP: Suspend a task after completion of task Fxn
Don Dominic [Thu, 17 Jun 2021 11:45:03 +0000 (17:15 +0530)]
[PDK-9782] OSAL: FreeRTOS TaskP: Suspend a task after completion of task Fxn

- Instead of calling "TaskP_delete", After Task Fxn completed execution
- Put vTaskSuspend in a loop just in case some calls vTaskResume, it will go back to suspend.

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] FreeRTOS: Port: Update uiPortGetRunTimeCounterValue to return current...
Don Dominic [Thu, 17 Jun 2021 11:40:13 +0000 (17:10 +0530)]
[PDK-9782] FreeRTOS: Port: Update uiPortGetRunTimeCounterValue to return current counter in units of usecs

- return current counter in units of usecs,
  instead of units of 10's of usecs
- We call LoadP_update() in idle loop (from vApplicationIdleHook)
  to accumlate the task load into a 64b value.

- Related unit_test/examples and TimerP_getTimeInUsecs updates

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: LoadP: Address Review Comments - FreeRTOS Implementation updates
Don Dominic [Fri, 18 Jun 2021 13:47:50 +0000 (19:17 +0530)]
[PDK-9782] OSAL: LoadP: Address Review Comments - FreeRTOS Implementation updates

- Remove LoadP_registerTask and LoadP_unRegisterTask
  - Instead use the static pool of tasks created with TaskP_create
    - LoadP_addTask invoked during TaskP_create
    - LoadP_removeTask invoked during Task_delete
    - Add 'tskId' to 'TaskP_freertos'
    - Add TaskP_getTaskId to return tskId from TaskP_Handle
- Remove LoadP_start and LoadP_stop; Instead implement Load_reset
  - Remove gLoadP_startLoadCalc flag;
  - Always update in idle to avoid double overflow
- Remove 'name' in LoadP_taskLoadObj, instead get from 'vTaskGetInfo' to pass to LoadP_Stats
  - Also Remove 'taskDeleted' flag in LoadP_taskLoadObj
- Handle counter overflow
  - Added LoadP_calcCounterDiff

- Related changes in Unit Test

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: LoadP: Address Review Comments - Remove SYSBIOS support in OSAL...
Don Dominic [Wed, 16 Jun 2021 13:41:06 +0000 (19:11 +0530)]
[PDK-9782] OSAL: LoadP: Address Review Comments - Remove SYSBIOS support in OSAL LoadP

Revert "[PDK-9782] OSAL: LoadP: Added Load module implementation for TI-RTOS"

This reverts commit 451e5c5a4e25e5d8ebd7a88def31fb961e19bc3b.

4 months ago[PDK-9782] OSAL UT: Added unit tests for OSAL LoadP
Don Dominic [Sat, 12 Jun 2021 21:38:11 +0000 (03:08 +0530)]
[PDK-9782] OSAL UT: Added unit tests for OSAL LoadP

- Added OSAL_load_test for cpu/task load measurement
  and LoadP API's negative test

- CPU / Task Load Measurement test:-
  - Main test task starts load measurement
  - creates 3 sub tasks(Tasks A/B/C) and registers for load measurement
    ```
    /* ==============================================================================
     * Stay in while loop of Task A for ~2s, (Expected Task Load:......2s/7s = ~28%)
     *           followed by Task B for ~1s, (Expected Task Load:......1s/7s = ~14%)
     *           followed by Task C for ~0.5s(Expected Task Load:.....0.5/7s = ~ 7%)
     *  And finally go to idle mode for ~3.5s(Expected CPU Load :(7-3.5)s/7s = ~50%)
     * ------------------------------------------------------------------------------
     * Total Time: ~(2s+1s+0.5+3.5s) =  ~7s |
     * =============================================================================*/
    ```
- Queries and prints task/cpu load

- Validated test for SYSBIOS and FreeRTOS

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: LoadP: FreeRTOS: Add support for Load update in IDLE task
Don Dominic [Sat, 12 Jun 2021 21:24:38 +0000 (02:54 +0530)]
[PDK-9782] OSAL: LoadP: FreeRTOS: Add support for Load update in IDLE task

- Added new config define ```configLOAD_UPDATE_IN_IDLE``` to enable Load update in idle task
  - This config enables ```configUSE_IDLE_HOOK```
- Also added config define ```configLOAD_WINDOW_IN_MS``` to configure load update window in milli-seconds
- Define vApplicationIdleHook function in port.c ( The idle task hook function)
- Invoke Load Update Hook Callback Fxn when load measurement started

- This updates are equivalent to following SYSBIOS cfg:
 *
 *              var Load = xdc.useModule('ti.sysbios.utils.Load');
 *
 *              Load.updateInIdle = true;
 *              Load.windowInMs   = 500;
 *              Load.postUpdate   = '&LoadP_update';

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: LoadP: Added Load module implementation for FreeRTOS
Don Dominic [Sat, 12 Jun 2021 21:21:53 +0000 (02:51 +0530)]
[PDK-9782] OSAL: LoadP: Added Load module implementation for FreeRTOS

- Abstraction layer with basic task/cpu load measurement support for FreeRTOS
- Updates in TaskP FreeRTOS to update a deleteing task's load

Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9782] FreeRTOS: Enable FreeRTOS Get Idle Task Hanlde

- Enable following INCLUDE in FreeRTOSConfig.h to support CPU Load measurement
  - INCLUDE_xTaskGetIdleTaskHandle

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: LoadP: Added Load module implementation for TI-RTOS
Don Dominic [Thu, 17 Jun 2021 11:54:49 +0000 (17:24 +0530)]
[PDK-9782] OSAL: LoadP: Added Load module implementation for TI-RTOS

- Abstraction layer with basic task/cpu load measurement support for SYSBIOS

SYSBIOS: Enable ti.sysbios.utils.Load module and update in Idle

- For AM65xx/J721E/J7200/J721S2/AM64x R5F/A72/C7x/C66x
  in top level sysbios cfg file at ti/build/

- Set updateInIdle
- Set windowInMs to 500 milli seconds
- Set postUpdate Fxn to OSAL LoadP Hook Callback Fxn

Signed-off-by: Don Dominic <a0486429@ti.com>
4 months ago[PDK-9782] OSAL: Load module to measure CPU Load and Task Load
Don Dominic [Sat, 12 Jun 2021 21:11:28 +0000 (02:41 +0530)]
[PDK-9782] OSAL: Load module to measure CPU Load and Task Load

OSAL LoadP module with various API's to
- Register and unregister a task for load measurement
- Start/Stop Load measurement
- Get a registered task's load stats
- Get CPU load
- Hook Callback Fxn for load update

Signed-off-by: Don Dominic <a0486429@ti.com>