Quantcast
Channel: Forums - Recent Threads
Viewing all 262198 articles
Browse latest View live

CCS/TMS320C6727B: Assigning GPIO to EMIF Address lines using genBootCfg Utility

$
0
0

Part Number: TMS320C6727B

Tool/software: Code Composer Studio

This tool seems to have an issue with the EMIF Address pins. I am using the TQFP package. This device has BA[1:0] and address pins EM_A[12:0]. However the script is looking for the user to map EMIF address pins EM_A[24:12].  The upper address pins are not relevant in that I am using a 128Kx16 device that requires 17 address pins. 

Per the EMIF App note, I am mapping BA[1] to EMIF_A[0] and EM[12:0] to EMIF_A[13:1]. I planned to map the memory address pins [16:14] to GPIO pins.

When looking at the tool genBootCfg options for assigning EMIF address pins to GPIO, it allows for address pins from EMIF_A12 to EMIF_A24. The app note states that some devices do not provide an EMIF_A12 pin. I am assuming it is there for this scenario but assumed it would be "greyed" out like other options that are not available for this specific configuration.

I am just skipping assigning EMIF_A12 and hope that works. 

The SM320C6727B datasheet shows that this device provides a pin for EMIF_A12. Is this just a stale reference to older 6727 devices??


Compiler/AWR1843: 1843

$
0
0

Part Number: AWR1843

Tool/software: TI C/C++ Compiler

hallo!

I try compile project, but have error ( pictured)

arm v18.12 compiler installed

LAUNCHXL-CC26X2R1: Multi_role / GATT CLIENT and GATT Server Simultaneously

$
0
0

Part Number: LAUNCHXL-CC26X2R1

Hi all!

So I don't want you guys to get bored, so I have a new question :-)

In the past Simple Link Academy has been a massive help, but I did notice in the last days, that the information of using simple_central / multi_role as a GATT Client is very minimal. Therefor I do have some questions and yes I read chapter "Generic Attribute Profile (GATT)" and "ATT and GATT Introduction" multiple times, but I'm still stuck with the following question and problem.

1. When I use 2 multi_role devices that advertise and scan Simultaneously and connect to each other, how can I check which device is the Gatt Client and which the Gatt Server in this particular connection.

2. Without knowing how to solve no. 1 I try to write as a GATT Client to the GATT Server to a custom profile and I always get as a return "Write Error 1" when using GATT_WriteCharValue(), Here is my code where I try to write the Value to a custom profile after I press a button: 

 status_t status7;
                       uint8_t charVals[4] = { 0x04, 0x04, 0x04, 0x04 }; // Should be consistent with
                                                                                               // those in scMenuGattWrite
                       attWriteReq_t req;

                       req.pValue = GATT_bm_alloc(connHandle2, ATT_WRITE_REQ, 1, NULL);

                       if ( req.pValue != NULL )
                        {
                              uint8_t connIndex = multi_role_getConnIndex(connHandle2);

                              // connIndex cannot be equal to or greater than MAX_NUM_BLE_CONNS
                              MULTIROLE_ASSERT(connIndex < MAX_NUM_BLE_CONNS);

                              req.handle = connList[connIndex].charHandle;
                              req.len = 1;
                              charVal = charVals[1];
                              req.pValue[0] = charVal;
                              req.sig = 0;
                              req.cmd = 0;


                              status7 = GATT_WriteCharValue(connHandle2, &req, selfEntity);
                              if ( status7 != SUCCESS )
                              {
                                  GATT_bm_free((gattMsg_t *)&req, ATT_WRITE_REQ);
                              }else
                              {
                                  Display_printf(dispHandle, MR_ROW_MYADDRSS, 0,  "Write Request Sent to connhandle %i", connHandle2);
                              }
                          }

This Is my multi_role_processGATTDiscEvent:

