Getting started with s32r27

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Getting started with s32r27

跳至解决方案
1,979 次查看
chidvilas_y
Contributor II

Hi,

I'm using S32 design studio with SW32R274_RSDK_RTM_1_0_0. I'm able to import projects and run them.

 

But I'm unable to get "printf" working.

I've even tried enabling the macros "UART_ENABLED" or "PE_SEMIHOSTING_EN"  from the Makefile. With UART_ENABLED macro it is throwing an error at #include "uart.h" and with PE_SEMIHOSTING_EN the error is thrown at linking and __read_console, __write_console etc are not found.

 

Is there any getting started guide to S32R27 debugging?

Can you give me the link to example UART application code that runs on this board?

 

Thanks,
Chidvilas

0 项奖励
回复
1 解答
1,651 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

this radar example is pretty complex one. Good starting point is example manual  - located: 
[YOUR_S32DS_INSTALL_PATH]\S32DS_Power_v2017.R1/S32DS/S32_RSDK_S32R274_RTM_1.0.0/Docs/RSDK_Reference_Manual/rsdk_sampleapps.html

Related to prinf - the UART driver is not part of example. Easiest way how to get debug printf messages (without Lauterbach)  is use printf via PE Micro. For that you need to change the C library to one supporting I/O (you need to change for both core projects): 

pastedImage_1.png

And define PE_SEMIHOSTING_EN (again for both core projects). 

pastedImage_2.png

Now, you should be able see DbgPrintMsg() in debug console. Anyway - I'm afraid that this example was testing with Lauterbach only. There is no info in example description that other probes (like PE Micro) are supported. 

Hope it helps. 

Jiri

在原帖中查看解决方案

3 回复数
1,652 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

this radar example is pretty complex one. Good starting point is example manual  - located: 
[YOUR_S32DS_INSTALL_PATH]\S32DS_Power_v2017.R1/S32DS/S32_RSDK_S32R274_RTM_1.0.0/Docs/RSDK_Reference_Manual/rsdk_sampleapps.html

Related to prinf - the UART driver is not part of example. Easiest way how to get debug printf messages (without Lauterbach)  is use printf via PE Micro. For that you need to change the C library to one supporting I/O (you need to change for both core projects): 

pastedImage_1.png

And define PE_SEMIHOSTING_EN (again for both core projects). 

pastedImage_2.png

Now, you should be able see DbgPrintMsg() in debug console. Anyway - I'm afraid that this example was testing with Lauterbach only. There is no info in example description that other probes (like PE Micro) are supported. 

Hope it helps. 

Jiri

1,651 次查看
chidvilas_y
Contributor II

I've followed this with the SPT example given in the SDK. But the file operations are not working. Can you tell where could be the problem? 

0 项奖励
回复
1,651 次查看
chidvilas_y
Contributor II

Thanks Jiri. It is helpful.

0 项奖励
回复