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

CCS/AM3358: CPSW switch mode configuration

$
0
0

Part Number: AM3358

Tool/software: Code Composer Studio

Hi, there.

The Starter kit’s Ethernet ports are configured in dual-mac mode.

How can I set the switch mode on TMDSSK3358?

Thank you in advance.


TDA2EVM5777: Changing size of a Section in the Memory map

$
0
0

Part Number: TDA2EVM5777

Hello,

I am currently working on TDA2x Linux platform. I needed to change the size of DSP core's DATA section for my algorithm to allocate the sufficient memory. But while executing the usecase I am facing the following issue,

============================================================================================

HOST] [IPU1-0] 62.640852 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 63.640852 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 64.640883 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 65.640913 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 66.640944 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [EVE1 ] 66.648356 s: SYSTEM: Attaching to [IPU1-0] ...
[HOST] [EVE2 ] 66.648356 s: SYSTEM: Attaching to [IPU1-0] ...
[HOST] [EVE3 ] 66.648356 s: SYSTEM: Attaching to [IPU1-0] ...
[HOST] [EVE4 ] 66.648356 s: SYSTEM: Attaching to [IPU1-0] ...

[HOST] [IPU1-0] 67.640974 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 68.641005 s: SYSTEM: Attaching to [DSP1] ...
[HOST] [IPU1-0] 69.641035 s: SYSTEM: Attaching to [DSP1] ...

===========================================================================================

I have made changes in following files so as to change the size of DATA Section of DSP1,

A) In mem_segment_definition_linux.xs

/* Address and Size definitions of different components running on different cores */
NDK_START_ADDR = DDR3_BASE_ADDR_0 + DDR3_LINUX_MEM_OFFSET;
NDK_MEM_SIZE = 2*MB
SR1_FRAME_BUFFER_SIZE = 268*MB;//300*MB;
SR1_BUFF_ECC_ASIL_SIZE = 4*KB;
SR1_BUFF_ECC_QM_SIZE = 4*KB;
SR1_BUFF_NON_ECC_ASIL_SIZE = 4*KB;

DSP1_START_ADDR = 0xA1000000;
DSP1_CODE_SIZE = 2*MB;
DSP1_DATA_SIZE = 56*MB;//24*MB;

DSP2_START_ADDR = 0xA5000000;//0xA3000000;
DSP2_CODE_SIZE = 2*MB;
DSP2_DATA_SIZE = 14*MB;

EVE_START_ADDR = 0xA7000000;//0xA5000000;

if (A15TargetOS == "Qnx") {
/* Shared Region handled by A15 HLOS Qnx*/
SR2_BASE_ADDR = 0xBC300000;//0xBA300000;
SR2_SIZE = 90*MB;
}
else {
/* Shared Region handled by A15 HLOS Linux*/
SR2_BASE_ADDR = 0xAB000000;//0xA9000000;
SR2_SIZE = 0x2000000;
}

B) In dra7-evm-infoadas.dts

/* Update the CMA regions for Vision SDK binaries */

&dsp1_cma_pool {
/*reg = <0x0 0xa1000000 0x0 0x2000000>;*/
reg = <0x0 0xa1000000 0x0 0x4000000>;
};

&dsp2_cma_pool {
/*reg = <0x0 0xa3000000 0x0 0x2000000>;*/
reg = <0x0 0xa5000000 0x0 0x2000000>;
};

cmem_pool: cmem@AB000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xAB000000 0x0 0x2000000>;
/*reg = <0x0 0xA9000000 0x0 0x2000000>;*/
no-map;
status = "okay";
};

vsdk_eve_mem: vsdk_eve_mem@A7000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xA7000000 0x0 0x4000000>;

/*reg = <0x0 0xA5000000 0x0 0x4000000>;*/

status = "okay";
};

&ipu1 {
timers= <&timer9> , <&timer11>;
/delete-property/ watchdog-timers;
};

&ipu2 {
/delete-property/ watchdog-timers;
};

&dsp1 {
timers= <&timer9> , <&timer11>;
/delete-property/ watchdog-timers;
};

&dsp2 {
timers= <&timer9> , <&timer11>;
/delete-property/ watchdog-timers;
};

C) In system_vring_config.h

#ifdef BUILD_DSP_1
#define DSP_PHYS_MEM_IPC_VRING 0xa1000000
#endif

#ifdef BUILD_DSP_2
// #define DSP_PHYS_MEM_IPC_VRING 0xa3000000
#define DSP_PHYS_MEM_IPC_VRING 0xa5000000
#endif