static void multi_role_processGATTDiscEvent(gattMsgEvent_t *pMsg)
{
  uint8_t connIndex = multi_role_getConnIndex(pMsg->connHandle);
  MULTIROLE_ASSERT(connIndex < MAX_NUM_BLE_CONNS);

  if (connList[connIndex].discState == BLE_DISC_STATE_MTU)
  {
    // MTU size response received, discover Custom service
    if (pMsg->method == ATT_EXCHANGE_MTU_RSP)
    {
      uint8_t uuid[ATT_BT_UUID_SIZE] = { LO_UINT16(CUSTOMSERVICE_SERV_UUID),
                                         HI_UINT16(CUSTOMSERVICE_SERV_UUID) };

      connList[connIndex].discState = BLE_DISC_STATE_SVC;

      // Discovery Custom service
      VOID GATT_DiscPrimaryServiceByUUID(pMsg->connHandle, uuid,
                                         ATT_BT_UUID_SIZE, selfEntity);
    }
  }
  else if (connList[connIndex].discState == BLE_DISC_STATE_SVC)
  {
    // Service found, store handles
    if (pMsg->method == ATT_FIND_BY_TYPE_VALUE_RSP &&
        pMsg->msg.findByTypeValueRsp.numInfo > 0)
    {
      svcStartHdl = ATT_ATTR_HANDLE(pMsg->msg.findByTypeValueRsp.pHandlesInfo, 0);
      svcEndHdl = ATT_GRP_END_HANDLE(pMsg->msg.findByTypeValueRsp.pHandlesInfo, 0);
    }

    // If procedure complete
    if (((pMsg->method == ATT_FIND_BY_TYPE_VALUE_RSP) &&
         (pMsg->hdr.status == bleProcedureComplete))  ||
        (pMsg->method == ATT_ERROR_RSP))
    {
      if (svcStartHdl != 0)
      {
        attReadByTypeReq_t req;

        // Discover characteristic
        connList[connIndex].discState = BLE_DISC_STATE_CHAR;

        req.startHandle = svcStartHdl;
        req.endHandle = svcEndHdl;
        req.type.len = ATT_BT_UUID_SIZE;
        req.type.uuid[0] = LO_UINT16(CUSTOM_SERV6_UUID); 
        req.type.uuid[1] = HI_UINT16(CUSTOM_SERV6_UUID);

        VOID GATT_DiscCharsByUUID(pMsg->connHandle, &req, selfEntity);
      }
    }
  }
  else if (connList[connIndex].discState == BLE_DISC_STATE_CHAR)
  {
    // Characteristic found, store handle
    if ((pMsg->method == ATT_READ_BY_TYPE_RSP) &&
        (pMsg->msg.readByTypeRsp.numPairs > 0))
    {
      uint8_t connIndex = multi_role_getConnIndex(connHandle2);

      // connIndex cannot be equal to or greater than MAX_NUM_BLE_CONNS
      MULTIROLE_ASSERT(connIndex < MAX_NUM_BLE_CONNS);

      // Store the handle of the QW characteristic 1 value
      connList[connIndex].charHandle
        = BUILD_UINT16(pMsg->msg.readByTypeRsp.pDataList[3],
                       pMsg->msg.readByTypeRsp.pDataList[4]);

      Display_printf(dispHandle, 13, 0, "Custom Svc Found");

      // Now we can use GATT Read/Write
      tbm_setItemStatus(&mrMenuPerConn,
                        MR_ITEM_GATTREAD | MR_ITEM_GATTWRITE, MR_ITEM_NONE);
    }

    connList[connIndex].discState = BLE_DISC_STATE_IDLE;
  }
}

This is my multi_role_processGATTMsg

