Forum : ARM
Post Information | Post |
---|---|
August 15, 2007 - 7:39pm
|
I am running the RIDE with the ARM ToolChain Version 1.1.15, CARM-AS Assemblyer Version 1.00.05, CARM-GCC Compiler Version 1.00.14 (although the installation of GCC thinks that it is 4.1.1), as well as RLink-Pro. I've defined a matrix for debugging a state machine: uint32_t StateAndTime[2][INITIALIZE_TRANSMISSION+1]; // DEBUG!! where INITIALIZE_TRANSMISSION is the last state (#10, 0-origin) in the enumeration. During execution, each state begins with a statement like this one: case SEND_FIRST_CHARACTER_IN_MESSAGE: However, when I execute the above, the RIDE debugging Watch window shows two really odd things: First, the matrix StateAndTime is displayed in the Watch Window with the dimensions in reverse order from the matrix declaration. From the middle, where it's most obvious: -StateAndTime[7] Second, the variables are not being updated in an order that makes sense. So when the source code is updating StateAndTime[0][3] and StateAndTime[1][3], the Watch Window shows the updates taking place at StateAndTime[1][1] and StateAndTime[7][0], respectively. ARM assembler code is still pretty obscure for me, so I'm wondering: is this a compiler error or a debugger error? (or my error?!) Has anyone reported it before? Do you have any workaround besides doing my own subscript calculations? Do you have an expected correction? |
Hello,
this issue has been solved in the BN747 downloadable on the website.
regards,
Lionel