|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
32k controller limit
whenever i intialize _USE_CMU_CAMERA to be able to use the camera the .hex file size goes to 60k and the controller's limit is 32k
if anyone else has had this problem and has found a way around it , it would be really nice if you caould help us. |
|
#2
|
|||||
|
|||||
|
Re: 32k controller limit
I was just wondering whose CMU cam code you are using? The official IFI code?
Last edited by AIBob : 03-02-2005 at 19:54. |
|
#3
|
||||
|
||||
|
Re: 32k controller limit
i never looked at the size, but ive been turning on and off that macro for testing stuff and its always loaded fine
|
|
#4
|
||||
|
||||
|
Re: 32k controller limit
i'm using the official default code supplied by first (or ifi)
whackjacko: can you check the size of the .hex file with the macro on and tell me what it is? |
|
#5
|
|||||
|
|||||
|
Re: 32k controller limit
To look at what is filling up your 32KB, you can just loop at the .map file....
if that is not there, then you can produce it by going to: Project -> Build Options... -> Project :::::: <MPLINK Linker> Check "Generate map file" |
|
#6
|
|||||
|
|||||
|
Re: 32k controller limit
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: 32k controller limit
Quote:
|
|
#8
|
|||
|
|||
|
Re: 32k controller limit
We saw this after trying to combine the Navigation code and the camera code. I noticed that the default project settings turn off a lot of the optimizations the compiler can do, resulting in larger slower code. This may be needed for the simulator or a debugger, but without them the code was 1/2 the size.
I also saw that the largest module was vprintf (~4k). If you get rid of all printf calls, this will go away. You can sill use puts(), itoa(), ltoa() ... which are smaller. Of course there is no substitute for going through the code and removing anything you don't need. Some of the sample code could be made smaller and faster (but probably less readable) too. |
|
#9
|
|||
|
|||
|
Re: 32k controller limit
Thanks guys, this discussion is very helpful... to many more than just myself I am certain.
However, I am still confused about how we can use external memory, and the consequences of doing that (runs slower?) Also, how do you modify the optimization settings of the project? Thanks, Plloyd |
|
#10
|
|||
|
|||
|
Re: 32k controller limit
Quote:
the Project menu. There is a line like this: -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- The -O*- settings are turning off various optomizations. Remove them to turn things back on. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Speed controllers won't communicate w/robot controller | steven114 | Control System | 12 | 03-02-2005 21:26 |
| Robot Controller File Size Limit ?? | RoboGeek | Programming | 1 | 17-01-2005 19:59 |
| 2003 robot controller & interface | LGuY | Control System | 3 | 04-04-2004 16:01 |
| Help On Coding 2K1 Controller | GregTheGreat | Programming | 9 | 05-12-2003 18:35 |
| serious problem found - robot controller resets when jarred! | KenWittlief | Electrical | 23 | 19-03-2003 13:30 |