CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

[SOLVED] dsPIC33EP64MC204 RDA Interrupt
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Tue Oct 22, 2019 3:47 am     Reply with quote

Good, you move forwards.
But, still nothing added to limit the value of buffer_ind. This really must be
handled.
PrinceNai



Joined: 31 Oct 2016
Posts: 480
Location: Montenegro

View user's profile Send private message

PostPosted: Tue Oct 22, 2019 3:53 am     Reply with quote

Nice that you solved your problem :-). But you'll likely run into another problem, if you'll talk with the GSM for long enough. You have to wrap buffer_ind back to 0 when you fill the buffer, otherwise the data from GSM will start overwriting locations above your allocated buffer size.
camleot23



Joined: 16 Aug 2019
Posts: 52

View user's profile Send private message

PostPosted: Tue Oct 22, 2019 4:45 am     Reply with quote

Yes I know you are right. Smile I've already added it. Thank you for your care. I'm debugging all the time and sometimes I forget to add some lines.
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Tue Oct 22, 2019 4:58 am     Reply with quote

As a comment, 'moving on', I notice you were using software serial
for the RS485 link. Given your chip has a second UART, consider using this.
Otherwise the receive ISR 'risks' resulting in bit width corruption on this
port.
camleot23



Joined: 16 Aug 2019
Posts: 52

View user's profile Send private message

PostPosted: Tue Oct 22, 2019 7:26 am     Reply with quote

Hmm.. I didn't know. Okay, I will definitely consider it. Thank you very much for sharing your thoughts with me.Smile)
You are number one! Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group