static uint8_t multi_role_processGATTMsg(gattMsgEvent_t *pMsg)
{

  // Get connection index from handle
  uint8_t connIndex = multi_role_getConnIndex(pMsg->connHandle);
  MULTIROLE_ASSERT(connIndex < MAX_NUM_BLE_CONNS);



  if (pMsg->method == ATT_FLOW_CTRL_VIOLATED_EVENT)
  {
    // ATT request-response or indication-confirmation flow control is
    // violated. All subsequent ATT requests or indications will be dropped.
    // The app is informed in case it wants to drop the connection.

    // Display the opcode of the message that caused the violation.
    Display_printf(dispHandle, MR_ROW_CUR_CONN, 0, "FC Violated: %d", pMsg->msg.flowCtrlEvt.opcode);

  }
  else if (pMsg->method == ATT_MTU_UPDATED_EVENT)
  {
    // MTU size updated
    Display_printf(dispHandle, MR_ROW_CUR_CONN, 0, "MTU Size: %d", pMsg->msg.mtuEvt.MTU);

  }


  // Messages from GATT server
  if (linkDB_Up(pMsg->connHandle))
  {

    if ((pMsg->method == ATT_READ_RSP)   ||
        ((pMsg->method == ATT_ERROR_RSP) &&
         (pMsg->msg.errorRsp.reqOpcode == ATT_READ_REQ)))
    {
      if (pMsg->method == ATT_ERROR_RSP)
      {
        Display_printf(dispHandle, SP_NVS_DEBUG, 0, "Read Error %d", pMsg->msg.errorRsp.errCode);
      }
      else
      {
        // After a successful read, display the read value
        Display_printf(dispHandle, SP_NVS_DEBUG, 0, "Read rsp: %d", pMsg->msg.readRsp.pValue[0]);
      }

    }
    else if ((pMsg->method == ATT_WRITE_RSP)  ||
             ((pMsg->method == ATT_ERROR_RSP) &&
              (pMsg->msg.errorRsp.reqOpcode == ATT_WRITE_REQ)))
    {

      if (pMsg->method == ATT_ERROR_RSP)
      {
        Display_printf(dispHandle, 0, SP_NVS_DEBUG, "Write Error %d", pMsg->msg.errorRsp.errCode);

      }
      else
      {
        // After a succesful write, display the value that was written and
        // increment value
        Display_printf(dispHandle, SP_NVS_DEBUG, 0, "Write sent: %d", charVal);
      }

      tbm_goTo(&mrMenuPerConn);
    }
    else if (connList[connIndex].discState != BLE_DISC_STATE_IDLE)
    {
      multi_role_processGATTDiscEvent(pMsg);
    }
  } // Else - in case a GATT message came after a connection has dropped, ignore it.


  // Free message payload. Needed only for ATT Protocol messages
  GATT_bm_free(&pMsg->msg, pMsg->method);

  // It's safe to free the incoming message
  return (TRUE);
}

If I write a 0x04 to the characteristic Value CUSTOM_SERV6_UUID via the SimpleLink iOS app it works perfectly, but not if I do it from the multi_role -> multi_role.

I'm pretty sure I have a mistake there, I noticed that everything is very well explained, but I think the information how a GATT Client operates is very minimal and the past questions in the forum are not a big help.

Thanks in advance.


Kind Regards,

SPEEDBIRD

LAUNCHXL-CC2640R2: CC2640R2 Hang when posting events

$
0
0

Part Number: LAUNCHXL-CC2640R2

This issue appears to be related to the issue linked, but the thread was closed.  I am running a modified version of the Simple Serial Socket Server application and am encountering a hang. I have some additional information made from adding some bread-crumbs to the program to track what was going on when the hang occurs. 

The symptom is sometimes a hang in cryptoTransactionPoll, but it looks like the OS is attempting a context switch during an i2c interrupt.

The sequence of events  appears to be:

I2C Slave IRQ -> Application calls to add the received i2c data to a message ->  Message placed on a queue using the List_put API ->   Event_post to notify the SerialSocketServer task  to check message queue.

The SP is pointing to a value inside the ICALL_taskEntry task stack, rather than CSTACK. The BIOS Scan for errors shows a SP outside stack! message, but I believe this is due to the SP being set to an area in the ICALL_task area during the I2C interrupt. The CSTACK and all hardware stacks appear to have plenty of margin (CSTACK  has 0x480 bytes set to the fill pattern at the base)  

When the debugger halts the application after the hang, the IPSR is 0x11, indicating the I2C interrupt.

The SP register is set to a value inside the ICall_taskEntry stack.

The breadcrumbs indicate the Event_Post function was called but didn't return back to the irq context.  

The callstack from the debugger shows LL_ENC_EncryptMessage -> cryptoTransactionExecute->cryptoTransactionPoll

The SyncEvent for the SSSS task returned from ICall_registerApp and passed to Event_Post does not appear to be corrupted ( still at the same value as when it gets registered ).

Code added to ICALL_Malloc and ICALL_Free to did not find any allocations or frees outside of the heap range.

