Page 1 of 1

Unable to change the tick time with CB34X netburner.

Posted: Tue Sep 24, 2013 2:19 pm
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.

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

Posted: Tue Sep 24, 2013 2:52 pm
by dciliske
1. Yes. You need to recompile everything (system, platform, and project).

-Dan

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

Posted: Tue Sep 24, 2013 7:00 pm
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.

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

Posted: Tue Sep 24, 2013 9:08 pm
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...

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

Posted: Wed Sep 25, 2013 7:54 am
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.

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

Posted: Wed Sep 25, 2013 9:08 am
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.

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

Posted: Wed Sep 25, 2013 10:17 am
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.

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

Posted: Wed Sep 25, 2013 1:32 pm
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.