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

Linux/TMDXIDK5718: How SPL can read EEPROM behind Mux on I2C bus 2

$
0
0

Part Number:TMDXIDK5718

Tool/software: Linux

Hi

I'm using Linux SDK 5.1, custom HW, strongly based on IDK574.

I have EEPROM (chip address 0x51) on I2C bus 2 behind an pca9546 (chip address 0x70) on channel 1 (In IDK, EPROM and PMIC are both on I2C bus 0.)

I can successfully read eeprom in U-boot as follows:

Setting bus 2: i2c dev 2

setting channel 1 on mux: i2c mw 70 0.1 1

Read 400h bytes: i2c md 51 0.2 400

Now I tried to do same in do_board_detect() of SPL. 

int save = i2c_get_bus_num(); // save the bus number because later in board_late_init() we have to talk to bus 0 again

gpi2c_init()

rc = i2c_set_bus_num(i2c_bus /* 2 */);

if (rc)    return rc;

// set mux to channel 1
uint8_t buffer = 1; // channel 1
rc = i2c_write(0x70, 0, 0, &buffer, 1); // here I always get return code 1
if (rc) return rc;

rc = i2c_probe(0x51);

if (rc) return rc;

rc = i2c_read(0x51, 0x0, 0x2, (uint8_t *)ep, sizeof (struct my_eeprom));
if (rc) return rc;

i2c_set_bus_num(save); // restore bus number

So How I can I use bus number 0 in SPL? Do I have to add the mux and EEPROM in devicetree?  I just enabled i2c2:

&i2c2 {

clock-frequency = <100000>;

u-boot,dm-spl;

status = "okay";

};

Or do I have to set CONFIG_SYS_OMAP24_I2C_SLAVE<n> or some other CONFIG_?

BR, Chris


RTOS/PROCESSOR-SDK-AM437X: which include statement should be deleted when migrating the non-BSD socket API to the the BSD socket API.

$
0
0

Part Number:PROCESSOR-SDK-AM437X

Tool/software: TI-RTOS

Hi,

By the SPRU524J, we can use the BSD socket API and non-BSD socket API. if we use the BSD socket API, we need to use the follow statement:

#include <sys/socket.h>

but I have a example code which seem to use the  non-BSD socket API, but the manual do not mention the include statement about the  non-BSD socket API.

so I do not know which statement should be deleted, when I migrate the non-BSD socket API to the the BSD socket API.

RTOS/TDA2: EDMA3 read qspi flash

$
0
0

Part Number:TDA2

Tool/software: TI-RTOS

on TDA2S ,run RTOS,  i want to use  edma read qspi flash , i remap flash to 0x5C000000, used Utils_dmaCopy1D function to read flash, but read some datas is error , all error data is 0,i use pc read(memcpy) is all right, what is wrong with this? 

Linux/DRA72XEVM: NullSrc + Decode + Display (Only 1920x1080 H264/MJPEG Video Input Bit-Stream Supported) usecase Evaluation

$
0
0

Part Number:DRA72XEVM

Tool/software: Linux

Hi TI,

I am trying to execute "null_src_decode_display" usecase on TDA2Ex setup.

I have followed the procedure to create .hdr file from .h264( playable video ) menioned below.

On Ubuntu 14.04 :

1. Generate index file( all info of video sample) with ffprobe command.

ffprobe -show_packets ./<video-file-name.h264 >index.idx

2. Extract just "Size" from above generated index file with sed command.

PAT=size

sed -n "/$PAT/p" index.idx | cut -d' ' -f3 >> size_extracted.txt

3. Now generate binary file from size extracted file, with below command.

cat size_extracted.txt | perl -n -e 'printf("%08x\n",$_)' | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\n0x\3\n0x\2\n0x\1/' | xxd -r -p > Size_test.bin && du -b Size_test.bin

So, we get the following files :

Size_test.bin file, index.idx and size_extracted.txt files

Renamed Size_test.bin as 1920x1080_00.hdr and copied the .h264 video as is in the home dir.

In HDMI display coming with green screen followed by assertion issue !!!

 ASSERT (nullSrcLink_tsk.c|NullSrcLink_fillData|202)


Kindly revert back if I did wrong !!!

Regards,

Rajesh Kannan S

TDA3XEVM: HDMI Data Lines

$
0
0

Part Number:TDA3XEVM

HI,

In our custom board,we are getting HDMI pclk,hsync and vsync signals but data signals are not toggling.I have created a application where I'm enabling color bar generation by writing the below given value and calling a function ChainsCommon_StartDisplayDevice.

