Quantcast
Channel: Tools
Viewing all 91752 articles
Browse latest View live

Forum Post: RE: function call fails when function address is specified

$
0
0

I did setup the code again and used code to toggle an led. Without  the debugger attached the processor does a soft reset when it is to execute that code...It does not work even though it looks ok.


Forum Post: RE: DSS error while CCS debugging

$
0
0

I appreciate the swift response. I was afraid that might be the case. If possible then, I'd like to be able to execute the script from cmd or to the scripting console. The only real issue I've had so far is that when I try to load from the console, it messes up my directories (there are 2 other js files). This is because I use load(<filename>) with no directory; I have to admit this is a terrible idea for this exact reason. A quick google search didn't come up with an easy way to find the directory of a js file in javascript. Do you know a way to do this? There might also be a method in the DSS API. Thanks Again.

Forum Post: RE: ccs v5.5 windows install fails

$
0
0

Sorry can't use CCS 6.  I need c5500 support. I think that's only supported in CCS v5.5

Forum Post: RE: CCS Eclipse stack trace does not work if stack is in far RAM

$
0
0

I am in the same case as Marc. I am using CCS v 6.0.0.00190 with an msp430f5659 . Iam using an rtos so I have mutliple stacks.

And I have also the debug window "Variables" which shows the local variables but their locations are wrong.

For example if the address of the local variable int i is 0xF09F6 , location will be displayed as 0x0009F6 and it will show the wrong value. In order to see the real value of the variable , I have to read the value of the SP register (which displays the correct value), then I go in the expression tab and I add *(int*)0xF09F6.

It seems the debugger never interpret the upper 8 bits of the SP register for the variables... That is quite annoying.....

Forum Post: Code Composer tconf

$
0
0

I am building a project using Code Composer V6 and I am getting the following:

