17 lines
		
	
	
		
			890 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			890 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | k3d_demo_test compile guide | ||
|  | 
 | ||
|  | steps as below, based on the directory of Mainline: | ||
|  | 1. k3d demo test is a mini-test, only run in RAM(160k) | ||
|  | 2. add patch, run "patch p0 < k3d_demo.patch" | ||
|  |     select the files -- build/env_kunlun2.sh /inc/dbglog/iot_dbglog.h plc/inc/plc_const.h | ||
|  | 
 | ||
|  | 3. run "source build/env_kunlun2.sh" | ||
|  | 4. if necessary, run "make clobber && make dtest_clean" to clean the compile environment, it may take a few time | ||
|  | 5. run "make && make dtest", there will be some files generated on the directory of dtest/k3d_demo_test/.output/lib/ | ||
|  | 
 | ||
|  | If you want to burn the demo on the flash, steps as below: | ||
|  | 1. run "cp dtest/k3d_demo_test/.output/lib/k3d_demo_test.bin ./tools/gen_img/" | ||
|  | 2. run "cd tools/gen_img/", go to the directory of tools/gen_img/ | ||
|  | 3. run "../../tools/gen_img/ah -c k3d_demo.cfg" , there will be a binary file generated | ||
|  | 4. burn the binary file - dtest_package_xxx.bin in flash |