This thread https://e2e.ti.com/support/legacy_forums/embedded/tirtos/f/355/p/195796/698945 indicates that Event_post can be called from an interrupt as long as that interrupt is registered(It is registered via I2C_IntRegister) .  Additionally, the registered irq handler is not marked as __interrupt. 

Does something else need to be done with the priority to prevent switching during the execution of the I2C interrupt? Is there anything else that could explain this behavior?

I2C Code snippets:


static void setupI2CSlave(void)
{
I2CSlaveInit(I2C0_BASE, I2C_SLAVE_ADDRESS);
I2CSlaveEnable(I2C0_BASE);

I2CIntRegister(I2C0_BASE, I2CIntHandler);

I2CSlaveIntEnable( I2C0_BASE, I2C_ALL_IRQ_MASK );
}



void I2CIntHandler(void)
{
uint32_t irqStatus = I2CSlaveIntStatus(I2C0_BASE, true);

if( irqStatus & I2C_SLAVE_INT_START)
{
i2c_startIrqHandler();
}
if( irqStatus & I2C_SLAVE_INT_DATA)
{
i2c_dataIrqHandler();
}
if( irqStatus & I2C_SLAVE_INT_STOP)
{
i2c_stopIrqHandler();
}

// Check Master Irq
if(I2CMasterIntStatus( I2C0_BASE, true ))
{
i2c_masterIrqHandler();
}
i2cIrqState = 0;
}

CC2642R: Unified NPI Simple Network Processor Example Project

$
0
0

Part Number: CC2642R

I cannot seem to find the Simple Network Processor example project for UNPI in the CC13x2_CC26x2 3.30 SDK.  Does it exist?


Thanks,

Stuart

CC2564: Which RF tests are recommended for manufacturing test ?

$
0
0

Part Number: CC2564

Hi,

Which RF test are recommended for manufacturing test ?

Any special equipment ? License ?

Thank you

David DLC

TPS82085: STEP file inquiry

$
0
0

Part Number: TPS82085

Hi,

Could you please provide me with the step file for the components listed below (I need the for my power circuitry),

TPS82085

TPS7A8300

TPS82130

TPS7A330

Regards

Samaneh

BQ21040: Add NTC resistor to battery pack

$
0
0

Part Number: BQ21040

Hi to all, I would like to use BQ21040 to charge LiPo battery.
Previous battery I used had internal NTC resistor (so 3 wires), then batteries are not available, then I had to use simple (2 wires) battery pack.
It's reported BQ21040 uses 10 kOhm NTC: is it safe mount 0805 case NTC resistor on PCB, on direct contact to 18650 battery case?
Also talking about temperature: is it safe keep maximum charge current to 500mA in a sealed enclosure for outdoor portable device or should I go down to 250mA?
Thanks.


LP8867-Q1: Enable/Disable signal rail LEDs on the go

$
0
0

Part Number: LP8867-Q1

Hi, 

My design goal with LP8867 is to be able to enable or disable individual LED rails on the go, with fault signal properly functioned. I have following design idea and would like some feedback:

- To disable a rail LEDn, disconnect the rail without tying OUTn to GND, and send a 10us reset signal to EN pin to clear the fault. 

- To enable a rail LEDn, connect the rail and send 500us reset signal to EN pin. 

- My questions is that not tying OUTn to GND is against the datasheet but I'm not sure if it creates a real problem in the long run.

Let me know if there is any concerns with this design or if you have better suggestions.

Thanks,

Borui

cc3200 launch pad

$
0
0

I am working on CC3200 simple link wifi launch pad  and I am using Energia software for code compile and load  but I am facing problem  while loading program is that  the boot loader is failed. Can i revive my board and how to do that

BQ27750: Communication failure after programming

$
0
0

Part Number: BQ27750

Hi,

