Quantcast
Channel: Processors forum - Recent Threads
Viewing all 17527 articles
Browse latest View live

66AK2H14: Problems with SPI Clock

$
0
0

Part Number: 66AK2H14

Hello, I'm trying to develop a simple, baremetal SPI example program using the 66AKH14 processor. The trouble I am seeing is the data is not correct and the clock has non-uniform pulse widths.

The SPI clock should be 6Mhz and for 16-bit data the total time should be about 2.7us and it but the pulse widths are not the same. I'm expecting the same pulse width, am I correct? Also, the first word I am sending out is 0xA but I don't see that on the MOSI pin.

Any ideas what I may be doing wrong?

Here is my code:

(Please visit the site to view this file)

I'm running the code on DSP Core 0 and using SPI Channel 0.

Thank you very much,

Joe


AM3358: McASP as uart

$
0
0

Part Number: AM3358

Hi,

1.     I am tring to implement McASP as uart but i cant get any document for that

i got one old kernel version document but its not match with my current SDK linux kernel version as mentioned in the document. document link below:-

http://processors.wiki.ti.com/index.php/Soft-UART_Implementation_on_AM335X_PRU_-_Software_Users_Guide

i am using ti-processor-sdk-linux-am335x-evm-05.03.00.07 version

2. I run pru_uart example application i am getting following error 

./example_PRU_Hardware_UART.out: cannot execute binary file: Exec format error

PROCESSOR-SDK-TDAX: [TDA4] RTOS+Linux demos mmap failure

$
0
0

Part Number: PROCESSOR-SDK-TDAX

Hello,

When running the single camera demo (vx_app_single_cam.out ) on the J721e EVM board, the following error occurs after mmap:
Operation not permitted: Operation not permitted

After reading about the issue, I found out there is a Linux kernel flag called strict-devmem, which prevents the user from reading /dev/mem.
I am using the kernel, provided from the tisdk-rootfs-image-j7-evm tar from the release.
Is there a possibility that the provided kernel has been compiled with that flag set to true?

This is the log of the single cam demo application (with more verbose prints added for debug purposes).
APP: Init ... !!!
APP_LOG: Mapping 0xb8000000 ...
INITIAL: 3087007744
INITIAL SIZE: 262144
AFTER: 3087007744
AFTER SIZE: 262144
Operation not permitted: Operation not permitted
0xffffffffffffffff
(nil)APP_LOG: Mapped 0xb8000000 -> (nil) of size 262144 bytes
APP_LOG: ERROR: Unable to map memory @ 0xb8000000 of size 262144 bytes !!!
APP: ERROR: Log writer init failed !!!

Best Regards,
Todor

AM3358: McASP pins configure as soft UART

$
0
0

Part Number: AM3358

Hi,

   I am tring to configure McASP pins as soft UART .

   I got one document for McASP pins as soft UART(Soft UART)  in wiki but its older version kernel its not match with my current SDK linux kernel version, that option not available in the newer kernel

   http://processors.wiki.ti.com/index.php/Soft-UART_Implementation_on_AM335X_PRU_-_Software_Users_Guide

   i am using ti-processor-sdk-linux-am335x-evm-05.03.00.07 version.

  pls help me how to configure McASP pins!

  also when i run PRU_UART example application from the  SDK i am getting below error   

./prucap_PRU_Hardware_UART.out: cannot execute binary file: Exec format error

Thanks

PROCESSOR-SDK-AM65X: Android HW composer DPI calculation

$
0
0

Part Number: PROCESSOR-SDK-AM65X

Hello,

I am curious about why Android's HW composer uses htotal and vtotal for calculating display DPI rather than hdisplay and vdisplay. In my understanding, the calculation is using the active area measurements (mmWidth and mmHeight) and a mm-to-in conversion which means the formula should be using the active area resolution. Is my understanding unsound or is there a bug in the following code?

http://git.ti.com/cgit/cgit.cgi/android/hardware-ti-am57x.git/commit/?h=d-pie-core-release&id=b9d1ef4713bab0ead7b0eacaa3d1e3f94469135d

Thanks,
Matt McKee

66AK2H14: Default Frequency of SYSCLKOUT pin

$
0
0

Part Number: 66AK2H14