Invoking: TConf
"/opt/ti/xdctools_3_30_03_47_core/tconf" -b -Dconfig.importPath="/opt/ti/bios_5_41_10_36/packages;/packages;" "../VC5505_CSL_BIOS_cfg.tcf"
/bin/sh: 1: /opt/ti/xdctools_3_30_03_47_core/tconf: not found
gmake: *** [VC5505_CSL_BIOS_cfg.cmd] Error 127
gmake: Target `all' not remade because of errors.

What the heck is going here?

Forum Post: Compiler-agnostic no-init code

$
0
0

I was looking at slau132i.pdf, the "MSP430 Optimizing C/C++ Compiler v 4.3 User's Guide", section 5.11.19 "The NOINIT and PERSISTENT Pragmas".

There, it states to use the same constructs for CCS & IAR, though slightly different variants for C and C++...

However, for gcc, the suggestion is to use:

int x __attribute__((noinit));

However, gcc gives a warning when I use this construct:

'noinit' attribute directive ignored [-Wattributes]

...whereas, the construct I used to always use with gcc

int x __attribute__((section(".noinit")));

...works fine, i.e. places the declared variable in the correct noinit sections as verified by the map files...

Am I missing something?

Forum Post: RE: Launching CCS from Javascript

$
0
0

Thank you for the suggestions, but they do not move me forward.

I had tried running CCSsession.js but:

  1. It does not bring up the CCS GUI. Instead I get a generic "Welcome to Eclipse" window.
  2. This window eventually disappears.
  3. The script sometimes hangs, but usually runs on to TEST SUCCEEDED! and then comes up with a sequence of errors of the form "Job found still running after platform shutdown".

To be clear, what I want to do is the following:

  1. Run a command that:
    1. opens the standard CCS GUI;
    2. selects a ccmxl file;
    3. connects selected processors/cores;
    4. sets some breakpoints (the processors will already have been loaded by this point);
    5. runs the cores;
    6. leaves the CCS GUI running for normal user interaction;
    7. has no forther interaction with this CCS session.
  2. From this point on, the command is of no interest and would stop ideally, but leave CCS running.

In other words, I want to be able to set up an interactive CCS session completely automatically to avoid users having to do the above steps (or equivalents) each time they want to debug a program.


The document "DSS - Launching CCS from DSS" added nothing except a concern by requiring manual intervention to set a breakpoint in the script "because CCS is launched within the same JVM, but on a separate thread and the calling script has no way of knowing when the IDE is loaded". This seems to defeat the whole purpose of the exercise.

Forum Post: RE: CCS Eclipse stack trace does not work if stack is in far RAM

$
0
0

[quote user="Ki-Soo Lee"]yes I have tried that before I asked for the test case.

If not a test case, just a copy of your build options would help.[/quote]The attached project (Please visit the site to view this file) provides a test case. This targets a MSP430FR5969 using CCS v6.0.1 and MSP430 compiler v4.3.3.

All I did was to take a Grace example and edit the linker command file to place the stack in high FRAM2:

[quote]    .stack      : {} > FRAM2 (HIGH)         /* Software system stack             */[/quote]The code runs and can be single stepped in the debugger. The problem is that the stack backtrace is never shown correctly. E.g.:

The current function is shown correctly in the stack backtrace, but the backtrace contains only a single predecessor function which is always incorrectly listed as "0xFF3FFF (no symbols are defined for 0xFF3FFF)".


Forum Post: RE: function call fails when function address is specified

$
0
0

I found the same results, but as a an experiment I made the Release the default re-setup all the compiler and linker parameters. I found the call actually worked and I could set breakpoints within the disassembly window. Other portions of the IDE still reported the code did not exist, but the program did break and did execute correctly. I believe the issue is in the CCSv6 IDE. The code is properly compiled and linked.

Forum Post: RE: The problem occur when we load data file into ddr

$
0
0

Yuchao,

Your questions are not about a multi-core device hardware or function of the device, so this Keystone Multicore Forum is not the right place for these questions. I will ask a Moderator to move this thread to the TI Compiler Forum where these questions can be more appropriately addressed.

In that new location, it will help if you are clear to them about the TI DSP device you are using and the version of the compiler and CCS that you are using. They will likely need a small test case project that you can demonstrate this behavior - please create the test case project, verify it fails as expected, then export it to a zip file and attach the zip file to your clarifying post.

1. From only what you have listed here, it is not obvious that you have done the DATA_SECTION correctly or that the #include syntax is correct. By the way, I have never seen anyone use #include the way you have used it here. That is clever, assuming it does not contribute to this problem.

2. Have you checked if the fread function has a limit on the arguments? Have you tried setting the fopen type to "rb" for 'read'+'binary'?

You might also try reducing the number of floats read per call to fread and use a loop to read in all the values.

Regards,
RandyP

Forum Post: RE: CCS5.4.0.00091_linux bios_mcsdk problem

$
0
0

[quote user="Mark Honman"]The basic advice to remove the ws=win32 flags from the feature.xml and plugin.xml files (for mcsdk and pdk) as per [url=http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/297968/1040381.aspx#1040381]this post[/url] is correct.
However Eclipse seems to maintain a private cache of information from these files (I haven't found it yet!) and thus if they are corrected after a failed installation attempt Eclipse does not pick up the changes. [/quote]To clear the Eclipse cache run "ccstudio -clean".

I found the following helped with mcsdk_2_01_02_06 with CCS v6.0.1 under Linux:

1) Edit the mcsdk_2_01_02_06 .xml files to remove all the ws="win32"

2) Run "ccstudio -clean"

3) Scanning the mcsdk_2_01_02_06 products then removed the errors of the form:

[quote]Operation details   Cannot complete the install because some dependencies are not satisfiable     com.ti.biosmcsdk.pdk.C6678L.p2.feature.group [1.1.2.6] cannot be installed in this environment because its filter is not applicable.[/quote]

However, the NDK still won't install with the following error reported:

[quote]An error occurred while collecting items to be installed
  session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
  Problems downloading artifact: osgi.bundle,com.ti.rtsc.NDK.product_2.21.1.38,2.21.1.38.
    File has invalid content:/tmp/signatureFile2599926968597614314.jar
      Invalid content:plugin.xml
      The file "plugin.xml" in the jar "/tmp/signatureFile2599926968597614314.jar" has been tampered![/quote]I get the same error trying to install NDK 2.21.1.38 under both Windows and Linux, so must be a different problem (as has already been noted by others in this thread)

Forum Post: RE: Unable to download Code Composer Studio - PLEASE READ

$
0
0

I am having the very same problem here.  First my Lic has expired; try to get and now copy, V6, and all I have had today is problems.  Very frustrating.

Forum Post: MSP430FR5969 Launchpad Evaluation Kit

$
0
0

I really expected the MSP430FR5969 LaunchPad Evaluation Kit to kinda work out of the box.  Well, I can't get it to work...  I get an error box, Error connecting to the target: Unknown device and if I cancel that I get an error box with "Unable to connect to the target."  Sure would be nice if this worked out of the box so I could at least run some example programs....I must be doing something wrong  Suggestions?

It's going to be a long night....might have to convince the customer to goto another processor/manufacturer on Monday.

Forum Post: RE: MSP430 and TIVA C series on same CCS installation

$
0
0

Please explain how to select the licence. I tried to compile to both MSP430G2xxx and Tiva C connected launchpad.

I installed the licence for the 430, and when trying to compile for the Tiva C, the limited code size licence was cancelled.

More then one installation creates other issues, as only the C drive is easily used.

Please give detailed answer.

Thanks

Forum Post: RE: RE: MSP430 and TIVA C series on same CCS installation

$
0
0

Hi Viking,

first of all, please create a new thread.   When you add to an old one you are in danger of it not being noticed/found.

Now to your question.   The easiest way is to have a parallel installation.    The only other possibility is, every time you switch device, to go to Help->Code Composer Studio licensing information and in the upgrade tab running the license setup utility again.

Best regards,

Lisa


Forum Post: RE: assistance flashing binaries created using GreenHills compiler

$
0
0

Chip,

Do the GH tools come with a utility to convert the executable into a standard format for flash programming.  In the TI tools we have something called the hex conversion utility that can convert the output of the TI compiler into various different formats (ASCII-hex, Intel, Motorola, TI...).  If they have such a utility you may be able to run that and then use Uniflash to program.  It is even possible that our utility might work on the GH output but I have not tried that.

Regards,

John

Forum Post: RE: AM335x starterware debug issue

$
0
0

Hi Ki

Thanks for your effort.

Will

Forum Post: Starting CCS V5 with specified JS file or GEL file

$
0
0

Is it possible to start CCS so that it comes up in the state that would be achieved by starting CCS, opening the scripting console, and giving a loadJSFile command with a string provided outside CCS?

Perhaps there is a command option, like:

C:\ti\ccsv5\eclipse\ccstudio.exe -js "C:\random_place\somefile.js"

js:> loadJSFile("C:\random_place\somefile.js");

Failing that, can a similar thing be done using GEL files?

The crucial thing is that there must be no requirement to go into CCS and do anything manually.

Forum Post: RE: Help with c6713 and ccs5 for echo_control and fir4types

Forum Post: help with c6713 adaptnoise_2IN in CCS5 and Windows7

$
0
0

Hi there,

Hi there,

    This semester we got to work with CCS5 for DSK6713 boards.

     I am using CCS v5.2. I have installed the board using the disk provided in the box. was able to successfully upload and run program called sin_8LED provided by disk in the book "Digital Signal Processing and Applications with the C6713 and C6416 DSK". But when I try to run the example of adapt noise_2IN, I find no output.

I added all the required  C files (namely dsk6713init.C, adapnoise_2IN.c, Vector_intr.C) library files(rts6700, csl6713, dsk6713bsl, dsk67xx) & header files (dskc6713.h, dsk6713_aic23.h).

And also changed the the predefined processor as CHIP_6713.

When I build the projects  I do not get any errors just a warning about function declared implicitily.

But after I load the program to the board it does not work.

I have attached the screen shot of my projects below

Here , I have attached the gel and c file of this project,

/*Adaptnoise_2IN.gel Slider for output: "error" signal or (d+n)*/

menuitem "Output_type" 

slider Output_type(1,2,1,1,outtype)  /*incr by 1,from 1 up to 2*/

{

        out_type = outtype;     /*vary type of output*/

 

//Adaptnoise_2IN.c  Adaptive FIR for sinusoidal noise interference

#include"DSK6713_AIC23.h"          //codec-DSK support file

Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate

#define DSK6713_AIC23_INPUT_MIC 0x0015

#define DSK6713_AIC23_INPUT_LINE 0x0011

Uint16 inputsource=DSK6713_AIC23_INPUT_LINE;

#define beta 1E-12              //rate of convergence    

#define N 30                 //# of weights (coefficients)  

#define LEFT 0                        //left channel

#define RIGHT 1                       //right channel

float w[N];                  //weights for adapt filter

float delay[N];                //input buffer to adapt filter 

short output;                     //overall output

short out_type = 1;            //output type for slider

volatileunion{unsignedint uint; short channel[2];}AIC23_data;

 

interruptvoidc_int11()              //ISR

 {                        

  short i;

  float yn=0, E=0, dplusn=0, desired=0, noise=0;   

 

  AIC23_data.uint = input_sample(); //input 32-bit from both channels

  desired =(AIC23_data.channel[LEFT]);//input left channel

  noise = (AIC23_data.channel[RIGHT]); //input right channel

 

  dplusn = desired + noise;         //desired+noise

  delay[0] = noise;                   //noise as input to adapt FIR

   

  for (i = 0; i < N; i++)          //to calculate out of adapt FIR

      yn += (w[i] * delay[i]);       //output of adaptive filter

  E = (desired + noise) - yn;      //"error" signal=(d+n)-yn  

  for (i = N-1; i >= 0; i--)       //to update weights and delays

   {           

      w[i] = w[i] + beta*E*delay[i]; //update weights  

      delay[i] = delay[i-1];       //update delay samples  

   } 

  if(out_type == 1)                       //if slider in position 1

      output=((short)E);      //error signal as overall output 

  elseif(out_type==2)  //if slider in position 2

      output=((short)dplusn);//output (desired+noise)

  output_left_sample(output);       //overall output result

  return;

}

 

 voidmain()

{

  short T=0;                         

  for (T = 0; T < 30; T++)

   {

      w[T] = 0;                       //init buffer for weights

      delay[T] = 0;                   //init buffer for delay samples

   }

  comm_intr();                        //init DSK, codec, McBSP

  while(1);                           //infinite loop

}

Please help me asap.

Thanks and Regards,

Vanitha

Viewing all 91752 articles
Browse latest View live


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