I’m having an issue with PROS. If I mutliply a double and do anything with the results (such as setting motors or printf) the cortex it stops working. Am I doing something wrong here?
this is what is printed when it happens:
Powered by PROS 2b10
This is a BETA version of PROS and may have issues.
Purdue Robotics OS (C)2011-2014 Purdue ACM SIGBOTS
This program has ABSOLUTELY NO WARRANTY, not even an implied
warra
The VEX Cortex has stopped working!
Error cause:
@BottomNotch I do not have access to a cortex right now but could you humor me in testing the following modifications with your code and report back if you still encounter the same issues with the cortex crashing.
double foo = 0.2;
double bar = 1;
printf("%f\n\r", (float)foo*bar);
That is interesting. Could you PM me the output.elf file in your /bin directory that is generated from compiling both your sample and mine that is generating this error. I would like to look at the disassembly of them.
I created a fresh project and this did not work. Could it be an issue with the toolchain? I had to custom build one because the one included with PROS seems to not work on Arch Linux or Slackware.
I don’t have 5.3 around, but I did try 5.2.1 and that was ok. Most likely issue is the toolchain, lets see what Purdue can come up with when they look into the .elf file.
I assume you are using the Makefile etc. that came with PROS.
Send us one other thing, dump the pre-processor defines into a file and send us that, it may be that you need another compiler/linker option set, you get those like this.
arm-none-eabi-gcc -dM -E - </dev/null
Send us one other thing, dump the pre-processor defines into a file and send us that, it may be that you need another compiler/linker option set, you get those like this.
arm-none-eabi-gcc -dM -E - </dev/null
[/quote] preprocessor-defines.zip (2.72 KB)