This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM flash trouble

I try to create a simple PWM signal, I've unchecked "use memory layout from target dialog" from L166 Locate from uvision options and everything works perfect if i run from ram memory, but if run from flash memory the pwm signal doesn't work.

I've received some warnings

*** WARNING L22: CLASS RANGE NOT GIVEN IN INVOCATION LINE CLASS: NDATA
*** WARNING L22: CLASS RANGE NOT GIVEN IN INVOCATION LINE CLASS: NDATA0

so I use this code in Linker Control String

CLASSES (NCONST(00000h-03FFFh),&
NDATA (04000h-07FFFh),&
NDATA0 (04000h-07FFFh),&
SDATA (0C000h-0FFFFh),&
SDATA0 (0C000h-0FFFFh),&
IDATA (0FA00h-0FDFFh),&
IDATA0 (0FA00h-0FDFFh),&
BIT (0FD00h-0FDFFh),&
BIT0 (0FD00h-0FDFFh),&
BDATA (0FD00h-0FDFFh),&
BDATA0 (0FD00h-0FDFFh))

from L166 Misc.

Please let me know if u have a clue about this problem.

Thank you very much.

0