37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/*********************************************************************
							 | 
						||
| 
								 | 
							
								*
							 | 
						||
| 
								 | 
							
								*       OnProjectLoad
							 | 
						||
| 
								 | 
							
								*
							 | 
						||
| 
								 | 
							
								* Function description
							 | 
						||
| 
								 | 
							
								*   Project load routine. Required.
							 | 
						||
| 
								 | 
							
								*
							 | 
						||
| 
								 | 
							
								**********************************************************************
							 | 
						||
| 
								 | 
							
								*/
							 | 
						||
| 
								 | 
							
								void OnProjectLoad (void) {
							 | 
						||
| 
								 | 
							
								  Project.AddSvdFile ("Cortex-M3.svd");
							 | 
						||
| 
								 | 
							
								  Project.AddSvdFile ("./LPC18xx.svd");
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  Project.SetDevice ("LPC1857");
							 | 
						||
| 
								 | 
							
								  Project.SetHostIF ("USB", "");
							 | 
						||
| 
								 | 
							
								  Project.SetTargetIF ("SWD");
							 | 
						||
| 
								 | 
							
								  Project.SetTIFSpeed ("50 MHz");
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  Project.SetTraceSource ("Trace Pins");
							 | 
						||
| 
								 | 
							
								  Project.SetTracePortWidth (4);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  File.Open ("../../../../../../examples/device/cdc_msc/cmake-build-mcb1800/cdc_msc.elf");
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								/*********************************************************************
							 | 
						||
| 
								 | 
							
								*
							 | 
						||
| 
								 | 
							
								*       BeforeTargetConnect
							 | 
						||
| 
								 | 
							
								*
							 | 
						||
| 
								 | 
							
								**********************************************************************
							 | 
						||
| 
								 | 
							
								*/
							 | 
						||
| 
								 | 
							
								void BeforeTargetConnect (void) {
							 | 
						||
| 
								 | 
							
								  //
							 | 
						||
| 
								 | 
							
								  // Trace pin init is done by J-Link script file as J-Link script files are IDE independent
							 | 
						||
| 
								 | 
							
								  //
							 | 
						||
| 
								 | 
							
								  // Project.SetJLinkScript("./NXP_LPC1857JET256_TraceExample.pex");
							 | 
						||
| 
								 | 
							
								}
							 |