Configure the Debug by flash in S32DS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure the Debug by flash in S32DS

Jump to solution
3,839 Views
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 Kudos
Reply
1 Solution
3,797 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
3,527 Views
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 Kudos
Reply
3,798 Views
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 Kudos
Reply
3,782 Views
NancyW
Contributor I
Oh okay I see now, thanks you for your answers !
0 Kudos
Reply
3,813 Views
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 Kudos
Reply
3,573 Views
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 Kudos
Reply
3,805 Views
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 Kudos
Reply