We are trying to program a BQ27750 using bqstudio, EV2400, and .srec, .df.fs, and gm.fs files provided by some colleagues. We placed the device in unsealed mode, flashed the .srec file - no errors, then flashed the df.fs file. There were no errors reported, but bqstudio lost communication with the device. We power cycled and now there seems to be intermittent communication. It sometimes reports reasonable values, such as 20 deg for the temperature reading, but sometimes it reports values like 8192 mA of current, 200059 mV battery voltage (there's no battery connected), -273.5 degC, etc. We do see pulses on the TS line every 500ms, which suggests the firmware is running. We are not able to reprogram it again -  we get errors saying "no acknowledge from device." We also periodically see "no acknowledge from device" when trying to refresh the register values.

If the readings from the gauge are to be believed, it seems to be sealed (SEC1 and 0 both 1). When we try to unseal it, a popup appears asking for a key, which is pre-populated with 36720414. We press "ok," but the values of SEC0/1 don't change.

Here are the contents of the df.fs file:

;--------------------------------------------------------
;Verify Existing Firmware Version
;--------------------------------------------------------
W: AA 3E 02 00
C: AA 3E 02 00 17 50 00 04
;--------------------------------------------------------
;Unseal device
;--------------------------------------------------------
W: AA 00 14 04
W: AA 00 72 36
W: AA 00 FF FF
W: AA 00 FF FF
X: 1000
;--------------------------------------------------------
;Go To ROM Mode
;--------------------------------------------------------
W: AA 00 00 0F
X: 1000
;--------------------------------------------------------
;Data Block
;--------------------------------------------------------
W: 16 11 DE 83
X: 200
C: 16 14 FF FF
;--------------------------------------------------------
;Execute Flash Code
;--------------------------------------------------------
W: 16 08 11
X: 4000

CCS/TMS320F28379D: What does the next line mean: isTargetManual value="true"?

$
0
0

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

For my project, the .ccsproject file contents are:

<?xml version="1.0" encoding="UTF-8" ?>
<?ccsproject version="1.0"?>
<projectOptions>
 <ccsVersion value="7.2.0"/>
 <deviceVariant value="TMS320C28XX.TMS320F28377D"/>
 <deviceFamily value="C2000"/>
 <deviceEndianness value="little"/>
 <codegenToolVersion value="16.9.3.LTS"/>
 <isElfFormat value="false"/>
 <linkerCommandFile value="2837x_RAM_lnk_cpu1.cmd"/>
 <rts value="libc.a"/>
 <createSlaveProjects value=""/>
 <templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate,"/>
 <filesToOpen value="main.c,"/>
 <isTargetManual value="true"/>
 <connection value="common/targetdb/connections/TIXDS100v3_Dot7_Connection.xml"/>

What does this line mean: <isTargetManual value="true"/>?

AMC1301: Internal max frequency

$
0
0

Part Number: AMC1301

Hello,

Could you please tell me the maximum internal frequency of the AMC1301DWVR ? < or > 108MHz ?

Indeed, the frequency range of EMC test for my board dépends on that maximum frequency that I do not manage to find in the datasheet.

Thank you for your support.

Best regards,

IWR6843: regarding the out of box SDK demo

$
0
0

Part Number: IWR6843

Hi,  The mmwave SDK out of box demo for the IWR6843 EVM consists of two versions that is one is by using the on chip DSP and HWA (on-chip Hardware Accelerator) which is supported by IWR6843ISK.  The other one is just by using the HWA(on-chip Hardware Accelerator) supported by IWR6843ISK and IWR6843AOPEVM.  May i know how these two different software versions of the out of box SDK influence the output of the sensor.

The out of box demo for the IWR6843ISKODS is a point cloud visualizer through which the output of the sensor can be visualized in the zone occupancy visualizer lab GUI. May I know why isn't their a SDK for the IWR6843ISKODS which enables visualization of the output in the web-based mmWave Demo Visualizer.

AM5728: C66x Opus 1.3.1 codec support


DS90LV110T: Driving two DS90LV110T simultaneously with minimal lag.

$
0
0

Part Number: DS90LV110T

Hello,

We are designing a PCB and need to have two of these parts essentially in parallel in order to have enough outputs.

What we are struggling with is how to feed two of the parts such that we do not (or lessen as much as possible) any lag between the two sets of inputs.

We would like one part 1/3 of the way down the PCB and the other 2/3 whereas the source is in the upper 1/3.

Any help would be appreciated.

CCS/TMS320C6678: SRIO : doorbell packets and doorbell interrupts

$
0
0

Part Number: TMS320C6678

Tool/software: Code Composer Studio

Hello,

I studied 3 example projects of SRIO:

example a) SRIO_LpbkDioIsr_evmc6678_C66BiosExampleProject