Hello, I am using the 66AK2H14DAAWA24 processor and would like to know what is the default frequency of the SYSCLKOUT pin? I am measuring 200Mhz and from reading the datasheet it should be 1/6 of the DSP SYSCLK. So without being programmed it defaults to the highest frequency of the DSP Core, am I correct?

I could try changing the PLL setting in the gel file to a lower frequency and I would expect this SYSCLKOUT pin to change in frequency, am I correct?

Thank you,

Joe

AM6548: TI SDK - PHY driver included, for Marvell

$
0
0

Part Number: AM6548

The TI SDK 06.00.00.07 includes a Marvell driver that is out of date. (marvell.c)

How can I update the file to work with Marvell Q2112.

What steps are recommended ?

Links ?

 

Linux/AM3358: BeagleBoneBlack UBoot HDMI Splash

$
0
0

Part Number: AM3358

Tool/software: Linux

I'm attempting something very similar to (https://e2e.ti.com/support/processors/f/791/t/782759?tisearch=e2e-quicksearch&keymatch=am335x%20splash). I'm using a BeagleBoneBlack and attempting to output a splash screen to connected HDMI screen. I find quite a bit on splash images for LCD, but can't find any solid information on how to setup/utilize the HDMI port. Is it not possible to initialize and drive the necessary chips, or am I just overlooking something. Thank you for any info!


CCS/66AK2H14: Multiple main() shown in Debug Window

$
0
0

Part Number: 66AK2H14

Tool/software: Code Composer Studio

Hello, I would like to know why I am getting multiple main() shown in the debug window.

Before ConfigUserParam function call:

After ConfigUserParam function call:

Notice in the Debug Window the multiple main() calls. I only loaded the code on DSP Core 0.

(Please visit the site to view this file)

(Please visit the site to view this file)

Is this normal?

Thanks,

Joe

CCS/PROCESSOR-SDK-AM437X: CCS/AM437x: Building Starterware projects

$
0
0

Part Number: PROCESSOR-SDK-AM437X

Tool/software: Code Composer Studio

My current environment details:

- HW: AM437x_idk

- OS: Linux, v.4.2.0-35-generic, x86_64 / gtk 2.24.23

- Code Composer Studio (CCS) version: 8.1.0.00011 

- PDK Version: pdk_am437x_1_0_12

I was able to setup the PDK and run the "pdkProjectCreate.sh" for the AM437x_idk board. I could see all the projects (missing the Starterware examples for modules like DMtimer etc) that were built and ready for CCS.

Since I wanted to benchmark the interrupt latency (in my case using a Timer) on the AM437X_IDK, I imported and updated the "UART_BasicExample_idkAM437x_armExampleProject" inside CCS to make use of the Timer functionality. Here's a code snippet for the timer config:

Timer_Params_init(&timerParams);

timerParams.period = 1000; //100usec timer
timerParams.runMode = Timer_RunMode_ONESHOT; //Timer_RunMode_CONTINUOUS; //Timer_RunMode_ONESHOT;
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.startMode = Timer_StartMode_USER;
timerParams.arg = 0;
//timerParams.extFreq.lo = 1000000;
//timerParams.extFreq.hi = 0;

myTimer = Timer_create(Timer_ANY, myIsr, &timerParams, &eb); //Timer_ANY
if (myTimer == NULL) {
System_abort("Timer create failed");
}

In my case, As you can see I am using Timer_ANY, so each timer it defaults to DMTimer0 or sometimes DMtimer2, both of which run at 32768 Hz.

For my Interrupt latency benchmarking I would like to use The other DMTimers which run at 24000000 Hz for better resolution. But each timer I manually try to use any Timer ID other than 0 and 2 my code crashes throwing exceptions. After looking at some forum questions (mentioned below) it became apparent that I need to either add DMTimer3ModuleClkConfig(); function or I need to use the DMTimer library/example from the Starterware and manually configure the clock for other DMTimers.

https://e2e.ti.com/support/legacy_forums/embedded/tirtos/f/355/t/272744?DMTimer-periphery-clock-enabling-DMTimer3ModuleClkConfig-

So my 2 question are:

- How can I make use of the DMTimers 1, 3 through 11 while still using the SYSBIOS/HAL API. If this works the below question is moot.

- How do I create a CCS project for the Starterware/Example/DMTimer ?  I have tried to find documentation for over a week but no luck. So any help is appreciated. 

Thanks,
Virendra

[TDA4M] Question about the removal of AUDIO_EXT_REFCLK source

$
0
0

