Configure the Debug by flash in S32DS

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

Configure the Debug by flash in S32DS

跳至解决方案
3,985 次查看
NancyW
Contributor I

Hello, I have a problem, i'm trying to run an existing project on S32G3 by debugging it by using Flash. I followed the steps to add the flash linker path but I couldn't find it so I add it my self, but it don't seems to be the solution because only the RAM linker is there.

Could you help me please or tell me where to find this linker to process Flash debuging (i.e. flash_linker.ld ) ?

Thanks : )

0 项奖励
回复
1 解答
3,943 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @NancyW 

Thanks for the reply.

As what I have mentioned, there is no on-chip flash on the S32G, the BootROM will fetch applications from external NVM and load it to the SRAM to run, it can not directly program Qflash, so the App data can not be moved to Qflash directly. it is part reason that there are no debug_flash examples.

Theoretically, the debug_flash may be implemented by enabling XIP and some more modification on the existing code,  but there are not examples nor document related to XIP on S32G, I suggest running/debugging the applications in SRAM.

Apologize for your inconvenience.

 

BR

Chenyin

在原帖中查看解决方案

0 项奖励
回复
6 回复数
3,673 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @NancyW 

You are welcome.

From my experience, it is possible to debug flash if your external QSPI could support XIP, the IVT may not be changed from the default QSPI one, and the address in linker files may have to be changed to the address range for QSPI, but I do not see guides/examples on S32DS to create such project for S32G, maybe examples from S32K could be useful for your reference, however, it is beyond my supporting scope, apologize for your inconvenience.

 

BR

Chenyin 

0 项奖励
回复
3,944 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @NancyW 

Thanks for the reply.

As what I have mentioned, there is no on-chip flash on the S32G, the BootROM will fetch applications from external NVM and load it to the SRAM to run, it can not directly program Qflash, so the App data can not be moved to Qflash directly. it is part reason that there are no debug_flash examples.

Theoretically, the debug_flash may be implemented by enabling XIP and some more modification on the existing code,  but there are not examples nor document related to XIP on S32G, I suggest running/debugging the applications in SRAM.

Apologize for your inconvenience.

 

BR

Chenyin

0 项奖励
回复
3,928 次查看
NancyW
Contributor I
Oh okay I see now, thanks you for your answers !
0 项奖励
回复
3,959 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @NancyW 

Thanks for your post.

May I know if you are working with a RDB3 or a custom board? 

From my opinion, debug_flash runs program from flash memory, debug_ram runs it from MCU's RAM, but on S32G3, there is no on-chip flash on the SOC, the applications are fetched from external NVM and running on SRAM, so that the existing examples from RTD could not support debug_flash in S32DS.

 

BR

Chenyin

0 项奖励
回复
3,719 次查看
NancyW
Contributor I

Hi, sorry to distrurb you again, I just have another question is it possible to debug using the external QSPI memory and how to do it in the S32DS ? Do it have something to do with the IVT ?

Thanks for your time again !

0 项奖励
回复
3,951 次查看
NancyW
Contributor I

Thank you for your answer, I am currently working with the RDB3. If I create a project from sctrach, can I use debug_flash? And how to use debug_flash because that’s what I want to do.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2088191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8S32DS%E4%B8%AD%E9%85%8D%E7%BD%AEFlash%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2088191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E9%80%9A%E8%BF%87%E4%BD%BF%E7%94%A8%20Flash%20%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%E5%9C%A8%20S32G3%20%E4%B8%8A%E8%BF%90%E8%A1%8C%E7%8E%B0%E6%9C%89%E9%A1%B9%E7%9B%AE%E3%80%82%E6%88%91%E6%8C%89%E7%85%A7%E6%AD%A5%E9%AA%A4%E6%B7%BB%E5%8A%A0%E4%BA%86%E9%97%AA%E5%AD%98%E9%93%BE%E6%8E%A5%E5%99%A8%E8%B7%AF%E5%BE%84%EF%BC%8C%E4%BD%86%E6%89%BE%E4%B8%8D%E5%88%B0%E5%AE%83%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E8%87%AA%E5%B7%B1%E6%B7%BB%E5%8A%A0%E4%BA%86%E5%AE%83%EF%BC%8C%E4%BD%86%E8%BF%99%E4%BC%BC%E4%B9%8E%E4%B8%8D%E6%98%AF%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%8F%AA%E6%9C%89%20RAM%20%E9%93%BE%E6%8E%A5%E5%99%A8%E5%9C%A8%E9%82%A3%E9%87%8C%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%A0%E8%83%BD%E5%B8%AE%E5%8A%A9%E6%88%91%E5%90%97%EF%BC%8C%E6%88%96%E8%80%85%E5%91%8A%E8%AF%89%E6%88%91%E5%9C%A8%E5%93%AA%E9%87%8C%E5%8F%AF%E4%BB%A5%E6%89%BE%E5%88%B0%E8%BF%99%E4%B8%AA%E9%93%BE%E6%8E%A5%E5%99%A8%E6%9D%A5%E5%A4%84%E7%90%86%20Flash%20%E8%B0%83%E8%AF%95%EF%BC%88%E5%8D%B3flash_linker.ld%20%EF%BC%89%EF%BC%9F%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%20%EF%BC%9A%20%EF%BC%89%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2091313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8S32DS%E4%B8%AD%E9%80%9A%E8%BF%87Flash%E9%85%8D%E7%BD%AE%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2091313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E5%BE%88%E6%8A%B1%E6%AD%89%E5%86%8D%E6%AC%A1%E6%89%93%E6%89%B0%E6%82%A8%EF%BC%8C%E6%88%91%E8%BF%98%E6%9C%89%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%20QSPI%20%E5%86%85%E5%AD%98%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%E4%BB%A5%E5%8F%8A%E5%A6%82%E4%BD%95%E5%9C%A8%20S32DS%20%E4%B8%AD%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%EF%BC%9F%E8%BF%99%E5%92%8C%20IVT%20%E6%9C%89%E5%85%B3%E7%B3%BB%E5%90%97%EF%BC%9F%3C%2FP%3E%3CP%3E%E5%86%8D%E6%AC%A1%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2089106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8S32DS%E4%B8%AD%E9%80%9A%E8%BF%87Flash%E9%85%8D%E7%BD%AE%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2089106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%93%A6%EF%BC%8C%E5%A5%BD%E7%9A%84%EF%BC%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E6%98%8E%E7%99%BD%E4%BA%86%EF%BC%8C%E8%B0%A2%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%9B%9E%E7%AD%94%EF%BC%81%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2088464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8S32DS%E4%B8%AD%E9%80%9A%E8%BF%87Flash%E9%85%8D%E7%BD%AE%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2088464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%9B%9E%E7%AD%94%EF%BC%8C%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20RDB3%E3%80%82%E5%A6%82%E6%9E%9C%E6%88%91%E4%BB%8E%20sctrach%20%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20debug_flash%20%E5%90%97%EF%BC%9F%E4%BB%A5%E5%8F%8A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20debug_flash%EF%BC%8C%E5%9B%A0%E4%B8%BA%E8%BF%99%E5%B0%B1%E6%98%AF%E6%88%91%E6%83%B3%E8%A6%81%E5%81%9A%E7%9A%84%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E