example b) SRIO_Loopback_evmc6678_C66BiosTestProject

example c) SRIO_TputBenchmarking_evmc6678_C66TestProject

I designed an application using example c which operates in polling mode. In my application, I use only one core of c6678 and I send packets and receive them on same core.

I can send DIO packets (such as NWRITE and NREAD) as well as message passing on polling mode.

Now, I want to send some NWRITE/NREAD packets using SOCKET_A and receive them using SOCKET_B (in same core). After that, for showing end of transmission, I want to send doorbell packets and receive them in interrupt mode. 

My questions are:

1- Can I send/receive DIO packets (such as NWRITE and NREAD) in polled mode while send/receive doorbell packets in interrupt mode?

2- In DIO packets, when I want use polled mode (or interrupt mode), should both send and receive operates in polled mode ( or interrupt mode)? Is it possible both send and receive operates in different modes?

3- If I want send doorbell packets and receive them in interrupt mode, should I program the accumulator? or accumulator is used only to receive message passing packets?

4- I want to send doorbell packet on SOCKET_A and receive it on SOCKET_B in interrupt mode (while SOCKET_A and SOCKET_B are in same core) . Is it possible? If yes, what should I do to setup doorbell interrupts? Is there any example code for doorbell interrupts?

Best Regards,

Mohammad

CCS/AM5728: EVM AM572x M4 second core failure

$
0
0

Part Number: AM5728

Tool/software: Code Composer Studio

I am using the AM572x EVM and have an M4 targeted SMP application that is intended to run on both available cores.

When I try to run the application on one of the dual core M4s, the first core (Cortex_M4_IPU1_C0) runs as expected but the second (Cortex_M4_IPU1_C1) fails (see GEL log below):

Am I missing a required step to enable the second core?

Regards,

Victor

~

Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
IcePick_D: GEL Output: Ipu RTOS is released from Wait-In-Reset.
IcePick_D: GEL Output: Ipu SIMCOP is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD C66 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT1 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT2 is released from Wait-In-Reset.
Cortex_M4_IPU1_C1: Can't Run Target CPU: (Error -1268 @ 0x1090001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.1.0.00007)

TMS570LS0432: mibspi configuration for tms570ls0432 launchpad

$
0
0

Part Number: TMS570LS0432

Hi,

I am using mibspi peripheral. I want to set the SPCLK frequency as 5MHz and CS frequency as 250kHz. I am new to hercules, could you please help me with the settings I should be doing on Halcogen. I saw the demo videos that are on the site. But the baudrate that I set for data format doesn't match with what I see on oscilloscope. Thanks in advance

AM3352: Linux/AM3352 Bitbake error for arago-tiny-image-1.0-r0 do_image_ubi

$
0
0

Part Number: AM3352

Hi

I followed the Processor SDK Linux user guide in the website ==> (Using the snapshot of the source packages in Processor SDK release) , and run the following commands:

1) For AM3352 without SGX,  I inserted the following two command at the bottom of conf/local.conf

   MACHINE_FEATURES_remove="sgx"

   PACKAGECONFIG_remove="wayland-egl"

2) Run commands

After downloading all arago source packages from TI servers, I run the build commands :

$ . conf/setenv
$ export TOOLCHAIN_PATH_ARMV7=/(our SDK path)/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf
$ export TOOLCHAIN_PATH_ARMV8=/(our SDK_path)/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu
$ MACHINE=am335x-evm bitbake arago-core-tisdk-image

However, it report ERROR while compiling, the compile fail log are listed below, we mark the error message with red color.

Can you please advise what's problem?

