EmbDev.net

Forum: µC & Digital Electronics IAR Embedded Workbench Release Problem


von Andy (Guest)


Rate this post
useful
not useful
Hi,

I wrote a program which ran in Debug Mode without problems. Here I used 
the compact emulator M3962PT3-CPE. But when I tried to release it to the 
M16C62P Microcontroller via Hexload it didn't work. Now I found out, 
that the following declaration doesn't work in Release Mode:

[c]unsigned char *pointer = "Text";[\c]

Here the pointer doesn't get a certain value. But when I write it like 
this:

[c]Unsigned char *pointer;
pointer = "Text";[\c]

everything works fine and there are no problems.
I allready compared the .lst-Files from the via Debug and Release 
compiled files and there is no difference. Does anybody have an 
explanation for that? Thank you very much!!!

von Guest (Guest)


Rate this post
useful
not useful
I suggest you report this behavior to IAR as it seems to be a bug in the 
compiler.

von Andy (Guest)


Rate this post
useful
not useful
Thanks for your answer!
I allready did. But unfortunately I don't have an active Support and 
Update Agreement(SUA) at the moment and thus they refused to answer my 
question.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.