Unable to change the tick time with CB34X netburner.

Discussion to talk about software related topics only.
Post Reply
rameshsatyavaram05
Posts: 6
Joined: Thu Sep 19, 2013 7:12 am

Unable to change the tick time with CB34X netburner.

Post by rameshsatyavaram05 »

Hi,
I am working for a product with Netburner “CB34EX” hardware.
In our project we want to use 5 msec tick time. As per suggesitions I changed “TICKS_PER_SECOND to 200 “ in constants.h file.

Even then I am unable to see the tick time as 5 msec. It is always showing 50 msec.

Could you help us in
1. Do I need to compile the net burner library to change the tick time? What is the procedure to rebuild it?
2. Am I doing wrong method to change the tick time?

Thank you,
Ramesh.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Unable to change the tick time with CB34X netburner.

Post by dciliske »

1. Yes. You need to recompile everything (system, platform, and project).

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
rameshsatyavaram05
Posts: 6
Joined: Thu Sep 19, 2013 7:12 am

Re: Unable to change the tick time with CB34X netburner.

Post by rameshsatyavaram05 »

Hi
Thanks for your mail. Could you help me on how to compile.

I tried "From the NBEclipse pulldown menu, select "Rebuild ALL System Files"".
I recompiled my project.

Still it did not work,

Could you help me on how to do this?

Thank you,
Ramesh.
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Unable to change the tick time with CB34X netburner.

Post by Ridgeglider »

In my experience, I seem to remember that it's necessary to select a project in the left hand project explorer window, then pull down the NBEclipse --> and then one of the Rebuild Menu items. I think this tells Eclipse what platform & project to rebuild files for. Not 100% sure though...
rameshsatyavaram05
Posts: 6
Joined: Thu Sep 19, 2013 7:12 am

Re: Unable to change the tick time with CB34X netburner.

Post by rameshsatyavaram05 »

I tried the same but no luck.

One observation is with out changing any system files if i select "Rebuild modified system files" , it is saying nothing to be done for system files.

But when i changed the tick time in constants.h file and selected " Rebuild modified system files" , it is compiling lot of files .

I recompiled the project but failed to get the tick time to 5 mesc. It still works at 50 msec and shows the macro value "TICKS_PER_SECOND" as 20.

Can any one help on this?

Thank you,
Ramesh.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Unable to change the tick time with CB34X netburner.

Post by rnixon »

Do you have only one installation and have you copied any system files around? Maybe its linking to a different netburner.a lib file than the one you are rebuilding?

Try creating a brand new app wizard program and print out the ticks per second value and see if its any different.
rameshsatyavaram05
Posts: 6
Joined: Thu Sep 19, 2013 7:12 am

Re: Unable to change the tick time with CB34X netburner.

Post by rameshsatyavaram05 »

Now i am able to change the tick time.
To make it work i had to do the followng.

1.Open new project .
2. Change the system files or Change the system file before opening the project.
3. Compile library using "Rebuild all system files" from NBEclipse menu.
4. Add project files.
5. Compile project.

With this procedure i am able to change the tick time.

Thanks for your support.

Ramesh.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Unable to change the tick time with CB34X netburner.

Post by rnixon »

Glad you got it working, but that seems strange. I am able to change it at any time on an existing project, and it works as long as I rebuild the library.
Post Reply