 snehalb
		
			snehalb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello,
I am trying to run program in RAM section . I build simple sieve code using S32 design studio with build setting as Debug_RAM. when I debug using PEmicro debugger it works fine , there are no errors. but If I use same elf and program it using Lauterbach script "s32k344cvd-q257_sieve_sram.cmm" it throws bus error "bus error at EST:0x2043000--0x204310CF".
note: with example elf file provided by Lauterbach, script "s32k344cvd-q257_sieve_sram.cmm" works perfectly fine.
What setting I am missing in S32_studio ? Are any changes need to do in linker manually?
Thanks in advance!!
Solved! Go to Solution.
 
					
				
		
 davidtosenovjan
		
			davidtosenovjan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		The script 'init_sram.cmm' initialized address range 0x20400000-0x20427FFF i.e. 160kB i.e. only half of SRAM memory of S32K344.init_sram.cmm
That's the reason probably
 snehalb
		
			snehalb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, @davidtosenovjan
Initializing whole RAM in init_ram.cmm script resolved my issue.
Thank you so much.
 
					
				
		
 davidtosenovjan
		
			davidtosenovjan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		This is rather question to Lauterbach. Could you share mentioned script?
 snehalb
		
			snehalb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
 davidtosenovjan
		
			davidtosenovjan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		The script 'init_sram.cmm' initialized address range 0x20400000-0x20427FFF i.e. 160kB i.e. only half of SRAM memory of S32K344.init_sram.cmm
That's the reason probably
