Author |
Message |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Unable to download successfully compiled program
I'm finding that in 3.02, some programs I'm moving forward from 2.26 compile up and carry over just fine, while others though they continue to compile just fine as they did in 2.26 (zero errors, though some warnings) now refuse to download to the NXT, and so I can't run them: when I hit F5, the 'download progress' flashes instantaneously on the screen, then the debugger is not entered. When I go look at the File Management utility, the program is not there. The problem has been observed on at least two RobotC 3.0 installations.
Has anyone else observed this problem?
Last edited by bobatk on Wed Sep 14, 2011 1:01 am, edited 3 times in total.
|
Tue Sep 13, 2011 10:24 pm |
|
 |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Re: Unable to download successfully compiled program
In 2.26, there was a View / Preferences... option on the Compiler tab called "Incremental Download" which we always turned off. That option seems to be removed from 3.0. Might this be related? Is there a registry setting that can be used in its place to see if that affects the situation?
|
Tue Sep 13, 2011 10:32 pm |
|
 |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Re: Unable to download successfully compiled program
FWIW: I still have 2.26 installed on the same machine on which I have installed 3.0. Is this a supported configuration?
Update: completely uninstalled 2.26, 3.0, and the NXT drivers. Rebooted. Reinstalled 3.0. Problem persists.
Last edited by bobatk on Wed Sep 14, 2011 12:21 am, edited 1 time in total.
|
Tue Sep 13, 2011 10:38 pm |
|
 |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Re: Unable to download successfully compiled program
Problem verified on a second RobotC computer (this time 64 bit instead of 32 bit).
|
Tue Sep 13, 2011 11:52 pm |
|
 |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Re: Unable to download successfully compiled program
Progress in diagnostics: 'managed to get some message logs: I deleted all files in the File Mangement utility. Then defrag'd the file system. Free space listed is 115.2K. Yet hitting F5 to download and debug yields the following error (note the 'no linear space'). It's worth noting that the programs that continue to work are smaller than those that fail; I've attached the compiler stats for one that fails below. Here are the compiler stats:  |  |  |  | Code: Compile Statistics: (AutoTele.c) 0.351 Total Compile Time (seconds) 44,832 Total code bytes, (after 15,574 bytes removed during optimization) 853 Constant Pool Size (in bytes) 5,992 Used memory locations (of 15000), 4 Tasks, 118 Procedures 10,949 User Source file lines, 50,840 tokens 6,109 System Include file lines, 26,132 tokens 0 Errors, 103 Warnings, 20 Info Messages CPU ......Lines/sec..... Seconds Total Source Scanner/parsing: Setup 0.009 1,877,741 1,205,263 Scanner/parsing: System 0.001 25,762,794 16,536,336 Scanner/parsing: User Files 0.142 120,461 77,320 Code Generation 0.154 110,849 71,150 Code Optimize 0.021 820,093 526,392 Total 0.351 48,550 31,162 1,497 Total symbols added to symbol table 1.067 Avg hash bucket depth (1.0 is best possible) |  |  |  |  |
I guess the big question is: with 121632 bytes of free flash, why can't we find ~48K of linear space to store the bytecodes?
|
Wed Sep 14, 2011 12:34 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Unable to download successfully compiled program
You need to hit the "defrag" button in the File Management Utility. After that it should work fine  - Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Wed Sep 14, 2011 4:12 am |
|
 |
bobatk
Rookie
Joined: Sat Nov 27, 2010 1:44 am Posts: 34
|
 Re: Unable to download successfully compiled program
Thanks Xander. Unfortunately that doesn't solve the problem. Which, indeed, is a mystery.
Update: I wrote a little c# program to open a USB connection to the NXT, send it a Delete User Flash command (0xA0), then do a binary search of Open Write Linear commands (0x89) with different file byte count lengths to see what the largest linear file I could open is.
The result is 7840 (==0x1EA0), which is much smaller than the programs we were running last season. FWIW, it's 96 bytes shy of being 31 sectors worth in the NXT file system.
Moreover, if I do a new flash of the firmware, and don't delete any files by just do the binary search, I get the same result, the same maximum size.
Last edited by bobatk on Wed Sep 14, 2011 2:25 pm, edited 6 times in total.
|
Wed Sep 14, 2011 11:13 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Unable to download successfully compiled program
Can you do me a favour and mail the program? I'd love to see if I can reproduce it here.
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Wed Sep 14, 2011 1:43 pm |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
 Re: Unable to download successfully compiled program
We have received the problematic programs and are currently investigating the problem.
Thanks for reporting the issue!
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Thu Sep 15, 2011 9:33 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Unable to download successfully compiled program
This one had me stumped, especially the contiguous space error. Quite misleading!
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Thu Sep 15, 2011 9:41 am |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
 Re: Unable to download successfully compiled program
I have been looking at this most of the evening. I have the very large file downloading now. I'm trying to clean up the changes so that it can get into the next release. However, there are many issues with the content of this program that I'll cover in another post.
|
Fri Sep 16, 2011 12:19 am |
|
 |
nateww
Rookie
Joined: Fri Apr 15, 2011 10:29 am Posts: 37
|
 Re: Unable to download successfully compiled program
Still waiting for your discussion on the content of the program. 
|
Fri Oct 07, 2011 7:51 pm |
|
 |
jwkelly
Rookie
Joined: Tue Nov 01, 2011 10:54 pm Posts: 5
|
 Re: Unable to download successfully compiled program
We are having the same exact problem. Code compiles ok without warnings or errors, but does not download to the NXT. Worked ok until we added in drive task code w/joystick header--code that has worked before. We removed most of the programs from the NXT as well as defrag'ed it, but that does not appear to help. We could really use some help here because we are completely baffled! Have attached our code.
|
Thu Nov 03, 2011 9:12 pm |
|
 |
jwkelly
Rookie
Joined: Tue Nov 01, 2011 10:54 pm Posts: 5
|
 Re: Unable to download successfully compiled program
Fixed! There is a new release (v2.2) of the HTMUX drivers that we installed and now all is well http://www.hitechnic.com/file.php?f=162 ... r-v2.2.zip
|
Sun Nov 06, 2011 12:17 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Unable to download successfully compiled program
You can always download the latest version of my driver suite from the original source: [ LINK]. Keep an eye on my blog for when I release a new version of the suite. Keep in mind that I cannot support any other version other than the latest one. - Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Sun Nov 06, 2011 2:54 am |
|
|