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

EtherCAT Slave compact motorcontrol solution

$
0
0

Hi. Our company is familiar with bare-metal programming of C2000 MCUs for motor-control applications without any RTOS. We have our CANopen stack with DS402 profile. Now we need to implement EtherCAT for new compact servo-drive. Also to make fast current control loop we want to use MCU with higher frequency (maybe 200MHz of F28377 in not enough). So the question about MCU (or SoC) - which one to use?

We discovered that some Sitara processors have PRU-ICSS block with EtherCAT stack, but it required external DDR memory and flash memory. Our current C2000 motor-control solution required only 200KB for code and 10KB of RAM, so installing external chips may be overkill for this task, also big PCB is unwanted.

We have noticed DDR-less EtherCAT possibilities using AMIC110 or AM437x but this option looks like some hack (patching bootloader and etc.). And it is not clear which amount of internal RAM is used for EtherCAT PRU-ICSS and which amount is free for our motor-control application. Also, there is no one TI example of DDR-less EtherCAT + motorcontrol application on one Sitara chip - we have decided that it is somehow impossible.

So, for our current perspective, we see only these solutions:

1. To use C2000 + external Beckhoff ASIC. But it is not so fast (because of 200MHz MCU) and there are 2 chips.

2. To use AM437x + DDR + FLASH. It is relatively big, expensive and complex PCB which must be located near power transistors (external buses might be interfered by PWM). And it is definitely overkill for our needs.

Is there any SoC with onboard EtherCAT, RAM, FLASH suitable for motor-control application?


66AK2G12: Micron memory modules mt41k512m8da-107, not defined in excel sheet?

$
0
0

Part Number:66AK2G12

I’ve found very useful tool for DDR3 configuration in application notes, more specifically K2 DDR3 Register Calc v1p60.xlsx Based on EVM schematic, there are used Micron memory modules mt41k512m8da-107, which are not defined in excel sheet.

Do you know if there is updated version of this configuration worksheet?

I’ve quickly check the forum but there is no such post about updated version 1.60 or newer?

Any help is much appreciated

Compiler: Can we configure DssM2mWb link to accept 2 inputs

$
0
0

Tool/software: TI C/C++ Compiler

Hello Everyone,

Below is my usecase:

NetworkRx (A15) -> Decode -> VPE -> Sync -> Dup -> Alg_1 (DSP1) -> DssM2mWb

Dup->Alg_4(DSP2)->DssM2mWb->Merge-> Display_Video

Dup -> Alg_3 (DSP2) -> Alg_2 (DSP1)

Can we configure DssM2mWb Link to accept 2 inputs? I tried to use merge before DssM2mWb, but it did not help? Can you provide any other alternative to this?

Also input to DssM2mWb is a composite frame buffer.

Thanks,

Neha

RTOS/BEAGLEBK: Sending Data Packets with NIMU in case of multiple network interfaces

$
0
0

Part Number:BEAGLEBK

Tool/software: TI-RTOS

Hi,

I have multiple network interfaces in my application and I map their initialization functions at the starting in main function as follows:

NIMUDeviceTable[nimu_device_index++].init =  &CpswEmacInit ;
NIMUDeviceTable[nimu_device_index++].init =  &WifiInit ;
NIMUDeviceTable[nimu_device_index].init = NULL;

I start the BIOS and both network interfaces are successfully registered and initialized. I configure the IP to one of the network interface. Now when I will call the send socket API like NDK_sendto(), how does the NDK know which interface to use to transfer data? I do not see passing any network interface parameter to ndk socket functions. Does it send the data to both the interfaces? If yes, I want to send the data using a particular interface. How do I do that?

Here are the details of tools that I am using:

EDMA3 Low Level Driver 2.12.5

NDK 3.40.1.01

SYS/BIOS 6.73.1.01

am335x PDK 1.0.13

xdctools_3_51_01_18

Base Eample: NIMU_BasicExmample_bbbAM335x_armExampleProject

Regards

Vishav

Linux/CLOCKTREETOOL: jGraphLib installation

$
0
0

Part Number:CLOCKTREETOOL

