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

Using C16x DPRAM

Hello;

How can I use DPRAM in XC167? I mean: how to correctly link a RAM memory area (in this derivative, 0xE0'0000 - 0xE0'1FFF) into one of the *CODE target classes?

My problem:

I followed all the linking steps in AppNote #138, including the SROM class and the FLASH_CODE section directives:

SROM (0xC00000-0xC1FFFF)

?PR?PFLASH%FLASH_CODE (0xE00000) [!]

I have also added in the External Memory #2:

RAM : 0xE00000 - 0x1FFF

But the debbuger still doesn't execute any code in this area (because uVision fits RAM External Memoryinto *DATA classes). If I add DPRAM as a "ROM" External Memory, my routine won't copy code to this area!


It seems like the ?PR?PFLASH section isn't working properly, has anyone a clue?

Thanks in advance,

Lucas

0