7-11number1
28-01-2009, 08:58
Hello from 1711 Traverse City!
We have much (I joke) of our code written to do this, that, and the other and have tripped on what looks like a memory related issue. Having Hyperterm connected to our serial console, we witness vxWorks booting just fine, starts to load our deployed FRC_UserProgram then fails with an Application Loader exception, data access error of course. We know that the data access error is a protected mode trap on illegal memory access. The situation is that our code has not been executed yet. This seems to be connected with static memory heap utilization. We can solve it by reducing the number of variables declared on the heap (actually just by removing one class variable does the trick) and we boot fine. Adding a different class variable (such as changing Joystick rightStick(2); to Sensor turret(4);) causes the problem to re-occur. Anyone else witnessed this behavior? I am looking for WindRiver Linker options or any config settings that my be able to expand my static heap (sounds personal?). Since this is memory address space not stack, I do not think this is stack related (but all ideas welcome). I wish the nastiness of this one on nobody!
Oh by the way, reverting to a simpler program works just fine and we are still at update #2 RIO v7 (we'll change that this afternoon).
Cheers! Tony.
We have much (I joke) of our code written to do this, that, and the other and have tripped on what looks like a memory related issue. Having Hyperterm connected to our serial console, we witness vxWorks booting just fine, starts to load our deployed FRC_UserProgram then fails with an Application Loader exception, data access error of course. We know that the data access error is a protected mode trap on illegal memory access. The situation is that our code has not been executed yet. This seems to be connected with static memory heap utilization. We can solve it by reducing the number of variables declared on the heap (actually just by removing one class variable does the trick) and we boot fine. Adding a different class variable (such as changing Joystick rightStick(2); to Sensor turret(4);) causes the problem to re-occur. Anyone else witnessed this behavior? I am looking for WindRiver Linker options or any config settings that my be able to expand my static heap (sounds personal?). Since this is memory address space not stack, I do not think this is stack related (but all ideas welcome). I wish the nastiness of this one on nobody!
Oh by the way, reverting to a simpler program works just fine and we are still at update #2 RIO v7 (we'll change that this afternoon).
Cheers! Tony.