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

Linux/AM3354: PSDK layer tool setup problem

$
0
0

Part Number:AM3354

Tool/software: Linux

Hello Dear All,

I follow the steps in processor sdk starting guide. And I try to do steps in the section "software-dl.ti.com/.../Overview.html

When I try to execute "./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-<version>-config.txt" I could not connect the some of the links that are described in the "config.txt". When I try to open links on the browser, There seems no problem. However during cloning repos in to my workspace, time out is occured since it can not connect. I tried to execute this script with different networks. 

Of course I can download all the required package manually instead of using script, however I want to learn what the actual problem is. 

My psdk version "ti-processor-sdk-linux-am335x-evm-05.00.00.15"

It may about DNS or similar things but I could not addres actual problem?


RTOS/AM5716: out2rprc functionality question.

$
0
0

Part Number:AM5716

Tool/software: TI-RTOS

Hi,

I have a question regarding the functionality of the SBL tool out2rprc.

In the wiki "processors.wiki.ti.com/.../Processor_SDK_RTOS_BOOT_AM57x", we can read that:

"Firstly, application executable is converted from ELF/COFF format (.out) to custom TI Rprc binary image using out2rprc tool. This tool strips out the initialized sections from the executable file (i.e. *.out) and places them in a compact format that the SBL can understand. The output (bin) file is typically much smaller than the original executable (out) file."

And we can see that if we for example create a big static global array in our main file, the *.out file gets bigger, but the size of the result from out2rprc+multicoreImageGen is not increased in the same way. So the out2rprc do what it is supposed to do.

However, if we increase the Global.pktNumFrameBufs from 384 to a higher number, the result from out2rprc+multicoreImageGen increases alot (obviously not in a compact format).

var Global = xdc.useModule('ti.ndk.config.Global');
Global.pktNumFrameBufs=384;

We can see in *project*/Debug/configPkg/package/cfg/*filename*_pa15fg.c (created from .cfg file in project) that the array ti_ndk_config_Global_pBufMem is put in a section "far:NDK_PACKETMEM".
Are we right to assume that this section is not converted into a compact format in the same way as the section used for our main.cpp file?

 

#ifndef _NDK_MIN_PBM_BUFS
#define PKT_NUM_FRAMEBUF    384
#endif

/*
 *  Max size buffer
 *  
 *  On L2 cached CPUs, this size must be cache-line multiple
 *  The LogicIO Etherent (Macronix MAC) requires a larger buffer because
 *  it transfers data in 16 byte chunks, and with its pre-pad and data
 *  alignment, it will overflow a 1536 byte buffer.
 *  
 *  This size may be overridden by defining _NDK_MIN_PBM_BUFS.  If defined, the
 *  value for PKT_SIZE_FRAMEBUF must also be defined elsewhere.
 */  
#ifndef _NDK_MIN_PBM_BUFS
#define PKT_SIZE_FRAMEBUF   1536
#endif

const int ti_ndk_config_Global_numFrameBuf  = PKT_NUM_FRAMEBUF;
const int ti_ndk_config_Global_sizeFrameBuf = PKT_SIZE_FRAMEBUF;

/* Data space for packet buffers */
#ifdef __ti__
#pragma DATA_ALIGN(ti_ndk_config_Global_pBufMem, 128);
#pragma DATA_SECTION(ti_ndk_config_Global_pBufMem, ".far:NDK_PACKETMEM");
UINT8 ti_ndk_config_Global_pBufMem[PKT_NUM_FRAMEBUF * PKT_SIZE_FRAMEBUF];
#elif defined (__IAR_SYSTEMS_ICC__)
#pragma data_alignment = 128
UINT8 ti_ndk_config_Global_pBufMem[PKT_NUM_FRAMEBUF*PKT_SIZE_FRAMEBUF];
#else
UINT8 ti_ndk_config_Global_pBufMem[PKT_NUM_FRAMEBUF * PKT_SIZE_FRAMEBUF] __attribute__ ((aligned(128), section(".far:NDK_PACKETMEM")));

Appreciate your help,

Anders Viken.

AM5708: Boot logo in U-boot

$
0
0

Part Number:AM5708

Customer wants to know if we have now the schedule for having the logo on the display.

Linux/AM4378: am4378

