Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
882 Views

String parser

I need some example for string parsing. Just some basics to move on. I get commands from a terminal on UART module so I want to parse this commands and its arguments.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
71 Views

What have you tried? 

 

I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command. 

 

Cheers, 

Alex
Altera_Forum
Honored Contributor I
71 Views

 

--- Quote Start ---  

What have you tried? 

 

I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command. 

 

Cheers, 

Alex 

--- Quote End ---  

 

 

So I have to store all commands and compare with an incoming buffer?
Altera_Forum
Honored Contributor I
71 Views

Yes. 

 

Cheers, 

Alex
Reply