cancel
Showing results for 
Search instead for 
Did you mean: 

WriteC doesn't work.

daweiy
Associate II
Posted on June 22, 2006 at 07:35

WriteC doesn't work.

1 REPLY 1
daweiy
Associate II
Posted on June 22, 2006 at 04:21

I use RVDEBUG v1.7 and ST-STR710FZ2 connection.

Very strange, couple of months ago, printf() seems fine but currently nothing displayed on StdIO. When I trace the code and find the printf() finially call WriteC(&tempc). In assembly code, it is:

ADD r1, r13, #4

MOV r0, #3

SWI 0x123456

r1 points to the chararcter. Code seems good, but nothing on Debuger.

I cannot remember what I did in the debuger, seems nothing relate to Semihosting. Could anyone tell me are there any settings for Semihosting in the RVDEBUG?

BTW, I can use SWI 0x123456 to open ,close files and write characters to the files. For example:

swi_close

; r0 is the handler of the opened file.

ldr r1, =swi_3para_addr

str r0, [r1]

mov r0, #2

swi 0x123456

mov pc, lr