$
0
0

Part Number:AM4378

Tool/software: Linux

Team, We are trying to inegrate SPI based NFC chip and followings are the settings.

spi_display_pins_default: spi_display_pins_default {
                    pinctrl-single,pins = <
                            AM4372_IOPAD(0x990,PIN_INPUT | MUX_MODE3) /* (N24) mcasp0_aclkx.spi1_sclk */
                            AM4372_IOPAD(0x994,PIN_OUTPUT_PULLUP | MUX_MODE3) /* (N22) mcasp0_fsx.spi1_d0 */
                            AM4372_IOPAD(0x998,PIN_INPUT_PULLUP | MUX_MODE3) /* (H23) mcasp0_axr0.spi1_d1 */
                            AM4372_IOPAD(0x99c,PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (M24) mcasp0_ahclkr.spi1_cs0 */
                  AM4372_IOPAD(0x9EC, PIN_INPUT_PULLDOWN | MUX_MODE7)   /* BUSY*/
                                  AM4372_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE7)  /*IRQ*/
                                        /*AM4372_IOPAD(0x9e8, PIN_OUTPUT | MUX_MODE7) *//*REset*/
                                 AM4372_IOPAD(0x858, PIN_OUTPUT_PULLUP | MUX_MODE7) /*RESET */
                    >;
            };

&spi1 {
        pinctrl-names = "default";
          pinctrl-0 = <&spi_display_pins_default>;
    dmas = <&edma 16 0
        &edma 17 0>;
    dma-names = "tx0", "rx0";
          status = "okay";
    ti,pindir-d0-out-d1-in=<1>;
      
    bal: nxprdlib-bal@0 {
        compatible = "nxp,bal";
        reg = <0>;
        spi-max-frequency = <5000000>;
    busy-pin-gpio = <&gpio4 15 0>;
    status = "okay";
/*    
        spidev@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "linux,spidev";
                spi-max-frequency = <5000000>;
                reg = <0>;
        status = "okay";
        };*/
};
};

Once we load the module we are seeing the attached crash. Could you please help overcome this issue. We are using the latest SDK(Please visit the site to view this file)

Best Regards, MRP

AM3351: AM335x crystal - Drive Strength

$
0
0

Part Number:AM3351

Hello,

What is the max drive strength for the main crystal oscillator for the AM335x? Based on the calculations listed in section 6.2, Table 6-3 in the datasheet and using the crystal TSX-3225 https://www5.epsondevice.com/en/products/crystal_unit/tsx3225.html (with 25Mhz, and CL 18pF) the power dissipation in the crystal is around 518uW.

ESR - 40 Ohm, f = 25Mhz, CL = 18pF, VDDS_OSC = 1.8V

Is my calculation correct? Does this mean that I can't use TSX-3225?

Thank you for your replies.

Regards

Santhosh

RTOS/AM5728: Adding CAN Test to Processor SDK RTOS Template App

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Hi,

I have built and used the RTOS Template App for the C66xx core.

I also have built and used the DCAN Basic Example on C66xx core.

They seem to have different RTOS versions and libraries. This has caused trouble with the implementation. 

Simply, how can I implement the Internal DCAN example into the Template App?

Thank you in advance!

PROCESSOR-SDK-AM437X: AM4376 - boot-from-SD U-boot 2018.01 (ti-processor-sdk-linux-am437x-evm-05.00.00.15)

$
0
0

Part Number:PROCESSOR-SDK-AM437X

I am working on a custom TI AM4376 board. I am trying to upgrade to the U-boot 2018.01 version from the latest TI SDK. I have boot-from-QSPI working with U-boot 2018.01 but am having difficulties getting boot-from-SD card to work. I know the hardware is good since it is currently booting U-Boot 2016.05 from SD card:

U-Boot SPL 2016.05-g5c0736c-dirty (Sep 28 2018 - 11:50:47)
Trying to boot from MMC1
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img


U-Boot 2016.05-g5c0736c-dirty (Sep 28 2018 - 11:50:47 -0400)

CPU : AM437X-GP rev 2.1
Model: Embedded Planet DES0251
DRAM: 2 GiB
PMIC: TPS65218
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env
Net: Could not get PHY for cpsw: addr 0
cpsw
=>

