Configure the Debug by flash in S32DS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Configure the Debug by flash in S32DS

ソリューションへジャンプ
4,015件の閲覧回数
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,973件の閲覧回数
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,703件の閲覧回数
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,974件の閲覧回数
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,958件の閲覧回数
NancyW
Contributor I
Oh okay I see now, thanks you for your answers !
0 件の賞賛
返信
3,989件の閲覧回数
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,749件の閲覧回数
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,981件の閲覧回数
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%3ES32DS%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AB%E3%82%88%E3%82%8B%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2088191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E7%A7%81%E3%81%AF%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%81%E7%A7%81%E3%81%AFFlash%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%9D%E3%82%8C%E3%82%92%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6S32G3%E3%81%A7%E6%97%A2%E5%AD%98%E3%81%AE%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%AA%E3%83%B3%E3%82%AB%E3%83%BC%E3%83%91%E3%82%B9%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E6%89%8B%E9%A0%86%E3%81%AB%E5%BE%93%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%89%E3%81%AA%E3%81%8B%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%A7%E8%87%AA%E5%88%86%E3%81%A7%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81RAM%E3%83%AA%E3%83%B3%E3%82%AB%E3%83%BC%E3%81%97%E3%81%8B%E5%AD%98%E5%9C%A8%E3%81%97%E3%81%AA%E3%81%84%E3%81%9F%E3%82%81%E3%80%81%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3EFlash%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%82%92%E5%87%A6%E7%90%86%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E3%81%93%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AB%E3%81%8C%E3%81%A9%E3%81%93%E3%81%AB%E3%81%82%E3%82%8B%E3%81%8B%E6%95%99%E3%81%88%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84(%E3%81%A4%E3%81%BE%E3%82%8A%E3%80%81flash_linker.ld%20)%20%3F%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%20%3A%20)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2091313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32DS%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AB%E3%82%88%E3%82%8B%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2091313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E5%86%8D%E3%81%B3%E3%81%82%E3%81%AA%E3%81%9F%E3%82%92%E6%B7%B7%E4%B9%B1%E3%81%95%E3%81%9B%E3%81%A6%E7%94%B3%E3%81%97%E8%A8%B3%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8C%E3%80%81%E7%A7%81%E3%81%AF%E3%81%A1%E3%82%87%E3%81%86%E3%81%A9%E5%88%A5%E3%81%AE%E8%B3%AA%E5%95%8F%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E5%A4%96%E9%83%A8QSPI%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E5%8F%AF%E8%83%BD%E3%81%A7%E3%81%99%E3%81%8B%E3%80%81%E3%81%9D%E3%81%97%E3%81%A6S32DS%E3%81%A7%E3%81%9D%E3%82%8C%E3%82%92%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E8%A1%8C%E3%81%86%E3%81%AE%E3%81%A7%E3%81%99%E3%81%8B%3FIVT%E3%81%A8%E4%BD%95%E3%81%8B%E9%96%A2%E4%BF%82%E3%81%8C%E3%81%82%E3%82%8B%E3%81%AE%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FP%3E%3CP%3E%E3%81%BE%E3%81%9F%E3%81%8A%E6%99%82%E9%96%93%E3%82%92%E3%81%84%E3%81%9F%E3%81%A0%E3%81%8D%E3%80%81%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2089106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32DS%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AB%E3%82%88%E3%82%8B%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2089106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%82%E3%81%82%E3%80%81%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%81%E4%BB%8A%E3%81%AF%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%81%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E7%AD%94%E3%81%88%E3%82%92%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2088464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32DS%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AB%E3%82%88%E3%82%8B%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2088464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%94%E5%9B%9E%E7%AD%94%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%81%E7%A7%81%E3%81%AF%E7%8F%BE%E5%9C%A8RDB3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82sctrach%E3%81%8B%E3%82%89%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81debug_flash%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F%E3%81%9D%E3%81%97%E3%81%A6%E3%80%81debug_flash%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%81%AF%E3%80%81%E3%81%9D%E3%82%8C%E3%81%8C%E7%A7%81%E3%81%8C%E3%82%84%E3%82%8A%E3%81%9F%E3%81%84%E3%81%93%E3%81%A8%E3%81%A0%E3%81%8B%E3%82%89%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E