HW_WR_REG32(SOC_VENC_BASE + DSS_VENC_F_CONTROL, 0x00000071);

Please help how to generate data signals.

Regards,

Anil

RTOS/PROCESSOR-SDK-AM57X: VLAN support for RAW ethernet sockets on SDK 05.01.00.11

$
0
0

Part Number:PROCESSOR-SDK-AM57X

Tool/software: TI-RTOS

Hello.

I'm using AM572x IDK Board with TI-RTOS SDK 05.01.00.11.

I want to send & receive GOOSE & SV packets over VLANs. I know, that NDK have no support of this packets by default, and I use RAW sockets for that. But as I see in NDK 3.40.01.01 docs (API reference, part A15) RAW sockets cannot use VLANs for that.

Tell me, please, how do I work with that package types (GOOSE & SV) over VLANs with TI-RTOS SDK?

With regards,
Alex

RTOS/AM5728: Random() in TI RTOS result in DATA ABORT

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Call Random() in TI RTOS result in data abort, Call Random() in the same way without RTOS is OK, Why?

#include <stdio.h>

#include <stdlib.h>

int main(void)
{
/* Call board init functions */
int temp;

temp = random();

[CortexA15_0] 0x00000000 R8 = 0x4037f064
R1 = 0x600001df R9 = 0xffffffff
R2 = 0x80023d49 R10 = 0x00000000
R3 = 0x0000330e R11 = 0x8104ab34
R4 = 0x80025244 R12 = 0x600001df
R5 = 0x8002092c SP(R13) = 0x8104ab18
R6 = 0x00000000 LR(R14) = 0x8001f380
R7 = 0x8104ab48 PC(R15) = 0x80021118
PSR = 0x600001df
DFSR = 0x00000a05 IFSR = 0x00000000
DFAR = 0x00000000 IFAR = 0x00000000
ti.sysbios.family.arm.exc.Exception: line 205: E_dataAbort: pc = 0x80021118, lr = 0x8001f380.
xdc.runtime.Error.raise: terminating execution
0x00000000 R8 = 0x00000000
R1 = 0x600001df R9 = 0xffffffff
R2 = 0x80023d49 R10 = 0x00000000
R3 = 0x0000330e R11 = 0x8104ab34
R4 = 0x80025244 R12 = 0x600001df
R5 = 0x8002092c SP(R13) = 0x8104ab18
R6 = 0x00000000 LR(R14) = 0x8001f380
R7 = 0x8104ab48 PC(R15) = 0x80021118
PSR = 0x600001df
DFSR = 0x00000a05 IFSR = 0x00000000
DFAR = 0x00000000 IFAR = 0x00000000
ti.sysbios.family.arm.exc.Exception: line 205: E_dataAbort: pc = 0x80021118, lr = 0x8001f380.
xdc.runtime.Error.raise: terminating execution

Linux/PROCESSOR-SDK-AM335X: Conversion pinmux tool output to mux.c for u-boot

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Tool/software: Linux

Hello all,

We use pinmux tool with the version 4.0.1522 and we are trying to add "am335x_pinmux.h" and "am335x_pinmux_data.c" files into u-boot source. Our psdk version is 05_01_00_11. It seems there is a conflict between generated output files,from pinmux, and mux.c files. I mean, for example, the below code is from "am335x_pinmux_data.c" file

static pinmuxPerCfg_t gUart0PinCfg[] =
{
    {
       /* Debug -> uart0_rxd -> E15 */
       PIN_UART0_RXD, 0, \
       ( \
           PIN_MODE(0) | \
           ((PIN_PULL_UD_EN | PIN_RX_ACTIVE) & (~PIN_PULL_TYPE_SEL)) \
       ) \
    },
    {
       /* Debug -> uart0_txd -> E16 */
       PIN_UART0_TXD, 0, \
       ( \
           PIN_MODE(0) | \
           ((PIN_PULL_UD_EN) & (~PIN_PULL_TYPE_SEL & ~PIN_RX_ACTIVE)) \
       ) \
    },
    {PINMUX_INVALID_PIN}
};

and the below code snippet is taken from mux.c 

static struct module_pin_mux uart0_pin_mux[] = {
	{OFFSET(uart0_rxd), (MODE(0) | PULLUP_EN | RXACTIVE)},	/* UART0_RXD */
	{OFFSET(uart0_txd), (MODE(0) | PULLUDEN)},		/* UART0_TXD */
	{-1},
};

Do we need to do any conversion? or are there any way to use generated files directly?


Compiler/TMS320C6748: TMS320C6748

$
0
0

Part Number:TMS320C6748

Tool/software: TI C/C++ Compiler

Hi Freinds,

I am testing the example code  UART_ECHO  from starterWare of TMS320C6748.In that UART2 is used for checking.

When I loaded the code and debugging its not going to UART_ISR.

Can anyone suggest me how to check this or any hardware change is required to check it?

I am using the TMS320c6748 development Kit (LCDK).

Regards,

Ashrumochan

Linux/AM3359: AM3359 RESET

$
0
0

Part Number:AM3359

Tool/software: Linux

Hello Sir,
With reference to AM3359 Sitara processor,
1.Our customer requires to RESET the Processor by applying External Reset
signal.In which pin of processor we should connect this External Reset
signal?
2.Currently in our board we are receiving this External Reset signal in a
GPIO pin of processor and when this pin goes low we are calling  reboot
command of the processor, is this correct or we have to do something else?

Kindly help us in this issue at the earliest.
Thanks & Regards
vamsi

RTOS/TDA2: Core clock initialization

$
0
0

Part Number:TDA2

Tool/software: TI-RTOS

Hi,

In VSDK3.3 example program "apps", I can not find clock initialization. In BIOS configuration script BIOS.cpuFreq is set to 750MHz, and in the C files I can only find program reads this configuration(by call BIOS_getCpuFreq), but program setting PRCM registers can not be found.  So how is each core clock initialized?

Thanks&regards.

TMS320DM8168: how to enter SATA test mode

$
0
0

Part Number:TMS320DM8168

Hi, 

Since the second post in this link is blocked by NDA, can you help to provide the non-NDA version to let customer to look for SATA testing procedure? 

There are also other question from RD: 

Do we have the test procedure like below capture? 

Will it be able to setup test mode through hardware? 

Do we need to setup SATA0 or SATA1 for the testing? if it's needed, where can we set it up? 

Current testing waveform is like below: 

It seems that the test mode didn't enable: 

Please let us know if there are further comments. 

Thanks for your help. 

TMS320C5517: Noise cancellation according to P.1100

$
0
0

Part Number:TMS320C5517

Hello All,

My customers are interested in noise cancellation according to P.1100. There are 3 important features which must be met at design: 

- Echo cancellation

- Double talking

- Automatic volume control

At our Audio Preprocessing System Reference Designs (www.ti.com/.../TIDA-01589, 

http://www.ti.com/tool/TIDEP-0077)

I cannot find any words about  P.1100 compliance. Do we have right solution for automotive? 

Best regards,

Dmitry

Linux/PROCESSOR-SDK-AM335X: touchscreen problem in Matrix

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Tool/software: Linux

I'm using the latest processor-sdk.  The touchscreen can't work in the Matrix menu and my QT programe while the mouse can work.  But when I run the example applications in Matrix, the touchscreen works well. I wonder how can I use touchscreen in the Matrix menu and my applications?

Linux/AM5728: am5728 SDK5.1 vin3a cap 16bit

$
0
0

Part Number:AM5728

Tool/software: Linux

hello,
I have downloaded the latest sdk development library 5.1, I saw a new 16bit mode in vip.c, as shown below:

{
.fourcc = V4L2_PIX_FMT_SRGGB8,
.code = MEDIA_BUS_FMT_SRGGB8_1X8,
.colorspace = V4L2_COLORSPACE_SMPTE170M,
.coplanar = 0,
.vpdma_fmt = { &vpdma_raw_fmts[VPDMA_DATA_FMT_RAW8],
},
},
{
/* V4L2 currently only defines one 16 bit variant */
.fourcc = V4L2_PIX_FMT_SBGGR16,
.code = MEDIA_BUS_FMT_SBGGR16_1X16,
.colorspace = V4L2_COLORSPACE_SMPTE170M,
.coplanar = 0,
.vpdma_fmt = { &vpdma_raw_fmts[VPDMA_DATA_FMT_RAW16],
},
},

how should this be used?


RTOS/AM5728: Why is my DCAN msgLostFlag being set

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

I have a Tiva TM4C1294 processor that is collecting Analog data from a ADS114S08EVM board. The data is put into a CAN message and sent to a Sitara AM5728. On the Sitara processor, I am using a slightly modified version of the TI example dcanLoopback code found in the Sitara pdk installation folder. Every message from the A/D has the correct value. No messages are lost. However the msgLostFlag in the dcanMsgParams_t structure is always being set for each message received by the interrupt service routine. What could the underlying meaning of the flag being set be? What other condition could case the flag to be set? I don't want to just ignore the flag. If I send the A/D data to a PCAN serial port on a PC, the PCAN software on the PC does not show any error.

From dcan.h

typedef struct dcanMsgParams {

     uint32_t dataLength;            // Message object data length - Valid values: 1 to 8

     uint32_t msgLostFlag;         // At the reception of a Message, Message is received or lost  Valid only for RX - Valid values: TRUE or FALSE

     uint32_t rxIdType;               // Extended IDE Type : Standard / Extended Identifier. Valid only for Rx For valid values refer enum # dcanXidType_t

     uint32_t rxMsgIdentifier;     // Message Identifier - [28:0] are valid bits. Valid only for Rx [28:18]: Standard Identifier , [17:0]: Extended Identifier

     uint32_t rxFrameType;       //  Received Frame is Data Frame / Remote Frame. Valid only for Rx For valid values refer enum # dcanFrameType_t

     uint8_t msgData[DCAN_MAX_MSG_LENGTH];     // Data Value to be transmitted

} dcanMsgParams_t;

TDA3: Pink tint visible at saturation regions in One pass WDR mode(OV10640)

$
0
0

Part Number:TDA3

Hi,

When we enable one pass WDR mode with OV10640 with AEWB algorithm, we are observing pink tint at the saturation regions.

We observed that the pink tint is the result of Red and Blue  white balance gains applied to the IPIPE. So we applied white balance Red and Blue gains on the sensor instead of IPIPE.

While the tint has reduced, artifacts are still visible at the saturation regions. What could be the reason for this color artifact at the saturation region?

Is this the problem with sensor's WDR combine / tone map module or the GLBCE tonemapping in the IPIPEIF? Could this issue can be fixed by changing either sensor or GLBCE parameters?

P.S: We are observing the issue in two pass WDR also.

Regards,

Navinprashath.R.R

AM5726: IrDA Errata affect UART ?

$
0
0

Part Number:AM5726

HI Champs,

According to this errata, MDR1 access is able to freeze when IrDA use case.

・AM572x Errata(SPRZ429L)

[MDR1 Access Can Freeze UART Module](p10)

http://www.tij.co.jp/jp/lit/er/sprz429l/sprz429l.pdf

 

Is this errata possible to occur normal “UART mode” ?

we have some similar issue on UART use case. 

Our UART module freezes due to some reason.

Do you have such a similar report on UART ?

Regards,

Kz777

RTOS/TDA2: Understanding of statistics shown by GRPX : CPU loads

$
0
0

Part Number:TDA2

Tool/software: TI-RTOS

I have some queries regarding utilization of each processor/CPU in % given by statistics.

1. On what basis that % count is decided for a processor?

2. Except processing a frame , what else particular CPU do ( to increase % utilization )?

3. What is mean by each term, below highlighted part ?

[IPU1-0]     67.555725 s:  CPU [EVE1   ] Statistics,  
[IPU1-0]     67.555786 s:  *************************  
[IPU1-0]     67.555847 s:   
[IPU1-0]     67.555908 s:  LOAD: CPU: 26.3% HWI: 1.5%, SWI:0.2%, Low Power: 63.5%  
[IPU1-0]     67.556091 s:   
[IPU1-0]     67.556152 s:  LOAD: TSK: SYSTEM_TSK_MULTI_MBX: 24.4%  
[IPU1-0]     67.556243 s:  LOAD: TSK: MISC                : 0.2%  
[IPU1-0]     67.556335 s:   

Regards,

Kajal

TDA2: Model import and inference on TDA2XX

$
0
0

Part Number:TDA2

Hi,

I have designed and trained my own model which is a classifier plus Jacinto SSD to detect cats & dogs in images. Following are the model's details:

1. Input resolution: 512 x 512

2. Number of layers: 50 [I have verified that configurations to all layers are within the limits mentioned in TIDeepLearningLibrary_UserGuide.pdf ] 

3. Total GMACs: 1.1497

4. Processor Vision SDK version: 03.05

5. Number of classes: 2 [Cat & Dog]

I can perform Caffe inference using this model on PC and the output is as expected. However, once model is imported successfully using Import Tool; it inferences erroneously on TDA2XX using TIDL OD library. I observe too many false positives. I can only see dog is getting detected

NOTE: Visualisation script experienced invalid co-ordinates for detected objects.

I have attached below files from my end. Please look into these and share your inputs to rectify object detection outputs.

  1. deploy.prototxt
  2. Import Config.txt   [ Import Configuration File]
  3. Import Logs.txt
  4. dog_512x512.y [Input Image]
  5. cat_dog_ssd120000.caffemodel
  6. NET_OD.BIN
  7. PRM_OD.BIN

Regards,

Premchand

(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>