I get the following when it tries boot-from-SD with U-boot 2018.01:

U-Boot SPL 2018.01-gb0388fa-dirty (Sep 28 2018 - 12:51:54)

Trying to boot from MMC1
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

It may be as simple as me missing something in the u-boot configuration. I did not see an EVM board configuration for boot-from-SD in the u-boot source tree. There appears to be extensive changes to the MMC SPL support in U-boot 2018.01 as compared to the previous U-Boot 2016.05. I assume boot-from-SD in U-boot 2018.01 has been verified to work on one of the EVM platforms. Is there a defconfig available for boot-from-SD on an EVM board?

Thanks

TDA3XEVM: Unable to load Hello World Program ?

$
0
0

Part Number:TDA3XEVM

I get load error when I try to load Hello World Program from CCS version 8.2 debugger ?

Attached is the error:

Where can I find project build options?


Linux/DRA71: Can not remove pvrsrvkm module

$
0
0

Part Number:DRA71

Tool/software: Linux

Team

We are implementing hibernation feature on our custom board.

After kernel configuration and fixing, we are enable to get this feature working  on most of modules, but we have some troubles with GPU.

Trying to remove module

 # lsmod
Module                  Size  Used by
pvrsrvkm              235464  12

# rmmod pvrsrvkm
rmmod: failed to unload pvrsrvkm: Try again

Testing hibernation we get the following errors

#echo core > /sys/power/pm_test
#echo suspend > /sys/power/disk
#echo disk > /sys/power/state

