Author |
Message |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2012 4:52 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Thanks for response, Ttelmah
You were right. I was using a fprintf instruction for debugging trap conflicts interrupts so it was causing the problem.
Thank you !! |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Sun Jan 15, 2012 6:24 pm Subject: Serial data problem with upgrade 4.099 to 4.124 |
Hello my friends,
It's working now. I was looking for instruction that was generating warnings, so I found a fprintf statement that i was using for debug. The warning disappeared when i commented t ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 11:36 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
In a previous post you've got what appears to be a 32bit math operation that will disable interrupts.....that takes a LOT of time and I can see the UART buffer being overrun unless coding that we have ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 10:48 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Zigbee will involve interfacing to a RF transceiver. The transceiver's receiver is asynchronous. Further the whole system is half duplex. Next timing is very critical. Generally this means that the ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 10:44 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Interrupts aren't parallel processes. In the main code the compiler expects that an interrupt can occur at any point in the code. Now suppose you use a function in the main code that takes a few inst ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 7:56 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Just for helping somebody helping me.
My code gives me some warnings:
>>> Warning 216 "main.c" Line 5396(0,1): Interrupts disabled during call to prevent re-entrancy: (@PUTCHA ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 6:33 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
I don't know what is happening. Somebody has more any idea ? I'll contact CCS support.
Thanks |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 5:12 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Thanks for response, asmboy.
I'm doing exactly it.
Thanks |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Thu Jan 12, 2012 6:12 pm Subject: Serial data problem with upgrade 4.099 to 4.124 |
First I would - if possible - USE A SMALLER buffer
and then poll Zkbhit more often.
Thanks for response, asmboy. What are you mean about poll more often ? I'm polling as fast as possible.
T ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Thu Jan 12, 2012 11:55 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
UART1, works instead of needing to specify the TX/RX pins, so this one wouldn't cause a problem, but ERRORS, is absolutely essential. It should _only_ be omitted if you are handling errors yourself. S ... |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Thu Jan 12, 2012 10:37 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Thanks for response asmboy.
I forgot but I define pins tx e rx. See code:
#pin_select U1Tx=PIN_B13
#pin_select U1Rx=PIN_B14
I'll do some tests and I will repply again. Thanks. |
Topic: Serial data problem with upgrade 4.099 to 4.124 |
cassioriguela
Replies: 22
Views: 18725
|
Forum: General CCS C Discussion Posted: Thu Jan 12, 2012 9:22 am Subject: Serial data problem with upgrade 4.099 to 4.124 |
Dear friends,
I have a problem with upgrade 4.099 to 4.124. I have a firmware that receives some data from serial interface and put it into a buffer, like EX_SISR.C. After updated, I have some data ... |
Topic: can not write,read again from SPI flash w/ 18F2550 |
cassioriguela
Replies: 13
Views: 23453
|
Forum: General CCS C Discussion Posted: Sun Dec 18, 2011 8:56 pm Subject: can not write,read again from SPI flash w/ 18F2550 |
Hello,
Try to configure spi module by #use spi or setup_spi functions.
Thanks! |
Topic: dsPIC33f Bootloader issues. Help! |
cassioriguela
Replies: 11
Views: 14972
|
Forum: General CCS C Discussion Posted: Mon Dec 12, 2011 5:31 am Subject: dsPIC33f Bootloader issues. Help! |
Hello dear friends.
I have some new strange problems.
When I read program memory with read_program_memory I have a problem with SPI and it does'n work. I'm using a SPI memory and after using read ... |
Topic: dsPIC33f Bootloader issues. Help! |
cassioriguela
Replies: 11
Views: 14972
|
Forum: General CCS C Discussion Posted: Thu Dec 08, 2011 11:21 am Subject: dsPIC33f Bootloader issues. Help! |
Thank you again, Andrew.
I won't remap interrupt vector, I just want to know about this issue.
Now, I have problems in saving reset vector before erasing IVT and app area. When I call read_progr ... |
|