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 support@ccsinfo.com

Firmware debugger via rs-232

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
future



Joined: 14 May 2004
Posts: 321

View user's profile Send private message

Firmware debugger via rs-232
PostPosted: Fri Jun 04, 2004 6:56 am     Reply with quote

Is there a way to debug firmware using a rs-232 connection to the circuit?

See www.mecanique.co.uk/code-studio/ their solution adds a header to the firmware to add the debug functionality. Im looking for something like this, but for C.

You have a pic with a bootloader, then you load the header+firmware and use the built-in debugger to run step by step.
AllanL5



Joined: 05 Apr 2004
Posts: 6

View user's profile Send private message

PostPosted: Thu Jun 17, 2004 2:15 pm     Reply with quote

The way MBasic does this is to insert a debug call between every Basic token. I don't know how the Code Studio gets the debug information -- there's a slightly cryptic note that it uses "HSERIN/HSEROUT to send the debug information" which makes me think Code Studio does something similar.

If you wanted to debug 'C' code this way, you would need to develop a pre-processor which would insert a 'debug_pause()' entry or something between each 'real' line of 'C' code. Then compile with the 'debug_pause()' lines enabled.

'debug_pause()' should send some data to your monitoring program, and wait for you to give it a carriage return or something from your monitoring program. This way, you can debug over the same serial connection you program with.

The ICD hardware solutions do this in hardware -- since the ICD controls the clocking of the hardware. Simulators (like MPLAB 6.10 on have) let you do this in software -- but then you can't monitor the hardware pins to verify the rest of the circuit works.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go All times are GMT - 6 Hours
Page 1 of 1

 
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