[ 1250.813535] PM: Syncing filesystems ... done.
[ 1250.818560] PM: disabling user mode helpers
[ 1250.822838] PM: user mode helpers disabled
[ 1250.826958] PM: user mode helpers disabled successfuly
[ 1250.832651] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 1250.842158] OOM killer disabled.
[ 1250.845595] PM: hibernation_snapshot started. platform_mode=0
[ 1250.851370] PM: Preallocating image memory... done (allocated 79677 pages)
[ 1251.162997] PM: Allocated 318708 kbytes in 0.30 seconds (1062.36 MB/s)
[ 1251.169561] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 1251.180273] Suspending console(s) (use no_console_suspend to debug)
[ 1251.186641] PM: __device_suspend: Device gpio60
[ 1251.186660] PM: __device_suspend: Device pvr_sync
[ 1251.186671] PM: __device_suspend: Device pvrsrvkm
[ 1251.186682] PM: __device_suspend: Device mtp_usb
...
a lot of PM: __device_suspend: logs
...
[ 1251.210245] omap_hwmod: mmc1: idling
[ 1251.210255] omap_hwmod: mmc1: _omap4_disable_module
[ 1251.210266]  CHRISTIAN->mod:mmc1 clk:l3init_clkdm [arch/arm/mach-omap2/omap_hwmod.c:_omap4_wait_target_disable:1038]
[ 1251.210267] omap_hwmod: mmc1: disabling clocks
[ 1251.210308] omap_hwmod: gpu: idling
[ 1251.210321] omap_hwmod: gpu: _omap4_disable_module
[ 1251.217561]  CHRISTIAN->mod:gpu clk:gpu_clkdm [arch/arm/mach-omap2/omap_hwmod.c:_omap4_wait_target_disable:1038]
-->[ 1251.217562] omap_hwmod: gpu: _wait_target_disable failed
[ 1251.217566] omap_hwmod: gpu: disabling clocks
[ 1251.217832] omap_hwmod: timer11: idling
[ 1251.217843] omap_hwmod: timer11: _omap4_disable_module
[ 1251.217858]  CHRISTIAN->mod:timer11 clk:l4per_clkdm [arch/arm/mach-omap2/omap_hwmod.c:_omap4_wait_target_disable:1038]
[ 1251.217859] omap_hwmod: timer11: disabling clocks
...
[ 1251.614177] PM: restore of devices complete after 281.138 msecs
[ 1251.614184] ------------[ cut here ]------------
[ 1251.614207] WARNING: CPU: 0 PID: 338 at drivers/cpufreq/cpufreq.c:1745 cpufreq_resume+0x170/0x194()
[ 1251.614224] Modules linked in: pvrsrvkm(O) [last unloaded: usb_storage]
[ 1251.614237] CPU: 0 PID: 338 Comm: sh Tainted: G        W  O    4.4.91-00062-g134da8a-dirty #5
[ 1251.614242] Hardware name: Generic DRA72X (Flattened Device Tree)
[ 1251.614250] Backtrace:
[ 1251.614267] [<c020c64c>] (dump_backtrace) from [<c020c854>] (show_stack+0x18/0x1c)
[ 1251.614290]  r6:60000013 r5:c1259c48 r4:00000000 r3:dc8ba65b
[ 1251.614308] [<c020c83c>] (show_stack) from [<c0beb62c>] (dump_stack+0x94/0xa8)
[ 1251.614325] [<c0beb598>] (dump_stack) from [<c0232748>] (warn_slowpath_null+0x8c/0xa8)
[ 1251.614344]  r6:c0eaf250 r5:000006d1 r4:c08af760 r3:dc8ba65b
[ 1251.614358] [<c02326bc>] (warn_slowpath_null) from [<c08af760>] (cpufreq_resume+0x170/0x194)
[ 1251.614374]  r6:c12838b8 r5:e3dbde00 r4:00000000
[ 1251.614390] [<c08af5f0>] (cpufreq_resume) from [<c07120f4>] (dpm_resume+0x174/0x3fc)
[ 1251.614409]  r7:c126bd78 r6:c126bd48 r5:e3dbde00 r4:c126bd78
[ 1251.614423] [<c0711f80>] (dpm_resume) from [<c0297418>] (hibernation_snapshot+0x5f0/0x600)
[ 1251.614448]  r10:e33fe480 r9:00000000 r8:00000000 r7:c1202800 r6:00000000 r5:00000040
[ 1251.614456]  r4:00000000
[ 1251.614467] [<c0296e28>] (hibernation_snapshot) from [<c0297bbc>] (hibernate+0x134/0x28c)
[ 1251.614491]  r9:00000000 r8:c12c3040 r7:c120494c r6:ffffffff r5:c121ef64 r4:c121f138
[ 1251.614506] [<c0297a88>] (hibernate) from [<c0294278>] (state_store+0x60/0x84)
[ 1251.614528]  r8:00000000 r7:e300df70 r6:00000005 r5:00000005 r4:e33fe380
[ 1251.614547] [<c0294218>] (state_store) from [<c05b6c4c>] (kobj_attr_store+0x1c/0x28)
[ 1251.614558]  r5:e33fe48c r4:c05b6c30
[ 1251.614574] [<c05b6c30>] (kobj_attr_store) from [<c0408b3c>] (sysfs_kf_write+0x44/0x50)
[ 1251.614587] [<c0408af8>] (sysfs_kf_write) from [<c0408400>] (kernfs_fop_write+0x13c/0x1a4)
[ 1251.614598]  r4:e33fe380 r3:c0408af8
[ 1251.614612] [<c04082c4>] (kernfs_fop_write) from [<c038d82c>] (vfs_write+0xb8/0x1dc)
[ 1251.614636]  r10:00000000 r9:e300c000 r8:aa4aa284 r7:e300df70 r6:aa4aa284 r5:00000005
[ 1251.614643]  r4:e31f0e40
[ 1251.614656] [<c038d774>] (vfs_write) from [<c038e1fc>] (SyS_write+0x5c/0xb8)
[ 1251.614678]  r9:e300c000 r8:aa4aa284 r7:00000005 r6:e31f0e40 r5:c120494c r4:e31f0e40
[ 1251.614693] [<c038e1a0>] (SyS_write) from [<c0207fe0>] (ret_fast_syscall+0x0/0x34)
[ 1251.614715]  r8:c0208184 r7:00000004 r6:bed7b7a4 r5:aa4aa284 r4:00000005
[ 1251.614721] ---[ end trace 3e18a24dac8e40cd ]---
[ 1251.721137] android_work: sent uevent USB_STATE=DISCONNECTED
[ 1252.174355] android_work: sent uevent USB_STATE=CONNECTED
[ 1252.179405] android_work: sent uevent USB_STATE=DISCONNECTED
[ 1252.279772] android_work: sent uevent USB_STATE=CONNECTED
[ 1252.323005] configfs-gadget gadget: high-speed config #1: b
[ 1252.323306] android_work: sent uevent USB_STATE=CONFIGURED
[ 1256.820404] PM: Image restored successfully.
[ 1256.824805] Restarting tasks ...
[ 1256.874932] done.
[ 1256.877682] PM: hibernate: resume uevent sent successfully