What is supposed to be going wrong or any change is missing? Please provide your inputs.

Thanks & Regards,

Shantanu Joshi

AM5728: No debug output on UART

$
0
0

Part Number: AM5728

Hi,

I am using the customized board based on AM5728 processor.In the board there is only ONE DDR3L memory.

I am using the SD card as a boot option.So pins are also checked sysboot for the correct voltage level.Its seems fine.

PMIC voltage and clock checked and are ok...

In the created SD card(using prebuilt-images) i have put MLO ,U-boot.img,uENV.txt file and also selected rootfs tarballs i.e. tisdk-rootfs-image-am57xx-evm.tar.xz

But when powering ON the am5728 i am not getting any console output from UART3???

!!!!at least some console output has to come,during rom code or mlo execution !!!!  :(  :(

What can be the possible cause of this??? The rs232 chip connected to UART3 of am5728 checked standalone and found ok.Getting -5.5 volt at TX line.

Please guide.

CCS/PROCESSOR-SDK-AM335X: Debug error

$
0
0

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Code Composer Studio

Hi.,

I am trying to do gpio interrupt but i got error (CortxA8: SemiHosting : Read Failure : Memory at 0x00000000length 4) like this while debug time. How to fix this error please any one help me.

I am using TMDXEVM3358-SK-LCD Carriers board.

Thank you in advance 

Regards 

chandana 

TMS320C6746: MPU test

$
0
0

Part Number: TMS320C6746

Hi,

The customer used mpu_test demo attached in this link:https://e2e.ti.com/support/processors/f/791/t/158135  to test mpu in his custom board. The result indicates that DDR memory protection failed and on-chip ram is successful.

Below is his log file.

I have also test in TMS320C6738LCDK and it worked.

I am wondering if it is related to hardware design? How to locate the problem?

CCS/PROCESSOR-SDK-TDAX: [TDA4] Debugging strategies/guides for Linux+RTOS

$
0
0

Part Number: PROCESSOR-SDK-TDAX

Tool/software: Code Composer Studio

Hello,

What are the preferred debugging strategies for TDA4 and more specifically vision apps demo applications?
In the documentation, psdk_rtos_auto/docs/user_guide/CCS_SETUP_INSTRUCTIONS.html there is a step:
Step 4: Load RTOS/baremetal application binaries thru CCS
which explains how to load RTOS application binaries. How can Linux + RTOS be debugged using CCS?

The Linux running on the board has gdbserver installed, so it can be used for remote debugging. But will this method be suitable for debugging applications that run on multiple cores?
If there are any other methods, please suggest.

Thanks,
Todor

AM5718: am5718

$
0
0

Part Number: AM5718

Hi,

I want to use "MCASP_DeviceLoopback_idkAM571x_c66ExampleProject" in processor sdk for interfacing the AIC3104 evaluation board with IDKAM5718 board.

Can I do that or not?

If yes how to connect these two hardwares.

TLV320AIC3104 board i2c pins shall be connected to McASP3 of AM5718. But how to do that?

What are the program changes I need to make to send and receive audio data to TLV320AIC3104 board.

AM3359: Wake up from standby using a GPIO pin

$
0
0

Part Number: AM3359

Hi,

Can I use a GPIO1_xx pin to wake up the processor from standby mode or is this functionality limited to the GPIO0_xx port?

I'm confused because looking at the register description (Section 25.4.1 in the TRM) I have the impression that there are "GPIO_IRQWAKEN_0" for all GPIOs but in the "Low Power Design Guide" (SPRAC74A–February 2017 / Section 2.2.3) only GPIO0 is listed as possible wake up source.

Thank you for your help!

Reto


TMDSIDK437X: TwinCAT not working with cia402 example application.

$
0
0

Part Number: TMDSIDK437X

Versions of installed software on my PC:

CCS: 8.3.0.00009

TwinCAT: 3.1.4022

Microsoft Visual Studio: 2013 4.7.03056

and versions of other CCS components:

Hardware that I am using: 

Motor: Anaheim Automation BLY171D-24V-4000

Encoder: ROC 413 2048 (3,6 - 14V) Heidenhein

Board: TI IDK AM437x rev 1.4A

Hello, I have a problem with motor control through EtherCat(TwinCat) in example project cia402. I downloaded SSC from Beckhoff and patched it with Option#1 so i can use it with cia402 example. I moved "ESI" files into Twincat folders.

Then I was following instructions described in this PDF http://www.ti.com/lit/ug/tidu800b/tidu800b.pdfAs I do not have encoder ROQ 437 Heidenhein I used encoder ROC 413 Heidenhein. I recalculated "Scaling Factor Numerator" and "Output Scaling Factor (Velocity)", becouse mine Encoder has Encoder resolution of 13. With that I changed Code in CCS :

 

#define TWINCAT_SINGLE_TURN_RES pow(2, [20 I changed this to 13 as described in the PDF])

#define TWINCAT_VELOCITY_RES pow(2, [20 I changed this to 13 as described in the PDF])

If i am lucky that TwinCat does not show error messages like (17245 (0x435d)- which I do not understand really)


and I can press F5(motor start), but after pressing it (when Controller, Feed FW, Feed BW Override 100 and Target Position as well as speed is set) nothing happens motor does not turn. Motor does some funny noises but its very rare its normally quiet. When I press motor stop it slightly moves to one side really fast(some 1° - 5°) its choppy motion. In the most cases the hardware motor fault of the board turns on after DRV8313 notices something wrong. Thats the only place where we modified the main CCS code, we are reading if the motor fault had happend and if the User Switch is pressed and then we send impulse to reset DRV8313 so we do not need to restart the whole program while testing. We did not find any reseting of this motor fault  in the program so we created ours.

I was thinking that maybe the endat connection with encoder was to blame becouse the TwinCat enviroment does not show current position when  we move with the axis by hand, but then I figured out that if the connection was wrong the cia402 application or motor contorol application would not run and error message would have appear that endat is not connected.

So we think that our PC is not corectly connected to the board through TwinCat or the settings and parameters are set wrong in the TwinCat enviroment.

We do not really understand why the real position does not show in TwinCat when program is running.

So final most important question is: Why is not the motor turning? When we went by the "book". PDF/website

Thank you in advance.

 

Marek S.

(Marek in English can be Marco, Mark.)

 

I am really sorry if my english is terrible or it does not make sense. I am midlle school student working in "unnamed" company. I am working like summer job, brigade, And my job was to find out the most i could about the board and the proccesor becouse this company wants to make change from single core processors in their devices to multicore processors. So the employees do not now either, its new for them too.

 

AM3352: I2C issue

$
0
0

Part Number: AM3352

When the system starts up, it will have the following information:

(Please visit the site to view this file)

This phenomenon is probabilistic. I keep restarting the board, more than 500 times appeared.

Because PMIC is on this I2C bus, the system can not start.

The SDK version we used is: 05.03.00.07

Do you have any suggestions for reference?

PROCESSOR-SDK-AM65X: OSPI boot not working

$
0
0

Part Number: PROCESSOR-SDK-AM65X

Hello TI team,

As described in the subject, we found that OSPI boot won't work on EVM with latest SDK 6.0.0.7. Please confirm. Thanks.

66AK2H14: How to route event as exception for DDR protection by MPAX ?

$
0
0

Part Number: 66AK2H14

Hi everyone,

I am doing a test in which DSP core 0 and DSP core 1 have each a specific DDR area. DSP core 1 can't access DDR area of DSP core0. I am trying to handle exceptions with errors when occurs. I already done this with MPPA (it works) but with MPAX, I can't handle the exception.

However, when DSP core 1 trying to access DDR area of DSP core 0 , it can't and the error is reported through XMPFAR and XMPFSR of DSP core1.

This is my configuration:

/* Exception */
Exception.enableExternalMPC = true;
Exception.enablePrint = false;
Exception.useInternalBuffer = true; 
Exception.exceptionHook = "&myExcep_handler";
Exception.externalHook = "&myExcep_handler_extn";
Exception.internalHook = "&myExcep_handler_intn";
Exception.nmiHook = "&myExcep_handler_nmi";
Exception.returnHook = null;

/* Hw Interupt */
Hwi.enableException = true;




for (i=119; i<128; i++) { Exception_evtExpMaskEnable(i); }

Does anyone can help me ?

Best Regards,

François

TMS320C6657: what is the Event ID for uPP on c6657? 156 is the wrong Event ID.

$
0
0

Part Number: TMS320C6657

what is the Event ID for uPP when creating a HWI in sys BIOS? 156 is the wrong Event ID number.

problem while building chromium

$
0
0

hi,

I am getting error while building chromium as given below

WARNING: No recipes available for:
  /home/ashok/am65xx_yocto/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_2.0.0.bbappend
  /home/ashok/am65xx_yocto/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/move-base_1.12.14.bbappend
  /home/ashok/am65xx_yocto/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/rotate-recovery_1.12.14.bbappend
ERROR: Nothing PROVIDES 'chromium'
chromium was skipped: X11 is not available

CCS/AM3358: UART_read vs UART_read2 and UART_write vs UART_write2

$
0
0

Part Number: AM3358

Tool/software: Code Composer Studio

pros and cons. how to use them? Thanks


CCS/AM3358: where can I find scc.c for AM3358?

$
0
0

Part Number: AM3358

Tool/software: Code Composer Studio

SCC channels configuration locate there.

AM5728: Increasing MaxPayload size on PCIe bridge

$
0
0

Part Number: AM5728

Hello,

I'm using AM572x with Linux together with FPGA.

The PCIe RC reports Maximum Payload size for TLP 256 bytes, but is actually configured for 128B.  The FPGA reports 512B MaxPayload capability. This results in comunication using 128B TLP's.

How do I increase MaxPayload size on RC so the communication with FPGA is using 256B TLP's? Is there any device tree parametr I could use or any other way? Is it even possible or am I stuck with 128B TLP's?

Thank  you. 

TDA2EVM5777: How to give @60fps to Display over HDMI

$
0
0

Part Number: TDA2EVM5777

Hi

i am running simple use case

capture(@60fps) -> alg_plugin( EVE1)(@15fps)  -> display

Above  usecase is running fine and i am able to display camera output over HDMI.

I need to give @60fps to display over HDMI, but my alg_plugin link output is @15fps.

How to send @60fps to display over HDMI, is display link will take care of this? if not how to achieve @60fps?

Let me know what changes are required to achieve.

Regards,

Siva Naga

TDA2EVM5777: How to give @60fps to Display over HDMI

$
0
0

Part Number: TDA2EVM5777

Hi

i am running simple use case

capture(@60fps) -> alg_plugin( EVE1)(@15fps)  -> display

Above  usecase is running fine and i am able to display camera output over HDMI.

I need to give @60fps to display over HDMI, but my alg_plugin link output is @15fps.

How to send @60fps to display over HDMI, is display link will take care of this? if not how to achieve @60fps?

Let me know what changes are required to achieve.

Regards,

Siva Naga

Get DSP SYSBIOS Clock Running on AM5728

$
0
0

Hi forum,

I am getting super frustrated by not being able to run the OS Clock module run properly on the DSP1 of a AM5728.

I am trying to use GPTimer14 (Id:13) that is configured in the Linux Device Tree as belonging to DSP1.

Therefore I made a simple project that replicates the problem which contains the .cfg, a makefile and one .c file.

Basically, I launch a task that should sleep for 1000ms and print something every time sleep expires.

Additionally, I defined the Clock as USER type and I am calling Clock_tick() myself from a custom function but this is never called because the Clock tick is stuck at zero.

static int n = 0;
Void myTimerTick(UArg arg)
{
	Clock_tick();
	n++;
	if(n%1000 == 0)
	{
    	Log_print1(Diags_INFO, "Clock_tick() %d\n", n);
	}
}

/*
 *  ======== main ========
 */
Int main(Int argc, Char* argv[])
{
    Error_Block     eb;
    Task_Params     taskParams;

    Log_print0(Diags_ENTRY, "--> main:");

    /* must initialize the error block before using it */
    Error_init(&eb);

    /* create main thread (interrupts not enabled in main on BIOS) */
    Task_Params_init(&taskParams);
    taskParams.instance->name = "task";
    taskParams.arg0 = (UArg)argc;
    taskParams.arg1 = (UArg)argv;
    taskParams.stackSize = 0x1000;
    Task_create(main_task, &taskParams, &eb);

    if (Error_check(&eb)) {
        System_abort("main: failed to create application startup thread");
    }

    /* start scheduler, this never returns */
    BIOS_start();

    /* should never get here */
    Log_print0(Diags_EXIT, "<-- main:");
    return (0);
}


/*
 *  ======== main_task ========
 */
Void main_task(UArg arg0, UArg arg1)
{
    Log_print0(Diags_ENTRY, "--> main_task:");

	while(1)
	{
		Task_sleep(1000);
    	Log_print0(Diags_INFO, "System_sleep() returned %d\n");
	}

    Log_print0(Diags_EXIT, "<-- main_task:");
}

I should add that I confirm that my GPTimer14 is properly working (base: 0x4882A000, TCLR=0x3, TCRR-increments when debugger stepping).

Please provide some RTOS or DRA7xx expert advice on this as I couldn't find any solution myself.

Best regards

(Please visit the site to view this file)

Viewing all 17527 articles
Browse latest View live


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