Hi,

I have a question about AUDIO_EXT_REFCLK clocks.

If audio functions are not used,  can you confirm that AUDIO_EXT_REFCLK0/1/2/3 clock related circuit can be removed and  these audio external clocks are only used for MCASP or other usages?

Regards,

Soolim

AM3354: 36MHz clock for SPI

$
0
0

Part Number: AM3354

Hi team,

Is it possible to set SPI clock to 36MHz? If yes, how?

I am using 24MHz crystal.

TDA2EVM5777: Does VPE affect FPS performance?

$
0
0

Part Number: TDA2EVM5777

Hi.

I'm testing TIDL_OD Usecase on Linux.

VPE's "chParams [chIdoutParams] [0].Does the numBufsPerCh" parameter affect display FPS?

When I set numBufsPerCh to 4, TIDL performance was about 17FPS.
At this time, a frame drop was happening at the VPE.

but set numBufsPerCh to 6, TIDL performance was about 24FPS.
At this time, a frame drop was not happening at the VPE.

I analyzed the code of VPE, but I'm not sure.

What is the role of the numBufsPerCh parameter in VPE?

Does this affect performance?

I would appreciate it if you let me know.

Regards,

Lee.

TDA2EVM5777: How to set channel number for framecopy?

$
0
0

Part Number: TDA2EVM5777

Hi,

I trying to add a alg_framecopy in lvds_vip_multi_cam_view, the chains show below

Capture -> Alg_FrameCopy (DSP1) -> Dup -> Sync -> Alg_VpeSwMs -> Merge
Dup -> Merge
Merge -> Display_video
GrpxSrc -> Display_Grpx

And I set the parameters for alg_framecopy show below

Void chains_lvdsVipMultiCam_Display_SetFrameCopyAlgPrms(
		AlgorithmLink_FrameCopyCreateParams *pPrm,
		Chains_Ctrl *chainsCfg){

	Vps_printf("enterrrrrrrr:%s,%d\n",__func__,__LINE__);

    if( chainsCfg->algProcId == SYSTEM_PROC_DSP1
             ||
             chainsCfg->algProcId == SYSTEM_PROC_DSP2)
             {
                 pPrm->baseClassCreate.algId = ALGORITHM_LINK_DSP_ALG_FRAMECOPY;
             }
    else if( chainsCfg->algProcId == SYSTEM_PROC_EVE1
             ||
             chainsCfg->algProcId == SYSTEM_PROC_EVE2
             ||
             chainsCfg->algProcId == SYSTEM_PROC_EVE3
             ||
             chainsCfg->algProcId == SYSTEM_PROC_EVE4)
            {
                pPrm->baseClassCreate.algId = ALGORITHM_LINK_EVE_ALG_FRAMECOPY;
            }
    else if(chainsCfg->algProcId == SYSTEM_PROC_A15_0)
            {
                pPrm->baseClassCreate.algId = ALGORITHM_LINK_A15_ALG_FRAMECOPY;
            }

    pPrm->maxWidth    = CAPTURE_SENSOR_WIDTH;
    pPrm->maxHeight   = CAPTURE_SENSOR_HEIGHT;

    pPrm->numOutputFrames = 3;
}

When I capture only 1 channel lvds, the usecase run well.But when I try to capture 4 channels lvds,it's failed.The log show below