Tool/software: Linux

Hi,

I am trying to use the CLOCKTREETOOL on Linux.

$ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

The manual says to execute a command (see attached photo). This unfortunately doesn't work.

$ \ls
CTT-AM65x.jar  CTT-Sitara-v1.0.0.6.jar	Docs  jGraphLib  key.tmp  Scripts  XMLFiles

$ java -cp jGraphLib/lib/*:CTT-Sitara-v1.0.0.6.jar:org.ti.clockTreeTool.simulation.ClockTreeTool
Usage: java [options] <mainclass> [args...]
           (to execute a class)
   or  java [options] -jar <jarfile> [args...]
..........

Any help appreciated

Thanks

Linux/BEAGLEBK: To boot beagle from the sd card and use sd card as hard drive

$
0
0

Part Number:BEAGLEBK

Tool/software: Linux

Hi all,

  I am new to this beagle-bone black. I flashed OS following the steps provided in this website http://beagleboard.org/getting-started. But I am unable to download Open-CV and  tesseract OCR due to less space. I tried to increase the memory by using sd card but all in vain. How to increase my BBB memory so the I can download and use opencv and tesseract OCR?

or suggest me steps to create boot and rootfs in sd card

Thank you in advance

Regards, 

Thushar.B

TDA3: Compiling Object Classification Source Code - 200.V.OC.C66XSRC.00.02 for Host Emulation

$
0
0

Part Number:TDA3

Hi,

I followed all the instructions mentioned in ObjectClassification_DSP_UserGuide.pdf to build the Object Classification Code '200.V.OC.C66XSRC.00.02' for Host Emulation on PC but its not compiling!

There is a linker error, as shown in the figure below:


The common.a86 file is missing in the vlib_c66x_3_3_0_3 library!!

How can I compile the OC code for host emulation? Could someone help me solve this issue?

Thanks and Regards,
Ganesh

TMS320C6678: H264 Encoder configuration issues

$
0
0

Part Number:TMS320C6678

Hi

I'm trying to configure the H264 encoder on the C6678 for low bitrate operation.

using the latest version (1.0.3)

My video resolution is 320x240, very simple image, no motion.

configured for 50kbps

I've tried both CBR and VBR but the result is always the same -> outputting close to 250kbps regardless of my setting of rcalgo, targetbitrate, ratecontrol preset, initial QI , initial QP. 

1. is there a newer version of this encoder (1.0.3 is from 2015)?

2. Does this encoder support low bitrates (sub 64kbps)?

3. is there some other parameter that I might be missing?

Thanks


Linux/AM3358: Line level Audio out from TLV320AIC3104

$
0
0

Part Number:AM3358

Tool/software: Linux

Hi,

I am trying to get line level audio out from TLV320AIC3104 with AM3358. I am able to get headphone audio on HPROUT and HPLOUT pins. What do I need to add in my device tree to get audio on LEFT_LOP and RIGHT_LOP pins?

Following is my sound part of device tree.

sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "AM335x-EVM";
		simple-audio-card,widgets =
			"Headphone", "Headphone Jack",
			"Line", "Line Out",
			"Line", "Line In";
		simple-audio-card,routing =
			"Headphone Jack",	"HPLOUT",
			"Headphone Jack",	"HPROUT",
			"LINE1L",		"Line In",
			"LINE1R",		"Line In",
			"Line Out", 	"LLOUT",
			"Line Out", 	"RLOUT";
		simple-audio-card,format = "dsp_b";
		simple-audio-card,bitclock-master = <&sound_master>;
		simple-audio-card,frame-master = <&sound_master>;
		simple-audio-card,bitclock-inversion;

		simple-audio-card,cpu {
			sound-dai = <&mcasp0>;
		};

		sound_master: simple-audio-card,codec {
			sound-dai = <&tlv320aic3104>;
			system-clock-frequency = <12000000>;
		};
	};

I added audio routes for LLOUT and RLOUT, but I am not getting any audio on line out. 

I also have another question. Can I get mono line out from TLV320AIC3104 or do I need TLV320AIC3106?

Thank you

Linux/AM3352: eMMC initialization fails with replacement eMMC part

$
0
0

Part Number:AM3352

Tool/software: Linux

Hello,

We are using the AM3352 on a custom board running Linux 4.9 built from the sources in the TI processor SDK 04.02.00.  We were originally using a Micron eMMC p/n MTFC16GJDDQ-4M IT (JEDEC/MMC 4.41) which worked correctly with the eMMC driver supplied with the kernel.  Due to obsolesence, the eMMC was replaced with Micron p/n MTFC16GAKAENA-4M IT (JEDEC/MMC 5.0).  With the new eMMC, when the kernel boots and attempts to initialize the eMMC, the follwing is output and the boot process halts:

mmc0: error -110 whilst initialising MMC card

It appears that the calls to mmc_switch in mmc_select_bus_width as well as the call to mmc_switch to enable HPI in mmc_init_card (both located in mmc.c) are returning -110 (-ETIMEDOUT) which is causing mmc_init_card to return -110 and thus the mmc initialization fails.

The relevant device tree entries for the mmc are as follows:


mmc2: mmc@481d8000 {
    compatible = "ti,omap4-hsmmc";
    ti,hwmods = "mmc2";
    ti,needs-special-reset;
    dmas = <&edma 2 0
        &edma 3 0>;
    dma-names = "tx", "rx";
    interrupts = <28>;
    interrupt-parent = <&intc>;
    reg = <0x481d8000 0x1000>;
    status = "disabled";
    };

&mmc2 {
    vmmc-supply = <&vmmc_reg>;
    pinctrl-names = "default";
    pinctrl-0 = <&emmc_pins>;
    bus-width = <8>;
    ti,non-removable;
    non-removable;
    wp-gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
    ti,needs-special-hs-handling;
    status = "okay";
};


The complete kernel boot log is attached.

Any suggestions?  Thank you.

(Please visit the site to view this file)

RTOS/PROCESSOR-SDK-DRA7X: xdctool binaries version different than file versions

$
0
0

Part Number:PROCESSOR-SDK-DRA7X

Tool/software: TI-RTOS

I have a customer who is using: bios version 6.46.05.55 and xdctools version 3_32_01_22_core.

During program creation, the customer had binary output that have a different version of xdctools.

It contains verion xdctools_3_30_06_67_core.

Earlier today, the customer downloaded and installed BIOS from link http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sysbios/6_46_05_55/index_FDS.html

I believe they used the following command:

$ cd /bios_6_46_05_55

$ grep xdctools_3_30_06_67_core -rn | wc -l 1738

$ grep xdctools_3_32_01_22_core -nr | wc -l 0

They could not find any information about xdctools_3_32_01_22_core.

Ultimately, the question is they are trying to find out why they have different verson of xdctools_3_30_06_67_core in the built program.

The FAE noted that in all version of the XDC tool, he was seeing the Core-mem file.  So, he thinks this is possibly a build issue with *.cfg, but we decided to float to the e2e community.  

 

Linux/AM5728: Evaluating the performance by using Crypto Hardware Accelerators

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi Experts,

 

Customer is evaluating HTTP/HTTPS throughput by using libcurl now.

Compared with HTTP validation, in the case of the HTTPS evaluation, it seems performance is slow-down. Therefore, customer suppose that cryptographic processing is performed by only CPU. Customer would like to evaluate the throughput by using Crypto Hardware Accelerators

Could you share any advice/comments on this, please?

 

If you will be able to share any helpful URL information. It will be appreciated.

 

Best regards,

Miyazaki

Linux/AM5728: OpenCV Performance

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi Experts,

Our customer is evaluating sample code of “Example of OpenCL offload” with OpenCL/without OpenCL, during reading the following SDK manual.

Customer is using TMDSEVM572X.

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_OpenCV.html

In the case of “Lena.png” image-data, customer was able to confirm similar performance .

-----------------------

root@am57xx-evm:~# ./helloCross

★Lena+DSP

BGR2GRAY tdiff=11.866208 ms

GaussBlur tdiff=4.691958 ms

Canny     tdiff=4.576464 ms

 

root@am57xx-evm:~# export OPENCV_OPENCL_DEVICE='disabled'

root@am57xx-evm:~# ./helloCross

★Lena+CPU

BGR2GRAY tdiff=3.656422 ms

GaussBlur tdiff=2.128656 ms

Canny     tdiff=7.731872 ms

-----------------------

 

As the next step, after customer changed Image-data which is larger than Lena.png size, customer was evaluating it again. To be more specific, customer prepared two JPEG files ( Size: A4 paper, Color, 300dpi[2600pixelx 3600pixel]) and evaluated them. As the results of this performance, it indicates very high performance as follows. Since customer doubted data-cache was working, customer tried to evaluate them alternately. However, those results indicated same results.

Would you be able to expect those results? Customer is suspecting this evaluation is incorrect.

If you will be able to share your advice/comments on this, it would be appreciated. If you needs those JPEG files, I’ll request them.

-----------------------

root@am57xx-evm:~# ./helloCross

★JPG1+DSP

BGR2GRAY tdiff=9.018402 ms

GaussBlur tdiff=4.846816 ms

Canny     tdiff=4.393464 ms

★JPG2+DSP

BGR2GRAY tdiff=0.163806 ms

GaussBlur tdiff=0.285480 ms

Canny     tdiff=0.158762 ms

 

root@am57xx-evm:~# export OPENCV_OPENCL_DEVICE='disabled'

root@am57xx-evm:~# ./helloCross

★JPG1+CPU

BGR2GRAY tdiff=47.800088 ms

GaussBlur tdiff=76.846824 ms

Canny     tdiff=265.892167 ms

★JPG2+CPU

BGR2GRAY tdiff=44.925118 ms

GaussBlur tdiff=72.242543 ms

Canny     tdiff=253.617666 ms

-----------------------

 

Best regards,

Miyazaki

AM4376: Request a Design Review

$
0
0

Part Number:AM4376

Hello

I attach the Schematic File
Please Request a Design Review.

Regards.

(Please visit the site to view this file)

Linux/AM5728: I2C controller timed out

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi

    I wanna enable i2c2,and connect a sensor with I2C interface;but when linux booted up, I executed the command "i2cdetect -r -y 1" and kernel told me that omap_i2c 48072000.i2c:controller timed out.It make me confused,any available suggestions would be appreciated.

    SDK:am57xx-evm-linux-sdk-src-05.02.00.10

    Kernel:linux-4.14.79

    Note:

1. I enabled the I2C2 in uboot/linux ;

2.My HW design included pull-up resister in right place and the bus is at expected voltage.(3.3V)


Linux/EVMK2H: EVMK2H SoC UART Console doesn‘t have anything (made the usb boot disk,Select the spi startup mode)

CCS/TMS320C6748: Using LCDK with CCSv8

$
0
0

Part Number:TMS320C6748

Tool/software: Code Composer Studio

Hello everyone,

I am a beginner in using DSP board and I want to use TMS320C6748 DSP Development kit (LCDK) with Code Composer Studio version 8 in Windows 7. Please guide me with basic steps to be followed for using the DSP board.

Thank you very much in advance.

Sai Aditya.

TMS320C6748: TMS320C6748 Power off

Linux/AM5728: user application for storing data to emmc

$
0
0

Part Number:AM5728

Tool/software: Linux

hai,

i am working on am5728 . I am working with temperature sensors connected to it through i2c. My application is working and saves the log of data into a text file when working on SD card but i want to use emmc and use it for storing the application and also save log text file in it.

i have also made the emmc partitions but i want to know to write an user application for storing text file or any file that is to be stored on emmc.

can anyone help with issue.

Thanks & Regards,

venkat R.

TMS320C6455: Cheapish boards with C64x+?

$
0
0

Part Number:TMS320C6455

Does anyone know any cheapish boards that has a DSP with C64x+ core on it?

In a project, quite long ago, I kinda fell in love with C64x+ core assembly, and I'd like to play with those things again.

Most of the evaluation boards just tend to cost hundreds of euros being quite expensive as "toys".

Viewing all 17527 articles
Browse latest View live