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

AM5708: PRU-UART

$
0
0

Part Number:AM5708

Hi,

I am trying to use the PRU - UART0, I refer to the pru-software-support-package/examples/am335x/PRU_Hardware_UART project, also carried out in accordance with the manual AM5708 datasheet (Section 30.7.3.7) to initialize the UART , But pr1_uart0_rxd and pr1_uart0_txd have no output ,both pins are 3.3v . And I've closed the loopback register. So I don't know what went wrong. Does the IO port need any special PinMux configuration? What should I do now? 

The relevant code:

   /*init*/
    CT_UART.DIVISOR_REGISTER_LSB_ = 104;
    CT_UART.DIVISOR_REGISTER_MSB_ = 0;
    CT_UART.MODE_DEFINITION_REGISTER = 0x0;
    CT_UART.INTERRUPT_ENABLE_REGISTER = 0x7;
    CT_UART.INTERRUPT_IDENTIFICATION_REGISTER_FIFO_CONTROL_REGISTER = (0x8) | (0x4) | (0x2) | (0x1);
    CT_UART.LINE_CONTROL_REGISTER = 3;
    CT_UART.MODEM_CONTROL_REGISTER = 0; //disable loopback
    CT_UART.POWERMANAGEMENT_AND_EMULATION_REGISTER = 0x6001;
    /*send*/
    /* Priming the 'hostbuffer' with a message */
    hostBuffer.data[0] = 'H';
    hostBuffer.data[1] = 'e';
    hostBuffer.data[2] = 'l';
    hostBuffer.data[3] = 'l';
    hostBuffer.data[4] = 'o';
    hostBuffer.data[5] = '!';
    hostBuffer.data[6] = '\0';
    /* Let's send/receive some dummy data */
    for (cnt = 0; cnt < MAX_CHARS; cnt++) {
        /* Load character, ensure it is not string termination */
        if ((tx = hostBuffer.data[cnt]) == '\0')
            break;
        CT_UART.RBR_THR_REGISTERS = tx;
        /* Wait for TX FIFO to be empty */
        while (!((CT_UART.INTERRUPT_IDENTIFICATION_REGISTER_FIFO_CONTROL_REGISTER & 0x2) == 0x2))
            ;
    }
    /*Read Data*/
    for (cnt = 0; cnt < MAX_CHARS; MAX_CHARS) {
        if ((CT_UART.LINE_STATUS_REGISTER & 0x1) != 0) {
            buffer[cnt] = CT_UART.RBR_THR_REGISTERS;
        }
    }
    /*Uart end*/

Best Regards
Echo

TMS320C5517: FFT Hardware Accelerator Details

$
0
0

Part Number:TMS320C5517

HI,

I am using TMS320C5515 DSP. in my application planning to use FFT hardware accelerator as my application require time critical FFT computation. I am new to this platform.

Please give me details how to use FFT hardware accelerator block. Can you share some example project for this.

Thanks.

Janardan

Linux/TDA2SX: Enabling early uart debug in spl

$
0
0

Part Number:TDA2SX

Tool/software: Linux

Hello all,

                        We are working on a custom board based on tda2sx.We are trying to enable early debug prints in U-boot SPL.But after enabling debug,the uboot is not compiling.I get the following error.

