DSPRelated.com
Forums

Sending image through RTDX

Started by m_vldmr November 13, 2006
Hello,
I have problem, when I send image through RTDX to TMS320C6416T I
recieve black image (array with all 0), while on functional simulator
everything works fine. Image is not greater than 1024 KB. Please
help, I will be very greatfull.
Greetings,

First, I recoomend you to use HS-RTDX since it is available on the 6416.

Second, I think you are using the TI host support. I recommend you to use the NI plug ins to get your RTDX/HS-RTDX. The you will be able to see your data live.

Third, make certain you conigure your INT table correctly to support RTDX/HS-RTDX.

Here is an example, plug your specific ISRs in their places.

unused .macro id

.global unused:id:
unused:id:
b unused:id: ; nested branches to block interrupts
nop 4
nop
nop
nop
nop
nop
nop
.endm

SP .set B15 ; Redefine for convenience

; To use standard RTDX, enable next line and include rtdx64xx.lib in project
;JTAGRTDX .set 1
; To use standard high speed RTDX, enable next line and include rtdxhs.lib in project
;HSRTDX .set 1

.global RESET_RST1
.ref _c_int00

.sect "vectors"
RESET_RST1:
mvkl .S2 _c_int00, B0
mvkh .S2 _c_int00, B0
B .S2 B0
mvkl .S2 0x10000, B0; as an example, ISTP set at 0x00010000
mvkh .S2 0x10000, B0
mvc B0, ISTP
NOP
NOP

unused 1

unused 2

.if $isdefed("HSRTDX")
MSGINT_V: ; Message Interrupt Vector (reserved)
.ref _HSRTDX_msgint_isr ; MSGINT interrupt
STW B0,*SP--[2] ; save B0 temporarily
|| MVKL _HSRTDX_msgint_isr, B0 ; load ISR address
MVKH _HSRTDX_msgint_isr, B0
B B0 ; execute ISR;
LDW *++SP[2],B0 ; restore B0
NOP 2
NOP
NOP
.elseif $isdefed("JTAGRTDX")
MSGINT_V: ; Message Interrupt Vector (reserved)
.ref RTEMU_msg
STW B0, *SP--[2]
|| MVKL RTEMU_msg, B0
MVKH RTEMU_msg, B0
B B0
LDW *++SP[2], B0
NOP 2
NOP
NOP
.else
unused 3
.endif

unused 4

unused 5

unused 6

unused 7

unused 8

.if $isdefed("JTAGRTDX")
INT9: ; Maskable Interrupt #9
.ref RTEMU_msg
STW B0, *SP--[2]
|| MVKL RTEMU_msg, B0
MVKH RTEMU_msg, B0
B B0
LDW *++SP[2], B0
NOP 2
NOP
NOP
.else
unused 9
.endif

unused 10

.if $isdefed("HSRTDX")
INT11: ; Maskable Interrupt #11 HSRTDX Xmit Complete
.ref _HSRTDX_xmt_isr
STW B0,*SP--[2] ; save B0 temporarily
|| MVKL _HSRTDX_xmt_isr, B0 ; load ISR address
MVKH _HSRTDX_xmt_isr, B0
B B0 ; execute ISR;
LDW *++SP[2],B0 ; restore B0
NOP 2
NOP
NOP
.else
unused 11
.endif

.if $isdefed("HSRTDX")
INT12: ; Maskable Interrupt #12 HSRTDX Rcvd Complete
.ref _HSRTDX_rec_isr
STW B0,*SP--[2] ; save B0 temporarily
|| MVKL _HSRTDX_rec_isr, B0 ; load ISR address
MVKH _HSRTDX_rec_isr, B0
B B0 ; execute ISR;
LDW *++SP[2],B0 ; restore B0
NOP 2
NOP
NOP
.else
unused 12
.endif

unused 13

unused 14

unused 15

Good luck

Hello,
>I have problem, when I send image through RTDX to TMS320C6416T I
>recieve black image (array with all 0), while on functional simulator
>everything works fine. Image is not greater than 1024 KB. Please
>help, I will be very greatfull.