Platform details

  • Android SDK 6AO.1.0
  • Linux 4.4.91-00062-

How can we remove GPU driver module/ pvrsrvkm successfully?

DRA71: U-Boot Thermal Management

$
0
0

Part Number:DRA71

Team

TI U-Boot 2016.05-00029 (Android SDK 6AO.1.0) has thermal management implemented. It means CPU (CORE, GPU, MPU) thermal protection.

How can we change thermal limits?

(We know that the register depicted in TRM Table 18-12 are used for this feature, but we didn't find U-boot source code related with these)

Regards

AM5728: QSPI flash for U-Boot

$
0
0

Part Number:AM5728

I have a custom AM5728 board that I am trying to boot off of a QSPI flash.  I just want U-Boot to reside on QSPI flash.  The Linux kernel, DTB and root file system will stay on microSD.

I am using U-Boot v2018.01 and patching mux_data.h with data generated from TI's PinMux Tool.  CONFIG_TI_QSPI is enabled in u-boot.cfg.   I hoped that would be enough to detect the flash but when I "sf probe" from U-Boot I get nothing except "(err=-19)".  The QSPI flash is a Micron MT25QL256ABA.

Is there a particular DTB U-Boot needs to detect the QSPI flash or do I need to modify the DTS and build one?  What should that DTS (&qspi node) look like?

Cheers,
Frank

J6EVM5777: How can I use Jacinto 6 with JAMR3 with AUO LCD

$
0
0

Part Number:J6EVM5777

Hi,

How can I use the Jacinto 6 + JAMR 3 board with the AOU LCD?

Thanks,

Alan

Linux: Yocto build and deploy tftp and bootp client on Beaglebone Black

$
0
0

Tool/software: Linux

Hi,

I am trying to build and deploy bootp and tftp clients to the Linux rootfs on Beagle Black (AM335x) using Yocto build system. Since I am relatively new in this area, there are a couple of questions arise. Hope I can get answers here:

Questions:

1. What is the standard way of building and deploying this using Yocto?

I assume I can just get the recipes from git://git.openembedded.org/meta-openembedded and its depending layers. Then use IMAGE_INSTALL to include the recipe name. The recipe will build and deploy the tftp and bootp client to rootfs.

Please explain if this is not true or anything I missed.

2. What is the recommended tftp client to use?

3. What is the recommended bootp client to use? I do not seem to find a bootp client in the meta-openembedded and other places. What is the recommended solution for this?

Thank you for your help.

RTOS/AM5728: How to compile the VLIB software library example?

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Hi,

Software version: Processor_RTOS_SDK 4.3, hardware version: AM5728-ES2.0, custom board, PC operating system Ubuntu14.04  x86_64

What should I do to compile the HoughLinesDemo example of the VLIB software library and help me.

Thanks

J6EVM5777: J6EVM5777 didn't enter the uboot process with the SD card ,which has MLO and u-boot.img, how can I solve it?

$
0
0

Part Number:J6EVM5777

The board J6EVM5777 suddenly can enter the uboot process with the emmc,so I insert the SD card to it and want to boot it from SDcard.

But both of them doesn't work.

How can I solve it?


J6EVM5777: J6EVM5777 didn't enter the uboot process with the SD card ,which has MLO and u-boot.img, how can I solve it?

$
0
0

Part Number:J6EVM5777

Hi,all.

The board J6EVM5777 suddenly can enter the uboot process with the emmc,so I insert the SD card to it and want to boot it from SDcard.

But both of them doesn't work.

How can I solve it?

Thanks you.

Linux/PROCESSOR-SDK-AM335X: Dual Mac Mode eth1 always show "Link is down .Link is Up.Link is Down . Link is Up"

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Tool/software: Linux

I configured dual mac mode in the kernel. The eth0 is OK, but eth1 always show the following messages when connected ,even if I close the eth0 ( ifconfig eth0 down).

[   46.248456] net eth1: initializing cpsw version 1.12 (0)                                                                      
[   46.349274] Micrel KSZ8041 4a101000.mdio:03: attached PHY driver [Micrel KSZ8041] (mii_bus:phy_addr=4a101000.mdio:03, irq=POLL)                                                   
[   46.390027] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready                                                                
root@am335x-evm:~# [   76.490116] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx                    
[   76.498348] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready                                                           
[   79.609796] cpsw 4a100000.ethernet eth1: Link is Down                                                                         
[   90.009966] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx                                       
[   92.089768] cpsw 4a100000.ethernet eth1: Link is Down                                                                         
[   95.210342] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx                                       
[   97.289748] cpsw 4a100000.ethernet eth1: Link is Down                                                                         
[  103.529996] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx                                       
[  105.609918] cpsw 4a100000.ethernet eth1: Link is Down                                                                         
[  133.689984] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx                                       
[  135.769816] cpsw 4a100000.ethernet eth1: Link is Down                                    

....

Following is my DTS:

cpsw_default: cpsw_default {
 57         pinctrl-single,pins = <
 58             /* Slave 1 */
 59             AM33XX_IOPAD(0x90c, (PIN_INPUT_PULLUP | MUX_MODE1)) /* mii1_crs.rmii1_crs_dv */
 60             AM33XX_IOPAD(0x944, (PIN_INPUT_PULLUP | MUX_MODE0)) /* rmii1_refclk.rmii1_refclk */
 61             AM33XX_IOPAD(0x940, (PIN_INPUT_PULLUP | MUX_MODE1)) /* mii1_rxd0.rmii1_rxd0 */
 62             AM33XX_IOPAD(0x93c, (PIN_INPUT_PULLUP | MUX_MODE1)) /* mii1_rxd1.rmii1_rxd1 */
 63             AM33XX_IOPAD(0x910, (PIN_INPUT_PULLUP | MUX_MODE1)) /* mii1_rxerr.rmii1_rxerr */
 64             AM33XX_IOPAD(0x928, (PIN_OUTPUT_PULLDOWN | MUX_MODE1))  /* mii1_txd0.rmii1_txd0 */
 65             AM33XX_IOPAD(0x924, (PIN_OUTPUT_PULLDOWN | MUX_MODE1))  /* mii1_txd1.rmii1_txd1 */
 66             AM33XX_IOPAD(0x914, (PIN_OUTPUT_PULLDOWN | MUX_MODE1))  /* mii1_txen.rmii1_txen */
 67          
 68             /* Slave 2, RMII mode */
 69             AM33XX_IOPAD(0x870, (PIN_INPUT_PULLUP | MUX_MODE3)) /* gpmc_wait0.rmii2_crs_dv */
 70             AM33XX_IOPAD(0x908, (PIN_INPUT_PULLUP | MUX_MODE1)) /* mii1_col.rmii2_refclk */
 71             AM33XX_IOPAD(0x86c, (PIN_INPUT_PULLUP | MUX_MODE3)) /* gpmc_a11.rmii2_rxd0 */
 72             AM33XX_IOPAD(0x868, (PIN_INPUT_PULLUP | MUX_MODE3)) /* gpmc_a10.rmii2_rxd1 */
 73             AM33XX_IOPAD(0x874, (PIN_INPUT_PULLUP | MUX_MODE3)) /* gpmc_wpn.rmii2_rxerr */
 74             AM33XX_IOPAD(0x854, (PIN_OUTPUT_PULLDOWN | MUX_MODE3))  /* gpmc_a5.rmii2_txd0 */
 75             AM33XX_IOPAD(0x850, (PIN_OUTPUT_PULLDOWN | MUX_MODE3))  /* gpmc_a4.rmii2_txd1 */
 76             AM33XX_IOPAD(0x840, (PIN_OUTPUT_PULLDOWN | MUX_MODE3))  /* gpmc_a0.rmii2_txen */
 77         >;
 78     };

cpsw_sleep: cpsw_sleep {
 81         pinctrl-single,pins = <
 82              /* Slave 1 reset value */
 83              AM33XX_IOPAD(0x90c, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 84              AM33XX_IOPAD(0x944, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 85              AM33XX_IOPAD(0x940, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 86              AM33XX_IOPAD(0x93c, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 87              AM33XX_IOPAD(0x910, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 88              AM33XX_IOPAD(0x928, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 89              AM33XX_IOPAD(0x924, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 90              AM33XX_IOPAD(0x914, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 91     
 92              /* Slave 2 reset value */
 93              AM33XX_IOPAD(0x870, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 94              AM33XX_IOPAD(0x908, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 95              AM33XX_IOPAD(0x86c, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 96              AM33XX_IOPAD(0x868, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 97              AM33XX_IOPAD(0x874, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 98              AM33XX_IOPAD(0x854, (PIN_INPUT_PULLDOWN | MUX_MODE7))
 99              AM33XX_IOPAD(0x850, (PIN_INPUT_PULLDOWN | MUX_MODE7))
100              AM33XX_IOPAD(0x840, (PIN_INPUT_PULLDOWN | MUX_MODE7))                     
101         >;
102     };
103
104     davinci_mdio_default: davinci_mdio_default {
105         pinctrl-single,pins = <
106             /* MDIO */
107             AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)   /* mdio_data.mdio_data */
108             AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)          /* mdio_clk.mdio_clk */
109         >;
110     };
111
112     davinci_mdio_sleep: davinci_mdio_sleep {
113         pinctrl-single,pins = <
114             /* MDIO reset value */
115             AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
116             AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
117         >;
118     };
.....

&cpsw_emac0 {
251     phy_id = <&davinci_mdio>, <1>;
252     phy-mode = "rmii";
253     dual-emac-res-vlan = <3>;
254 };
255
256 &cpsw_emac1 {
257     phy_id = <&davinci_mdio>, <3>;
258     phy-mode = "rmii";
259     dual-emac-res-vlan = <4>;
260 };
261
262 &mac {
263     slaves = <2>;
264     pinctrl-names = "default", "sleep";
265     pinctrl-0 = <&cpsw_default>;
266     pinctrl-1 = <&cpsw_sleep>;
267     dual_emac = <1>;
268     status = "okay";
269 };
270
271 &davinci_mdio {
272     pinctrl-names = "default", "sleep";
273     pinctrl-0 = <&davinci_mdio_default>;
274     pinctrl-1 = <&davinci_mdio_sleep>;
275     status = "okay";
276 };

I have configured the SMA2's first bit to be 1.

.I use the ti-processor-sdk-linux-rt-am335x-evm-05.00.00.15.My board is the custom board.

RTOS: GPIO Led blink not working with A15 boot up from SD card

$
0
0

Tool/software: TI-RTOS

I had build the led blink project from myproject folder. Loaded the .out file into M4 core of EVM AM572x using ccs & jtag. Nothing is happened after running the project. Let me suggest if I missed something. EVM is running from SD card with linux rt image.

Linux/66AK2H12: NFS in U-Boot

$
0
0

Part Number:66AK2H12

Tool/software: Linux

Hi all;

I have  custom board similar to k2hevm. i use ProcSDK 4.03.

i wanted to config NFS in U-Boot on my board but I received this Error: 

CPU: 66AK2Hx SR2.0
Model: Texas Instruments Keystone 2 Kepler/Hawking EVM
I2C: ready
DRAM:
Clear entire DDR3 memory to enable ECC
2 GiB
NAND: 512 MiB
Net: eth0: netcp@2000000
Warning: netcp@slave-1 (eth1) using random MAC address - 8e:23:7e:c7:9d:14
, eth1: netcp@slave-1
Warning: netcp@slave-2 (eth2) using random MAC address - da:ad:ae:73:8f:a9
, eth2: netcp@slave-2
Warning: netcp@slave-3 (eth3) using random MAC address - fa:e6:b5:ff:96:f9
, eth3: netcp@slave-3
Hit any key to stop autoboot: 0

netcp@2000000 Waiting for SGMII auto negotiation to complete. done
netcp@2000000 Waiting for PHY auto negotiation to complete.. done
data abort
pc : [<fff703f6>] lr : [<fff70463>]
reloc pc : [<0c0423f6>] lr : [<0c042463>]
sp : fdee46e8 ip : 00000000 fp : 0000006f
r10: 000003e8 r9 : fdeedee0 r8 : fffece40
r7 : 0000e803 r6 : 00006f00 r5 : 00000038 r4 : fffece4e
r3 : 14000045 r2 : 0189a8c0 r1 : fdee46f0 r0 : fffece4e
Flags: nZcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...

resetting ...

and after reset again and again....

before i configed nfs on k2hevm and i know all variable about nfs config like ipaddr,serverip and ....

I compared all variable env on U-Boot in two boards and all were the same.

i configured linux on my custom board before and I used dot-matrix-gui. (ethernet HW is correct and operate correctly on linux) but in u-boot i dont know why when i used ping, tftp or every thing related to eth, board got reset.

my custom board have just 1 eth0. and i changed dts in U-boot env:

netcp: netcp@2000000 {
reg = <0x2620110 0x8>;
reg-names = "efuse";
compatible = "ti,netcp-1.0";
#address-cells = <1>;
#size-cells = <1>;

/* NetCP address range */
ranges = <0 0x2000000 0x100000>;

clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
dma-coherent;

ti,navigator-dmas = <&dma_gbe 22>,
//<&dma_gbe 23>,
<&dma_gbe 8>;
ti,navigator-dma-names = "netrx0", "nettx"; // "netrx1",

netcp-devices {
ranges;
#address-cells = <1>;
#size-cells = <1>;
gbe@90000 { /* ETHSS */
#address-cells = <1>;
#size-cells = <1>;
label = "netcp-gbe";
compatible = "ti,netcp-gbe";
reg = <0x90000 0x300>, <0x90800 0x700>; //, <0x90400 0x400>
/* enable-ale; */
tx-queue = <648>;
tx-channel = "nettx";

interfaces {
gbe0: interface-0 {
slave-port = <0>;
link-interface = <1>;
phy-handle = <&ethphy0>;
};
/*gbe1: interface-1 {
slave-port = <1>;
link-interface = <1>;
phy-handle = <&ethphy1>;
};*/
};

secondary-slave-ports {
port-1 {
slave-port = <1>;
link-interface = <2>;
};
port-2 {
slave-port = <2>;
link-interface = <2>;
};
port-3 {
slave-port = <3>;
link-interface = <2>;
};
};
};
};

netcp-interfaces {
interface-0 {
rx-channel = "netrx0";
rx-pool = <1024 12>;
tx-pool = <1024 12>;
rx-queue-depth = <128 128 0 0>;
rx-buffer-size = <1518 4096 0 0>;
rx-queue = <8704>;
tx-completion-queue = <8706>;
efuse-mac = <1>;
netcp-gbe = <&gbe0>;

};
/*interface-1 {
rx-channel = "netrx1";
rx-pool = <1024 12>;
tx-pool = <1024 12>;
rx-queue-depth = <128 128 0 0>;
rx-buffer-size = <1518 4096 0 0>;
rx-queue = <8705>;
tx-completion-queue = <8707>;
efuse-mac = <0>;
local-mac-address = [02 18 31 7e 3e 6f];
netcp-gbe = <&gbe1>;
};*/
};
};

can any body help me?!

RTOS/TMS320C6678: #1934-D concatenation with "XXXX" in macro "YYYYYY" does not create a valid token

$
0
0

Part Number:TMS320C6678

Tool/software: TI-RTOS

Hi,

i am getting the following warning and it very difficult to understand what is exactly.

#1934-D concatenation with "BCCH" in macro "INIT_TDFRMTBL" does not create a valid token

 


#define INIT_TDFRMTBL(NAME,TYPEANDOFFSET,DOWNLINK,UPLINK,ALLOWEDSLOTS,C0ONLY,REPEAT,SUBSLOT) \
	 if(1){TDFrm_Init(&gTDMA.Frame.##NAME,(CHAR*)#NAME,TYPEANDOFFSET,DOWNLINK,UPLINK,ALLOWEDSLOTS,C0ONLY, \
		REPEAT,sizeof(NAME)/sizeof(INT8), SUBSLOT, NAME);}

VOID TDFrmTbl_Init( VOID )
{
      INIT_TDFRMTBL(BCCH,TDMA_BEACON,TRUE,FALSE,0x55,TRUE,51,0);
}

Regards

Bala

Viewing all 17527 articles
Browse latest View live


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