Hi,
How to enable printf support in FreeRTOS. I am using S32k146 and segger debugger. I want the prints in Debugger console. Though I use newlib and nanolib I am not able to get the prints. Please help.
Hi Petr,
I had already seen those links in NXP forums. I am using newlib_nano debug console. Is it that I need to use EWL_c debug console instead? Also my telnet port is 2333 and the link says telnet port should be 51794. What is the correct settings here? I have followed your links, checked and configured accordingly but I am using S32 DS V3.3. The link talks about some version lower. Also I do not get semihosting enabled messages in the debug console or console. This is what my worry is. Please help.
regards,
Harish.
 
					
				
		
 PetrS
		
			PetrS
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
beside the C lib supporting debug console you also need to enable semihosting console in debug session settings. You can refer to e.g. below thread
https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813615
Otherwise you can refer to example that use PC terminal
BR, Petr
Hi,
I still do not see the prints in debug console. I am using nanolib debug console library support. Should I use ewl_c library instead. Aslo, I have followed the links that u sent me in the previous post. but still in vain.Please help.
regards,
Harish.
 
					
				
		
 jiri_kral
		
			jiri_kral
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
for me it is not clear - are you trying to use remote terminal (like putty, realterm etc. connected to uart) or semihosting console - which forwards printf output to S32DS semihosting console window?
Hi,
I am trying to use the debug console, not the terminal like putty or real term. I do not get semihosting enabled messages in the debug console when I start debugging with the all the settings that are mentioned in your reply to my query earlier. I am using S32DS V3.3 and all the related settings in debug configurations are done. Also I am using segger J-Link configuration for debugging with the J-Link Hardware. One more thing I want to mention here is that I used is freeRTOS and an automotive application which needs some debug console prints to help debugging. Please help.
regards,
Harish.
 
					
				
		
 jiri_kral
		
			jiri_kral
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
please make sure that you enabled Semihosting console in debug configurations:
And check, if you are using STDC library with Debugger console support:
If all is set correctly, semihosting console should work:
Jiri