/home/niraj/workdir/projects/its_git/its/Source/ti_components/os_tools/linux/u-boot/u-boot/drivers/serial/ns16550.c:290: undefined reference to `serial_in_shift'
/home/niraj/workdir/projects/its_git/its/Source/ti_components/os_tools/linux/u-boot/u-boot/drivers/serial/ns16550.c:292: undefined reference to `serial_out_shift'
/home/niraj/workdir/projects/its_git/its/Source/ti_components/os_tools/linux/u-boot/u-boot/drivers/serial/ns16550.c:290: undefined reference to `serial_in_shift'
/home/niraj/workdir/projects/its_git/its/Source/ti_components/os_tools/linux/u-boot/u-boot/drivers/serial/ns16550.c:292: undefined reference to `serial_out_shift'
make[4]: *** [spl/u-boot-spl] Error 1
make[3]: *** [spl/u-boot-spl] Error 2
make[3]: Leaving directory `/home/niraj/workdir/projects/its_git/its/Source/ti_components/os_tools/linux/u-boot/u-boot'
make[2]: *** [uboot_build] Error 2
make[2]: Leaving directory `/home/niraj/workdir/projects/its_git/its/Source/vision_sdk/build/hlos/makerules/linux'
make[1]: *** [custom_uboot] Error 2
make[1]: Leaving directory `/home/niraj/workdir/projects/its_git/its/Source/vision_sdk/build/hlos/makerules/linux'
make: *** [custom_uboot] Error 2

This is the uboot menu configuration :

                               [*] Require a serial port for console                                                               
                               [*] Provide a serial driver                                                                       
                                [*] Provide a serial driver in SPL                                                                   
                                [*] Enable Driver Model for serial drivers                                                        
                                [*] Enable an early debug UART for debugging                                                        
                                      Select which UART will provide the debug UART (ns16550)  --->                                
                                 (0x4806a000) Base address of UART                                                                   
                                (48000000) UART input clock                                                                          
                                (2)   UART register shift                                                                             
                                 [ ]   Enable board-specific debug UART init                                                           
                                 [ ]   Show a message when the debug UART starts up                                                    
                                 [ ] Skip UART initialization                                                                      
                                 [ ] Altera JTAG UART support                                                                          
                                 [ ] Altera UART support                                                                              
                                 [ ] Freescale LPUART support                                                                          
                                 [*] NS16550 UART or compatible                                                                       
                                 [ ] Qualcomm on-chip UART

Regards,

Niraj

Linux/AM3358: Yocto build webkitgtk

$
0
0

Part Number:AM3358

Tool/software: Linux

Hi Experts,

I would like to build webkitgtk package into my AM335x yocto build.

BTW, I have used x11 yocto build to enable webkitgtk, but its still showing x11 dependency error.

I've tried when I used default latest Processor SDK yocto build which has weston GUI, got the following error thus I moved to x11 build, but its still getting errors.

I'd followed the following wiki page.

Steps:

git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
cd tisdk
./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.01.00.06-x11-config.txt
cd build
. conf/setenv
export PATH=/opt/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
MACHINE=am335x-evm bitbake arago-core-tisdk-image

titus@titus-Pc:~/workdir/AM335x/yocto_x11/tisdk/build$ MACHINE=am335x-evm bitbake webkitgtk
Loading cache: 100% |#############################################################################################################| Time: 0:00:00
Loaded 3260 entries from dependency cache.
WARNING: No recipes available for:
/home/titus/workdir/AM335x/yocto_x11/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
ERROR: Nothing PROVIDES 'webkitgtk'
ERROR: webkitgtk was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
titus@titus-Pc:~/workdir/AM335x/yocto_x11/tisdk/build$ 

Can you help to resolve the issue ?

RTOS/TMS320C6678: MessageQ_alloc() & MessageQ_free() does these bios APIs are protected from multiple core access?

$
0
0

Part Number:TMS320C6678

Tool/software: TI-RTOS

Hi,

One of our product has developed using bios_6_37_02_27 & ipc_3_21_00_07 and we want to do add certain features. we found that MessageQ_alloc() & MessageQ_free() are used accessed without any lock protection from multiple core. does these APIs are protected internally?

if not, i have tried to uses these following function to provide the lock and core is hang at while loop in HSEM_Unlock(). Now the issue is occasionally device core 0 is hung. we found that while receiving message in messageQ is getting into this stage. Can you please help me to resolve the issue?

void HSEM_Lock(Hsem *pThis)
{
	//volatile CSL_SemVal semVal; // not required for C6678

	while(1)
	{
		if(CSL_semIsFree (pThis->Sem_Number))
		{
			break;
		}
		else
		{
			Task_yield();// SYSBIOS function
		}

	}

	while(1)
	{

                if(!CSL_semAcquireDirect(pThis->Sem_Number))
                {
        	        LOG_TRACE0("CSL_semHwControl error");
                }

                if((!CSL_semIsFree (pThis->Sem_Number)) &&(CSL_semGetResourceOwner(pThis->Sem_Number)== Core_Num))
                {
        	         break;
                }
		else
		{
			Task_yield();// SYSBIOS function
		}
	}
}


void HSEM_Unlock(Hsem *pThis)
{
        while(1)
	{
	        if(CSL_semIsFree (pThis->Sem_Number))
		{
			break;
		}
		else
		{
			CSL_semReleaseSemaphore(pThis->Sem_Number);
		}
	}
}

Regards

Bala

Linux/AM5708: Pin_Muxmode configurations

$
0
0

Part Number:AM5708

Tool/software: Linux

Hi,

 I want to use the PRU_UARt0 of  AM5708,i find some Pins have different functions,and we can configure it by Pad Configurations Registers.However my questions are how can i cofigure it with Linux?Should i change it in Dts or do something else?Can you give some suggestions?

Linux/AM5708: pinmux mode

$
0
0

Part Number:AM5708

Tool/software: Linux

Hi,

 How can i change the Pinmux mode with Linux?By Dts or pinmux file?  (AM5708)

Best regards,

Echo

AM3352: EMIF usage as QSPI

$
0
0

Part Number:AM3352

Hi,

The question is the title, but here is some more information regarding the application.

"Looking for an AMxxxxx as a potential upgrade for our new design that uses an MPS432E401Y and TI-RTOS. One of the main requirements is having at least 2 regular SPI and 1 QSPI (that we can connect to an ADC), as well as a very fast interrupt response time and clock rate.  Enough so we can read out the ADC at 1MSPS (with QSPI this only needs 20MHz or so).  Based on our testing with the MSP432, a more flexible DMA would help a lot, but so would simply a higher clock rate.  The MSP432 interrupt response eats about 30% of our processing time at that high of a sample rate."

Thanks!
Lauren


AM5728: IPC linker error

$
0
0

Part Number:AM5728

RTOS Processor SDK 5.03

I can build and run these two examples:

ex02_messageq per SDK LINUX Software Developers Guide (SDG): 3.7.2  Build IPC Linux examples

GPIO_LedBlink_evmAM572x_c66xExampleProject per SDK RTOS  SDG: 1.4.5.1.5. Steps to run example and/or unit test projects on C66x/A15 Target

However I am having problem with the next step of combining above two examples per instructions in SDK RTOS SDG 10.2.4.1.5. Adding IPC to an Existing TI-RTOS Application on slave cores.

I am getting the following linker error:

#10099-D  program will not fit into available memory.  run placement with alignment fails for section ".fardata" size 0x4001801 .  Available memory ranges: linker.cmd /GPIO_LedBlink_evmAM572x_c66xExample_w_ipc/Debug/configPkg    line 240 C/C++ Problem

Are there known corrections to be made in the 10.2.4.1.5 sections for successful build?

I have tried to build the "zipped" version referenced in the SDG - GPIO_LedBlink_evmAM572x_c66xExampleProject_with_ipc.zip.

This didn't get past the XDCtools build stage.

Dm388 how to a8 get afValue from CameraLink_getAfData

$
0
0

I'm using DM388 ipnc3.5,We are developing autofocus,we want get afValue  from CameraLink_getAfData,Please guide. Thank you

PROCESSOR-SDK-AM335X: application image

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Hi,

If I copy my application image to SD card which came with skAM335x board without changing any file will it work?

Regards

Gaurav

AM4378: How many CPU core are in this AM4378 processor?

$
0
0

Part Number:AM4378

Hi ,

      How many CPU core are available in this AM4378 processor?

Thanks,

GM

Linux/TDA2SX: Driver support for MLC type of mmc cards

$
0
0

Part Number:TDA2SX

Tool/software: Linux

Hi All,

I am working on TDA2xx.

In my project,i am planning  to use MLC type of mmc card.

If i am going with MLC type of mmc cards,any driver changes required or mmc core driver will support the MLC type of sd cards also ?

Thanks and Regards,

Sankar.

TDA2EXEVM: TIDL Convolution Layer problem

$
0
0

Part Number:TDA2EXEVM

Hi

in TIDeepLearningLibrary_UserGuide.pdf version 0305, there are some TIDL Limitation:

Convolution Layer
– We have tested the kernel size up to 7x7 (Shall work for higher values also, but not validated)
– Dilation is tested with 1,2,4.
– We support only stride 1 and 2. Any value higher than 2 is not supported.
– Dense convolution flow is supported for only 1x1 and 3x3 kernels with stride = 1 and dilation =1
– Maximum number of input and output channel supported in 1024

My question:

(1) currently we use the first convolution layer of the standard Alex net, can kernel 11 stride4, TIDL latest version be supported?

(2) currently support kernels with Dense convolution flows of 5x5 or 7x7?

(3) my input of the image is the normalized floating point . Is it supported?

(4) the network designed by us has gone through initial l1reg and sparse. After using tidl_model_import.out.exe, it only displays the statistics of Macs at each layer, but there is no sparse statistical result. Why?

Linux/AM5728: Missing remoteproc state file

$
0
0

Part Number:AM5728

Tool/software: Linux

I am using remoteproc to load DSP1 firmware from ARM.
I am able to load the DSP firmware however, I am not able to see the state file which is usually present here /sys/kernel/debug/remoteproc/remoteproc2/state

I need the state file to periodically check if the DSP1 is in running state.

How do I get the state file ?


AM5708: Schematic review request

$
0
0

Part Number:AM5708

Hi Champs,

My 1'st prototype board design using AM5708 is complete now.
So, I'd like to ask you to check the schematics because this is my 1'st time to use AM5708.
Can I do that?

Best regards,
J-breeze

TMS320C6678: H264 video encoder

$
0
0

Part Number:TMS320C6678

hi,

i use H264 High Profile Encoder Version01.00.03.00  to encode video in HP profile  in multiple core (4 core) and it is work fine.

but when i want to encode my video by BP profile and change the profile from HP(100) to BP(66)   the program fail in all core  " Failed in Control call (XDM_GETBUFINFO) " ?!

in datasheet there is a benchmark table  that use BP and that is faster than HP.

Linux/AM3359: MAX24288 support

$
0
0

Part Number:AM3359

Tool/software: Linux

Hello all,

                    We are working on a custom board based on am335x icev2.We want to interface SoC with MAX24288.Is there any driver support for MAX24288 in the SDK? .Any leads would be appreciated.TIA.

Regards,

Murugan S

Linux: How can i execute single camera usecase?

$
0
0

Tool/software: Linux

Hi,

I'm trying to execute single camera usecase of Linux (not BIOS).

I chose '1CH VIP capture + SGX Copy + DISPLAY' usecase to run.

I'm using 'processor_sdk_vision_03_06_00_00' and SoC is TDA2x.

When i execute the usecase, this error log was showed.

[HOST] [IPU2 ] 41.061123 s: VIDEO_SENSOR: INST0 : I2C1 : I2C Addr = 0x30
[HOST] [IPU2 ] 41.061947 s: src/bsp_deviceI2c.c @ Line 765:
[HOST] [IPU2 ] 41.062069 s: I2C1: DEV 0x30: RD 0x300a ... ERROR !!!
[HOST] [IPU2 ] 41.062160 s: src/bsp_deviceI2c.c @ Line 836:
[HOST] [IPU2 ] 41.062252 s: I2C1: Error timeout 0 ms!!!

[HOST] [IPU2  ]     41.062709 s:  Assertion @ Line: 510 in /home/yoo/TDA2xBSP/vision_sdk/apps/src/rtos/video_sensor/src/vid_sensor.c: status == SYSTEM_LINK_STATUS_SOK : failed !!!

And the below is my board setting. I refered VisionSDK_UserGuide_TDA2xx.pdf Section 2.3.2.

SW3 (VIDEO CONFIG) : 00100101

SW5 : 0001100000

SW2 : 11100000 10000001

Using daughter board and connect camera sensor with Cam1 port.

Should i use OMNIVISION CAMERA port when i want to execute this usecase?

Thanks in advance.

Regards,

Yoo.

AM3505: Clocking during power on

$
0
0

Part Number:AM3505

I have a question regarding the TI AM3505 / AM3517 ( Sitara ) for sustaining a current design.

 

A bit of background info : the 26 MHz sys_clk is generated by an external oscillator, which is enabled when sys_clkreq asserts from the Sitara.

We also use the power management chip TPS65910. We are in bypass mode as sysboot[6] pulled high.

 

Schematics are attached.

 

Question:  the 26MHz oscillator has changed startup time specs from 2ms to 8ms ( Abracon AP3S2-26MHz ). Another second-source oscillator has a 10ms out enable delay ( pericom )… is either case a problem ? I think the Sitara comes out of reset after 14ns from 1.8V rail from Vfbio. Does the Sitara use the 26MHz before then ? I think the sys_clkreq is always high, once it gets power ( need to scope this )

Best regards

Egon

Viewing all 17527 articles
Browse latest View live


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