EmbDev.net

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


von Andy (Guest)


Rate this post
0 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
0 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
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.