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

RTOS/CC2538: Coordinator Device don't accept new devices on network

$
0
0

Part Number:CC2538

Tool/software: TI-RTOS

Hello to all,

I recently have one solution, working in several weeks with 42 devices connected at the same network. Recently I try to add new devices at my netowrk, using the same coordinator devices, but I couldn't add no more devices. The maximum devices that I configure on my coordinator network was 160 devices. 

I used the Packet sniffer to try understand what is wrong with my coordinator and I get the log attached.

As you can see, I detect a suspicious value on the coordinator beacon responses, in "Rtr Capability" and "Device capability". They are both to 0x00 and the normal should be 0x01.

I tried to find in Z-Stack source code the field or function where it get this values, but I can't find it!

Someone knows were coordinator load this values to send in this fileds. It seems that values are stored on Flash because the value is the same even after a reboot device.

The Stack that I'm using is Z-Stack HA 1.2.0.

Best regards


Compiler/MSP430FR5969: No error when attempting to store non-const variables in info memory?

$
0
0

Part Number:MSP430FR5969

Tool/software: TI C/C++ Compiler

I just finished debugging an issue with calibration data that I was storing in info memory. Originally, I had defined them as consts, and they were being stored correctly in info memory (using the #pragma SET_DATA_SECTION(".infoB")). At some point my compiler optimization setting must have gotten cranked up, because they were being optimized out of existence in two source files, but not a third (I can see different optimization settings in my makefile for the different files). Eventually I realized they needed to be modified as "volatile const"s not just consts, and that solved the problem.

But, in debugging the problem I saw some behavior that I don't understand... When I removed the const modifier, so they were just declared variables, they still didn't get written into info memory. This makes sense to me because you wouldn't want to put a variable in protected memory, but why didn't the linker throw an error when it couldn't fulfill the pragma SET_DATA_SECTION request? This is the sort of detail which often leads to the discovery of a bigger bug waiting to bite me, so I'd like to understand the behavior.

Thanks!

Paul

BQ34110: Learning load parameters

$
0
0

Part Number:BQ34110

We plan to use the bq34110 in a high capacity/ high cell count application: 6...12 NiMH cells/ 6...30Ah. Because the maximum power dissipation of the learning load is limited in this application we are looking for the lowest discharge current usable in the learning phase to 1..2% discharge the battery. In the datasheet I only found C/100...C/10 as a general recommendation, but how to determine the optimum value for a certain battery pack?

Another question I have: because in our application the BMS system has to support several types of battery packs it is necessary to adjust the learning load resistance according to the pack type. Is it possible to do it by using a PWM modulated fixed resistor load?  And if yes, what the optimum PWM frequency range would be?   

RTOS/AM5728: evm572x audio example - first bit of I2S sample has random value

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Hi experts!

I changed "MCASP_Audio example" generated for evm572x (I've got beagleboard x15) to use interrupts instead of EDMA. I didn't use "mcasp_drv" but CSL mcasp library (sequences of programming took from TRM). All parameters of I2S-mcasp configuration used are the same as in example.

My problem is that MSB has random value - it can be see on the picture attached: (this is sinusoidal signal generated on the PC sound card and connected to board input)

  

(As U2 is used) I imagine that middle part of samples are with correct values. So samples that are placed near the bottom of the chart should not have '1' on MSB and samples from the top shouldn't have '0' on the first bit.

Have you ever encounter problem like this? Have you any suggestion where to look? I really will appreciate any halp.

Configuration of Codec is the same as in example ("AIC31 drv") with the configuration. My mcasp configuration is below:

void mcasp_init()
{
    //McASPGlobalCtlReset(CSL_DSP_MCASP3_CFG_REGS); //?? while? then set?

    McASPTxReset(CSL_DSP_MCASP3_CFG_REGS); 
    McASPRxReset(CSL_DSP_MCASP3_CFG_REGS); 





    McASPTxFmtI2SSet(CSL_DSP_MCASP3_CFG_REGS,
                     32U,
                     32U,
                     MCASP_TX_MODE_NON_DMA);

    McASPRxFmtI2SSet(CSL_DSP_MCASP3_CFG_REGS,
                     32U,
                     32U,
                     MCASP_RX_MODE_NON_DMA);

    McASPTxFmtMaskSet(CSL_DSP_MCASP3_CFG_REGS,
                      0xFFFFFFFF);
    McASPRxFmtMaskSet(CSL_DSP_MCASP3_CFG_REGS,
                      0xFFFFFFFF);


    McASPTxFrameSyncCfg(CSL_DSP_MCASP3_CFG_REGS,
                        0x2, // 2 slots i2s
                        MCASP_TX_FS_WIDTH_WORD,
                        MCASP_TX_FS_INT_BEGIN_ON_FALL_EDGE);

    McASPRxFrameSyncCfg(CSL_DSP_MCASP3_CFG_REGS,
                        0x2, // 2 slots i2s
                        MCASP_RX_FS_WIDTH_WORD,
                        MCASP_RX_FS_INT_BEGIN_ON_FALL_EDGE);

    //tx clock
    McASPTxClkCfg(CSL_DSP_MCASP3_CFG_REGS,
                  MCASP_TX_CLK_INTERNAL,
                  0x13, // HCLK /20 -> XCLK
                  0x7); // aux_clk / 8
    McASPTxClkPolaritySet(CSL_DSP_MCASP3_CFG_REGS,
                          MCASP_TX_CLK_POL_RIS_EDGE); // 1 bit shifted so rising
    McASPTxHFClkPolaritySet(CSL_DSP_MCASP3_CFG_REGS,
                            MCASP_TX_HI_FREQ_CLK_NO_INVERT);


    //rx clock
    McASPRxClkCfg(CSL_DSP_MCASP3_CFG_REGS,
                  MCASP_RX_CLK_INTERNAL,
                  0x13, // HCLK /20 -> RCLK
                  0x7); // aux_clk / 8

    McASPRxClkPolaritySet(CSL_DSP_MCASP3_CFG_REGS,
                          MCASP_RX_CLK_POL_RIS_EDGE);


    McASPRxHFClkPolaritySet(CSL_DSP_MCASP3_CFG_REGS,
                            MCASP_RX_HI_FREQ_CLK_NO_INVERT);

    //sync -> so rx functions before are bypassed, on evm rx-clk pins are not present
    McASPTxRxClkSyncEnable(CSL_DSP_MCASP3_CFG_REGS);



    McASPTxTimeSlotSet(CSL_DSP_MCASP3_CFG_REGS,
                       0x3); //?? 2
    McASPRxTimeSlotSet(CSL_DSP_MCASP3_CFG_REGS,
                       0x3); //?? 2



    McASPSerializerTxSet(CSL_DSP_MCASP3_CFG_REGS,
                         0);

    McASPSerializerRxSet(CSL_DSP_MCASP3_CFG_REGS,
                         1);


    McASPPinMcASPSet(CSL_DSP_MCASP3_CFG_REGS,
                     MCASP_PIN_AXR(0) | MCASP_PIN_AXR(1) |
                     MCASP_PIN_AFSX |
                     MCASP_PIN_ACLKX); //??

    McASPPinDirOutputSet(CSL_DSP_MCASP3_CFG_REGS,
                         MCASP_PIN_AXR(0) |
                         MCASP_PIN_AFSX |
                         MCASP_PIN_ACLKX);

    McASPPinDirInputSet(CSL_DSP_MCASP3_CFG_REGS,
                        MCASP_PIN_AXR(1));


    McASPTxClkStart(CSL_DSP_MCASP3_CFG_REGS,
                    MCASP_TX_CLK_INTERNAL);
    McASPRxClkStart(CSL_DSP_MCASP3_CFG_REGS,
                    MCASP_RX_CLK_INTERNAL);



    McASPTxIntEnable(CSL_DSP_MCASP3_CFG_REGS,
                     MCASP_TX_DATAREADY); // are you sure

    //McASPTxIntEnable(CSL_DSP_MCASP3_CFG_REGS,
    //                 MCASP_TX_DATAREADY); // are you sure


    // clear serializers and status regs
    McASPTxSerActivate(CSL_DSP_MCASP3_CFG_REGS);
    McASPRxSerActivate(CSL_DSP_MCASP3_CFG_REGS);

    // prevent overrun
    McASPTxBufWrite(CSL_DSP_MCASP3_CFG_REGS,
                    0,
                    0x0);

    while(McASPTxStatusGet(CSL_DSP_MCASP3_CFG_REGS) & MCASP_TX_STAT_DATAREADY);

    // frame sync generator and state machines
    McASPTxEnable(CSL_DSP_MCASP3_CFG_REGS);
    McASPRxEnable(CSL_DSP_MCASP3_CFG_REGS);
}

TINA/Spice/TINA-TI: How to create power component model in TINA

$
0
0

Part Number:TINA-TI

Tool/software:TINA-TI or Spice Models

Hi TINA team,

My customer is using TINA in power designs and they would like to learn how to crease the power components model like transformers or inductor, like T2 in UCC28950 and UCC28951 TINA-TI Startup Reference Design which has the mutli-winding transformer. 

Is there any training video or document to teach my customer how to create such components?

Thank you.

Best Regards,

Wei-Hao

CC2652R: Uart to BLE on the CC2652R

$
0
0

Part Number:CC2652R

Hello,

I found this TIDA Stack

www.ti.com/.../TIDC-SPPBLE-SW-RD

which presents a UART to BLE solution.
I was wondering if I can implement this using the CC2652R with a UART connection to an usual MCU?

So my goal is to sent commands from the MCU over the UART and use the TIDA code to sent it via BLE to another MCU.


Looking forward to hear your feedback!

Thanks!
Best Regards

Mat

CCS/SIMPLELINK-CC26X2-SDK: SDFatFS_init - Undefined Symbols

$
0
0

Part Number:SIMPLELINK-CC26X2-SDK

Tool/software: Code Composer Studio

Hello Ti Experts,

I have a similar problem to the one described in the following post:

e2e.ti.com/.../666543

I am attempting to implement the SDFatFS but I am having issues with the following undefined symbols:

 undefined      first referenced                                                                                   
  symbol            in file                                                                                        
 ---------      ----------------                                                                                   
 SDFatFS_config C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/drivers/lib/drivers_cc26x2_v1.aem4f<SDFatFS.oem4f>
 SDFatFS_count  C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/drivers/lib/drivers_cc26x2_v1.aem4f<SDFatFS.oem4f>

I have already copied SDFatFs files and ff files directly into the project, as was suggested by the post I provided the link to.

Any ideas on how to remedy this situation?

Thanks

- Stephen P. 

 

RTOS/AM5728: Which example project would be best to use for communicating via the RS-485 port on the AM5728

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

I would like to prototype communicating via the J39 RS-485 jumpers on the idkAM5728 board. I see there is source code in the path 

C:\ti\pdk_am57xx_1_0_13\packages\ti\board\diag\rs485_uart

but I haven't been able to create a CCS project with the files in that folder that builds without errors.

Is there an existing example PDK project that would be the most appropriate to "gut" and add the RS-485 diag src files?


LAUNCHXL-CC2640R2: HOW TO PROGRAM THE CC2640R2FF

$
0
0

Part Number:LAUNCHXL-CC2640R2

HOW TO TAKE INPUT FROM SENSOR IN CC2640R2F?

Is this correct way to program the CC2640R2F MCU ?

  By taking the reference from the TECHNICAL REFERENCE MANUAL .

I

wrote code make DIO0 as inout mode as open drain?

i make DIO0 as gpio input?

Using INPUT AND OUTPUT CONTROLLER registers?

Can i use particular bit field of the register?

IOC:IOCCFG0.POTRID =0X000000;

IOC:IOCFG0.IOMODE=0X100;

IOC:IOCFG0.WU_CFG=0X00;

IOC:IOCFG0.HYST.EN=0X1;

.......

Could i run this code in CODE COMPOSER STUDIO.

TUSB9261: TUSB9261 - support for UASP?

$
0
0

Part Number:TUSB9261

Hello,

your website states that the TUSB9261 implements the "USB attached SCSI protocol" (UASP), but there is a topic in this forum that this features was deactivated in a newer firmware (1.0.5).

So is this feature dead forever or will it come back at some time?

Best regards,

Julian

TSW14DL3200EVM: TSW14DL3200EVM

$
0
0

Part Number:TSW14DL3200EVM

Hi, There was a discussion between TI customer and support regarding "... ADC12DL3200EVM, TSW14DL3200EVM, #adc12dl3200, #Firmware, # Development, #ADC, #FPGA..." ending on Jul 19, 2018 7:50 PM In reply to adeel asif by TI support member Jim s.

My question is similar in nature and would like to see if the solution was made available as stated and would like to get it.  The response, on Jul 19, 2018" from Jim ended as follows:

"Adeel,

This firmware will not be available for at least another 30 days.

Regards,

Jim s"

Is it available now and can we get it.  To make it more clearer, if there is a simpler solution, what we needed is to use some form of programmatic control to collect|send data from the ADC capture board. A DotNET dll or some API would do just fine if we can get it, not necessarily the FPGA code...  An example would be ADIs AD9295 Visual Analog that does have a GUI control just like the HSDC Data Converter Pro GUI but also has DotNET dlls available to create wrappers and get data from the capture board from test programs like LabVIEW.

We are ready to order the 1st kit pending a response for it.  Please get back to us asap.

Regards,

Mesfin Teshome

Teledyne Scientific & Imaging, LLC

1049 Camino Dos Rios

Thousand Oaks, CA 91360

Mesfin.teshome@teledyne.com

www.teledyne-si.com

Office:805-373-4078, Fax:805-373-4860

TPS53647: OT_FAULT_LIMIT

$
0
0

Part Number:TPS53647

Hello Team

What is the full command set to change the OT_FAULT_LIMIT from the default 125C to 140C or 150C. Customer is asking

Thanks very much,

Faizul Bacchus

CC2640R2F: Bonding fails

$
0
0

Part Number:CC2640R2F

Hy,

I am still struggling with the authentication/bonding. For the moment I do not want to pair/bond nor authenticate. In a previous project with the CC2640 this was no problem, I can connect to the device without entering any bonding information.

Now with the CC2640R2F and sdk_2_30_00_28 I face some issues: Whenever I want to connect from Android to the device it gets disconnected after some 10s with a "GATT CONN TERMINATE LOCAL HOST"

Good device:

None functioning device:

I try to switch off all bonding in my code:

  // Setup the GAP Bond Manager
  {
    uint8_t pairMode = GAPBOND_PAIRING_MODE_NO_PAIRING;
    uint8_t mitm = FALSE;
    uint8_t ioCap = GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT;
    uint8_t bonding = FALSE;
    uint8_t scMode = GAPBOND_SECURE_CONNECTION_NONE;
    uint8_t replaceBonds = FALSE;

    GAPBondMgr_SetParameter(GAPBOND_PAIRING_MODE, sizeof(uint8_t), &pairMode);
    GAPBondMgr_SetParameter(GAPBOND_MITM_PROTECTION, sizeof(uint8_t), &mitm);
    GAPBondMgr_SetParameter(GAPBOND_IO_CAPABILITIES, sizeof(uint8_t), &ioCap);
    GAPBondMgr_SetParameter(GAPBOND_BONDING_ENABLED, sizeof(uint8_t), &bonding);
    GAPBondMgr_SetParameter(GAPBOND_SECURE_CONNECTION, sizeof(uint8_t), &scMode);
    GAPBondMgr_SetParameter(GAPBOND_LRU_BOND_REPLACEMENT, sizeof(uint8_t), &replaceBonds);
  }

What do I need to change in my CC2640R2F project (based on simple peripheral) to get the old behaviour?

Best regards

Harald

MSP430FR5969-SP: M4FR5969SRGZT-MLS external oscillator

$
0
0

Part Number:MSP430FR5969-SP

Hello,

I'd like to know if we can hook a high frequency crystal between PJ.6 and PJ.7 on the MSP430FR5969-SP (specifically the M4FR5969SRGZT-MLS).

There is some confusion as the datasheet for the MSP430FR5969-SP (http://www.ti.com/lit/ds/symlink/msp430fr5969-sp.pdf) has a note on page 15 (terminal PJ.6/HFXIN and PJ.7/HFOUT) about the external oscillator, but state that it is available on MSP430FR595x part only.

On page 2 of the datatsheet for 595x part (http://www.ti.com/lit/ds/symlink/msp430fr5959.pdf) it says the pins are available for BOTH the 596x and 595x.

Thank you

 

 

 

LT1054: positive doubler and inverter

$
0
0

Part Number:LT1054

Can I use the chip to do double from 14 to 24V and -12V using single device?

I see the circuit for positive and negative doubler with one chip in the datasheet, I assume it is probably possible for 2X and -1X with single chip. 

Also, please recommend ways to reduce the ripples. 


TMS320F280049C: Watchdog Timer Module timeout configuration needs to be 1 ms exactly

$
0
0

Part Number:TMS320F280049C

I am using a combination of the watchdog prescaler and predivider to divide down the WDT counter's clock. I require a timeout of 1 ms exactly. Using the predivider set to /8 and prescaler set to /4 gets me to about 820 microseconds, the closest possible to 1 ms on the lower side. Is there any way to configure this timeout to exactly 1 ms?

IWR6843: people count demo time out

$
0
0

Part Number:IWR6843

hi, I'm looking at getting the standard iwr6843 working with the people count demo I'm able to load the .bin successfully(all though unifalsh does not detect the board and I have to manually select the board). I have then moved the sop2 to funcinal mode and power cycled the device. I'm then able to get the GUI config screen up and connect the ports but when i click start a black screen appears and after 30 seconds I'm greeted with this

"

Undefined variable "matlab" or class "matlab.webcam.internal.Utility.enumerateWebcams".

Error in webcamlist (line 25)


Error in setup>popupWebcam_CreateFcn (line 612)


Error in gui_mainfcn (line 95)


Error in setup (line 42)


Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)setup('popupWebcam_CreateFcn',hObject,eventdata,guidata(hObject))


hObject =

UIControl (editUART) with properties:

Style: 'edit'
String: 'COM22'
BackgroundColor: [1 1 1]
Callback: [function_handle]
Value: 0
Position: [0.3046 0.7262 0.2831 0.2857]
Units: 'normalized'

Use GET to show all properties

Opening configuration file mmw_pplcount_demo_default.cfg ...
trackingCfg specifies -6.981317e-01.
GUI specifies 0. 90 will be used for azimuth in cfg.
Sending configuration from mmw_pplcount_demo_default.cfg file to IWR16xx ...

Serial Port Object : Serial-COM22

Communication Settings
Port: COM22
BaudRate: 115200
Terminator: 'LF'

Communication State
Status: open
RecordStatus: off

Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0


flushCfg
dfeDataOutputMode 1
channelCfg 15 5 0
adcCfg 2 1
adcbufCfg 0 1 1 1
profileCfg 0 60.6 30 10 62 0 0 53 1 128 2500 0 0 30
chirpCfg 0 0 0 0 0 0 0 1
chirpCfg 1 1 0 0 0 0 0 4
frameCfg 0 1 128 0 50 1 0
lowPower 0 1
guiMonitor 1 1 0 0
cfarCfg 6 4 4 4 4 16 16 4 4 50 62 0
doaCfg 600 1875 30 1 1 0
SceneryParam -6 6 0.5 6
GatingParam 4 3 2 0
StateParam 10 5 100 100 5
AllocationParam 250 250 0.25 10 1 2
AccelerationParam 1 1 1
trackingCfg 1 2 250 20 52 82 50 90
sensorStart
left wall: -6
R wall: 6
front wall: 6
back wall: 0
------------------
Warning: Unsuccessful read: The specified amount of data was not returned within the Timeout period..
Index exceeds matrix dimensions.

Error in main_pplcount_viz (line 513)

MATLAB:badsubscript

"

any help would be appreciated more than likely my error. 

BQ24075: BQ24075RGTR out of sleep mode

ADS9110: PGIA for ADS9110

RTOS/PROCESSOR-SDK-AM57X: Layer 2 PTP from TI-RTOS SDK 05.01.00.11 with HSR/PRP SDK 01.00.04

$
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 and HSR/PRP SDK 01.00.04. I successfully patched TI-RTOS SDK and compiled HSR and PRP examples (and ping works correctly on both with Redundancy Box).

I need to use TI-RTOS SDK with TI-RTOS timeSync module enabled, but I also need to use HSR and PRP (compilation selective) with their timeSync module (I need only PTP over RAW support (Layer 2 PTP)).

As I see, Layer 2 HSR/PRP PTP and TI-RTOS PTP are almost identical. I'm trying to replace HSR/PRP PTP by TI-RTOS PTP:

  1. I removed timeSync lib, ptpd init and add ti.transport.timeSync module after nimu_icss in the app.cfg file.
  2. I manual patched included timeSync headers in all .c and .h files to PDK timeSync path.
  3. I added icss_timeSync_osal.c file from HSR/PRP SDK to the project to fix its compilation.

But the replacement was not successful (as I see with CCS, it still works after loading, but UART console break in one or two seconds after board startup, board ping does not work).

How can I fix that and use TI-RTOS timeSync with HSR/PRP in my project?

With regards,
Alex

P.S. I rebuilt icss-emac, nimu-icss and timeSync PDK modules after PDK patches applying

Viewing all 262198 articles
Browse latest View live