This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

COde composer studio V 3.3 problem with memory mapped registers



Dears,

At begin im sorry for my  very weak english :)

After many years I try to return to "my" TMS320F24x family processors. (and later - maybe switch  to 280x :) )

Currently I have installed CCS V3.3 (for tests) . My target board (created by me) have installed an old processor: TMS320F241.

I created small program - which configure this processor for work with DARAM B0 as PROGRAM MEMORY.

(I can test small programs (256 words) This is enough for me - now. In result I can load programs created by assembler and linker - directly to DARAM B0 (via JTAG emulator) . This method working fine and without problems...

But problem is with CCS (i think that) or maybe with GEL files?

I can:

read/write any locations of DARAM (B0 B1 B2) and observe these changes in CCS.


I can't  :

Write to any (or most) location in memory mapped registers area  (adress: 0x7000h - 0x743Fh)

Read - in most of cases returns: 0x0000.

 

FOr example - I want obtain access to ADC module registers:

ADCTRL1 ADCTRL2  (7032h,7034h)

If I try to write any values to these cells - CCS return: 0x0000h

(ldp     #adctrl1>>7  instruction is used previously)

 

BUT - if I try to write for example at 7098 (PADATDIR)  - I Can write values without problem...ANd I observe some changes (red color)..

I think that F241 memory map is loaded correctly...

Where is the problem?

does anyone have any idea?

 

 

 

 

 

 

 

 

 

 

 

 

  • Problem is partially solved.

    i had problem with one from registers (ADCTRL1 7032h).
    Bits 15-14 was set on : 00  (stop conversion immediately - after HALT or breakpoint)

    Now I have set these bits: 10 (complete current conversion before stopping).

    Now program working without problem (RUN mode, animation mode)

    I also created a new file "gel" with the exact map registers (for TMS320f241)

    However, I have to check if everything will be fine .