[IPU1-0]  Multi-Camera LVDS Usecases
[IPU1-0]  ----------------------------
[IPU1-0]  1: 4CH VIP Capture + Mosaic Display 
[IPU1-0]  2: 4CH VIP Capture + Surround View (DSP) + Display (HDMI)
[IPU1-0]  3: 5CH VIP Capture + Surround View (DSPx) + Analytics (DSP/EVE) + Ultrasound (DSPx) + HDMI Display (HDMI) (TDA2x ONLY)
[IPU1-0]  5: 2CH VIP Capture (2560x720) + Surround View (DSPx) + Display (TDA2x + TIDA0455 only)
[IPU1-0]  6: Surround View Calibration
[IPU1-0]  
[IPU1-0]  x: Exit 
[IPU1-0]  
[IPU1-0]  Enter Choice: 
[IPU1-0]  
[IPU1-0]     22.764259 s:  
[IPU1-0]     22.764350 s: 
[IPU1-0]  
[IPU1-0]  ====================
[IPU1-0]  Num CH Settings     
[IPU1-0]  ====================
[IPU1-0]  
[IPU1-0]  0: For Single channel mode
[IPU1-0]  1: For Multi channel mode
[IPU1-0]  
[IPU1-0]  Enter Choice: 
[IPU1-0]  
[IPU1-0]     24.028426 s:  CHAINS: ChainsCommon_MultiCam_StartCaptureDevice
[IPU1-0]     24.029128 s:  VIDEO_SENSOR: INST1 : I2C1 : I2C Addr = 0x38
[IPU1-0]     24.278411 s:  VIDEO_SENSOR: VIP 0: DRV ID 1205 (I2C ADDR 0x38): a635:0000:7fa2
[IPU1-0]     24.278899 s:  VIDEO_SENSOR: INST2 : I2C1 : I2C Addr = 0x39
[IPU1-0]     24.628865 s:  VIDEO_SENSOR: VIP 2: DRV ID 1205 (I2C ADDR 0x39): a635:0000:7fa2
[IPU1-0]     24.629567 s:  VIDEO_SENSOR: INST3 : I2C1 : I2C Addr = 0x3a
[IPU1-0]     24.979106 s:  VIDEO_SENSOR: VIP 4: DRV ID 1205 (I2C ADDR 0x3a): a635:0000:7fa2
[IPU1-0]     24.979594 s:  VIDEO_SENSOR: INST4 : I2C1 : I2C Addr = 0x3b
[IPU1-0]     25.328890 s:  VIDEO_SENSOR: VIP 8: DRV ID 1205 (I2C ADDR 0x3b): a635:0000:7fa2
[IPU1-0]     26.098334 s: enterrrrrrrr:chains_lvdsVipMultiCam_Display_SetFrameCopyAlgPrms,288
[IPU1-0]     26.098487 s:  CAPTURE: Create in progress !!!
[IPU1-0]     26.098700 s:  CAPTURE: VIP1 Slice0 PortA capture mode is [ 8-bit] !!! 
[IPU1-0]     26.223723 s:  CAPTURE: VIP1 Slice1 PortA capture mode is [ 8-bit] !!! 
[IPU1-0]     26.348776 s:  CAPTURE: VIP2 Slice0 PortA capture mode is [ 8-bit] !!! 
[IPU1-0]     26.473860 s:  CAPTURE: VIP3 Slice0 PortA capture mode is [ 8-bit] !!! 
[IPU1-0]     26.599036 s:  CAPTURE: Create Done !!!
[IPU1-0]     26.599402 s:  IPC_OUT_0   : Create in progress !!!
[IPU1-0]     26.599707 s:  IPC_OUT_0   : Create Done !!!
[DSP1  ]     26.599920 s:  IPC_IN_0   : Create in progress !!!
[DSP1  ]     26.600286 s:  IPC_IN_0   : Create Done !!!
[DSP1  ]     26.600439 s:  ALGORITHM: Create in progress (algId = 0) !!!
[DSP1  ]     26.600561 s:  ALG_FRAMECOPY: DMA: Allocated CH (TCC) = 0 (0)
[DSP1  ]     26.658573 s:  Assertion @ Line: 420 in algorithmLink_algPluginSupport.c: status == SYSTEM_LINK_STATUS_SOK : failed !!!
[DSP1  ]     26.658756 s:  Assertion @ Line: 420 in algorithmLink_algPluginSupport.c: status == SYSTEM_LINK_STATUS_SOK : failed !!!

I think it 's because the channel of framecopy doesn't match the capture.So, how do I set the channel for framecopy?

OMAP-L138: A question about TMS320C6748 and OMAP-L138(456MHz)

$
0
0

Part Number: OMAP-L138

Hi all

     Before our project, we used TMS320C6746  and used the TPS650061 for power supply.Now I want to upgrade the processor to OMAP-L138(456MHz). Can I replace 6746 directly with OMAP-L138 P2P? If the TPS650061 also  supported ? Thank you.


DM8127 IPNC RDK Release (v3.9.1) Syslink example

$
0
0

I work with DM8127 IPNC RDK Release (v3.9.1)

I try to build sylink example and get a problem:

$ sudo make
#
# Making all ...
make -C host all
make[1]: вход в каталог «/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/syslink_2_21_02_10/examples/ex01_helloworld/host»
#
# Making all ...
make PROFILE=debug app_host
make[2]: вход в каталог «/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/syslink_2_21_02_10/examples/ex01_helloworld/host»
#
# Making bin/debug/obj/main_host.ov5T ...
/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -c -MD -MF bin/debug/obj/main_host.ov5T.dep -march=armv5t -D_REENTRANT -Dxdc_target_name__=GCArmv5T -Dxdc_target_types__=gnu/targets/arm/std.h -Wall -ffloat-store  -fPIC -Wunused -Dfar= -ggdb -D DEBUG -I. -I/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/syslink_2_21_02_10/packages -I/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/bios_6_37_01_24/packages -I/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/ipc_1_25_03_15/packages -o bin/debug/obj/main_host.ov5T main_host.c
In file included from /home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/endian.h:60:0,
                 from /home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/bits/waitstatus.h:64,
                 from /home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/stdlib.h:42,
                 from main_host.c:40:
/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/bits/byteswap.h: In function '__bswap_32':
/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/linux_devkit/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/bits/byteswap.h:45:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
 {
 ^
makefile:83: recipe for target 'bin/debug/obj/main_host.ov5T' failed
make[2]: *** [bin/debug/obj/main_host.ov5T] Error 1
make[2]: выход из каталога «/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/syslink_2_21_02_10/examples/ex01_helloworld/host»
makefile:52: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: выход из каталога «/home/gleb/WORK/ipnc_rdk-3.9.1/Source/ti_tools/syslink_2_21_02_10/examples/ex01_helloworld/host»
makefile:43: recipe for target 'all' failed
make: *** [all] Error 2

What does this error  "sorry, unimplemented: Thumb-1 hard-float VFP ABI" mean?

What should I do to build syslink example successfully?

 

TDA3MV: [TIDL]is there sematic segmentation, object detect usecase for TDA3?

$
0
0

Part Number: TDA3MV

Dear Champs,

It seems there are 'segmatic segmentation' and 'object detect' usecase only for TDA2 in VisionSDK.

Can these usecase be used for TDA3?

Could you please provide advice how customer can modify these usecase for TDA3 in VisionSDK?

Thanks and Best Regards,

SI.

CCS/TMDSLCDK6748: Is there a TCP / IP Server Example Project or Code on the TMS320C6748, TMDSLCDK6748?

$
0
0

Part Number: TMDSLCDK6748

Tool/software: Code Composer Studio

I am testing with the TMDSLCDK6748 board.

I am trying to implement Ethernet TCP / IP Server using TI / RTOS but there is no example project.

I found UDP, TCP / IP Client, but is there no example code for Server?

Should I merge the code from the fragmented server inside the NDK and create a project?

Let me know if you know how

AM3358: Uboot environment

$
0
0

Part Number: AM3358

Hi,

The customer flashed uboot in spi nor flash and dtb+kernel+rootfs in emmc.

1.He set bootfile=uImage(original ZImage), and system can reading uImage successfully.

printenv->uImage

2.Clear bootfile and the system reading zImage again after reboot

printenv->zImage

Please help explain in detail.

AM3358: Reducing DDR size

$
0
0

Part Number: AM3358

Hello,

The default DRAM size of beaglebone black is 512MB. In order to use half density of it, I tried modification on reg_rowsize or reg_pagesize of MT41K256M16HA125E_EMIF_SDCFG in ddr_defsh.h file. However, I still see same u-boot log as before. What's wrong here and how to debug this change? I'd like to debug it on Tera Term with printf command if possible. I put u-boot message and modified codes below.

Best Regards,

Jeff

  • modified code
    • ddr_defsh.h, MT41K256M16HA125E_EMIF_SDCFG
      • reg_rowsize : original 16bit 0x61C05332 ==> reduced 15bit 0x61C052B2
      • reg_pagesize : original 10bit 0x61C05332 ==> reduced 9bit 0x61C05331
  • u-boot log

U-Boot 2016.01-00001-g4eb802e (Jan 13 2016 - 11:14:31 -0600), Build: jenkins-github_Bootloader-Builder-313

 

       Watchdog enabled

I2C:   ready

DRAM:  512 MiB

Reset Source: Global external warm reset has occurred.

Reset Source: Power-on reset has occurred.

MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1

Using default environment

 

Net:   <ethaddr> not set. Validating first E-fuse MAC

cpsw, usb_ether

Press SPACE to abort autoboot in 2 seconds

=>

Viewing all 17527 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>