The compile fail log
=============================================================================
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
Loading cache: 100% |#######################################################################################| Time: 0:00:02
Loaded 4697 entries from dependency cache.
WARNING: No recipes available for:
  /home/ym-pc/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_2.0.0.bbappend
  /home/ym-pc/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/move-base_1.12.14.bbappend
  /home/ym-pc/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/rotate-recovery_1.12.14.bbappend
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime python-bson (python-bson, python-pymongo)
Consider defining a PREFERRED_RPROVIDER entry to match python-bson

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-linux-gnueabi"
MACHINE              = "am335x-evm"
DISTRO               = "arago"
DISTRO_VERSION       = "2019.05"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-processor-sdk   = "HEAD:e5b633c0aa6d924ab6bea15906e3790c01c86633"
meta-ros             = "HEAD:72068b17e4192b51e09c8dc633805a35edac8701"
meta-arago-distro    
meta-arago-extras    = "HEAD:9373674c699c8ad98f8b6b3eac45473448f55e94"
meta-browser         = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-qt5             = "HEAD:1520d5b2b2beec5e1c3209d3178219e93ef08bca"
meta-virtualization  = "HEAD:bbc38dc9d6d02e73c08df289bb22a292c2264e9b"
meta-networking      
meta-python          
meta-oe              
meta-gnome           
meta-multimedia      
meta-filesystems     = "HEAD:9b3b907f30b0d5b92d58c7e68289184fda733d3e"
meta-ti              = "HEAD:28a2f128fbadd37463060eb5ee40c7c9a47cc530"
meta-linaro-toolchain
meta-optee           = "HEAD:b30036d4ef7ce9fe746833fc54de6ac7b0e00638"
meta                 = "HEAD:f162d5bfe6eaeca24f441c83c87252c8d05744fc"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:51
Sstate summary: Wanted 473 Found 0 Missed 473 Current 6085 (0% match, 92% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: arago-tiny-image-1.0-r0 do_image_ubi: Function failed: do_image_ubi (log file is located at /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/temp/log.do_image_ubi.3463)
ERROR: Logfile of failure stored in: /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/temp/log.do_image_ubi.3463
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 72248.800000 = 55576 * 1.300000
| DEBUG: 72248.800000 = max(72248.800000, 65536)[72248.800000] + 1
| DEBUG: 72249.000000 = int(72248.800000)
| DEBUG: 72249 = aligned(72249)
| DEBUG: returning 72249
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/mtd/mtd-utils_git.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['cross-localedef-native', 'mklibs-native', 'depmodwrapper-cross', 'opkg-utils-native', 'mtd-utils-native', 'qemuwrapper-cross', 'ldconfig-native', 'update-rc.d-native', 'opkg-native', 'prelink-native', 'pigz-native', 'makedevs-native', 'pseudo-native', 'xz-native', 'quilt-native', 'automake-native', 'gnu-config-native', 'libtool-native', 'autoconf-native', 'systemd-systemctl-native', 'debianutils-native', 'openssl-native', 'qemu-native', 'shadow-native', 'gettext-minimal-native', 'kmod-native', 'lzo-native', 'util-linux-native', 'zlib-native', 'e2fsprogs-native', 'acl-native', 'pkgconfig-native', 'nss-native', 'libsolv-native', 'libarchive-native', 'elfutils-native', 'binutils-native', 'texinfo-dummy-native', 'm4-native', 'dtc-native', 'pixman-native', 'glib-2.0-native', 'alsa-lib-native', 'python3-native', 'gtk-doc-native', 'ncurses-native', 'attr-native', 'sqlite3-native', 'nspr-native', 'cmake-native', 'ninja-native', 'rpm-native', 'expat-native', 'bzip2-native', 'flex-native', 'libpng-native', 'util-macros-native', 'libffi-native', 'gettext-native', 'libpcre-native', 'gdbm-native', 'readline-native', 'curl-native', 're2c-native', 'db-native', 'dbus-native', 'popt-native', 'file-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_ubi
| ubinize: error!: cannot stat "/home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/deploy-arago-tiny-image-image-complete/arago-tiny-image-am335x-evm-20191015150730.rootfs.ubifs" referred from section "ubifs"
|          error 2 (No such file or directory)
| WARNING: /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/temp/run.do_image_ubi.3463:1 exit 255 from 'ubinize -o /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/deploy-arago-tiny-image-image-complete/arago-tiny-image-am335x-evm-20191015150730${vname}.rootfs.ubi ${ubinize_args} ubinize${vname}-arago-tiny-image-am335x-evm-20191015150730.cfg'
| ERROR: Function failed: do_image_ubi (log file is located at /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/arago-tiny-image/1.0-r0/temp/log.do_image_ubi.3463)
ERROR: Task (/home/ym-pc/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-tiny-image.bb:do_image_ubi) failed with exit code '1'
ERROR: tisdk-docker-rootfs-image-1.0-r0 do_image_ubi: Function failed: do_image_ubi (log file is located at /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/temp/log.do_image_ubi.3460)
ERROR: Logfile of failure stored in: /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/temp/log.do_image_ubi.3460
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 949202.800000 = 730156 * 1.300000
| DEBUG: 949202.800000 = max(949202.800000, 65536)[949202.800000] + 1
| DEBUG: 949203.000000 = int(949202.800000)
| DEBUG: 949203 = aligned(949203)
| DEBUG: returning 949203
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', '/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-devtools/mtd/mtd-utils_git.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/ym-pc/tisdk/sources/oe-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['cross-localedef-native', 'depmodwrapper-cross', 'opkg-utils-native', 'qemuwrapper-cross', 'ldconfig-native', 'opkg-native', 'prelink-native', 'makedevs-native', 'pseudo-native', 'xz-native', 'mklibs-native', 'mtd-utils-native', 'update-rc.d-native', 'pigz-native', 'autoconf-native', 'quilt-native', 'automake-native', 'libtool-native', 'gnu-config-native', 'systemd-systemctl-native', 'kmod-native', 'qemu-native', 'shadow-native', 'nss-native', 'libsolv-native', 'libarchive-native', 'pkgconfig-native', 'elfutils-native', 'binutils-native', 'gettext-minimal-native', 'debianutils-native', 'openssl-native', 'lzo-native', 'util-linux-native', 'zlib-native', 'e2fsprogs-native', 'acl-native', 'm4-native', 'texinfo-dummy-native', 'python3-native', 'gtk-doc-native', 'dtc-native', 'pixman-native', 'glib-2.0-native', 'alsa-lib-native', 'sqlite3-native', 'nspr-native', 'cmake-native', 'ninja-native', 'rpm-native', 'expat-native', 'bzip2-native', 'flex-native', 'ncurses-native', 'attr-native', 'gdbm-native', 'readline-native', 'libpng-native', 'util-macros-native', 'libffi-native', 'gettext-native', 'libpcre-native', 'curl-native', 're2c-native', 'db-native', 'dbus-native', 'popt-native', 'file-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_ubi
| ubinize: error!: cannot stat "/home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/deploy-tisdk-docker-rootfs-image-image-complete/tisdk-docker-rootfs-image-am335x-evm-20191015150730.rootfs.ubifs" referred from section "ubifs"
|          error 2 (No such file or directory)
| WARNING: /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/temp/run.do_image_ubi.3460:1 exit 255 from 'ubinize -o /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/deploy-tisdk-docker-rootfs-image-image-complete/tisdk-docker-rootfs-image-am335x-evm-20191015150730${vname}.rootfs.ubi ${ubinize_args} ubinize${vname}-tisdk-docker-rootfs-image-am335x-evm-20191015150730.cfg'
| ERROR: Function failed: do_image_ubi (log file is located at /home/ym-pc/tisdk/build/arago-tmp-external-arm-toolchain/work/am335x_evm-linux-gnueabi/tisdk-docker-rootfs-image/1.0-r0/temp/log.do_image_ubi.3460)
ERROR: Task (/home/ym-pc/tisdk/sources/meta-processor-sdk/recipes-core/images/tisdk-docker-rootfs-image.bb:do_image_ubi) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17216 tasks of which 15988 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/ym-pc/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-tiny-image.bb:do_image_ubi
  /home/ym-pc/tisdk/sources/meta-processor-sdk/recipes-core/images/tisdk-docker-rootfs-image.bb:do_image_ubi
Summary: There were 6 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.



the error log file log.do_image_ubi.3460 and log.do_image_ubi.3463 are attached.

(Please visit the site to view this file)



(Please visit the site to view this file)

Viewing all 262198 articles
Browse latest View live


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