<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32KのトピックRe: No rule to make target '{BaseProjDir}/Project_Settings/Linker_Files/S32K312_flash.ld' needby by</title>
    <link>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2078533#M47658</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I appreciate the response!&amp;nbsp; I actually got a little further and no longer am getting the same error.&amp;nbsp; This was by following the tutorial on the Eclipse forum that you shared.&amp;nbsp; I think I just needed to change the startup code to be a cpp file.&lt;/P&gt;&lt;P&gt;I'm a little confused when you say the RTD packages are not compatible with C++.&amp;nbsp; In all of the RTD header files in my project, there is linkage to C when compiling a C++ application.&amp;nbsp; They all have the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#ifdef __cplusplus
extern "C"{
#endif

////// File Code

#ifdef __cplusplus
}
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With some of the other controllers I've used, the driver code uses similar linkage and I've always assumed that this is how the library are compatible with C.&amp;nbsp; And at this point, I'm actually able to build the code without and errors or warnings!&lt;/P&gt;&lt;P&gt;However, when I try run the code with the debugger, I'm getting a new error.&amp;nbsp; The debugging session starts, and then there seems to be errors with the Disassembly process.&amp;nbsp; In the Disassemble window in S32DS, it shows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fffffff6:   movs    r0, r0
fffffff8:   movs    r0, r0
fffffffa:   movs    r0, r0
fffffffc:   movs    r0, r0
fffffffe:   movs    r0, r0
100000000:   Unable to retrieve disassembly data from backend.
100000001:   Unable to retrieve disassembly data from backend.
100000002:   Unable to retrieve disassembly data from backend.
100000003:   Unable to retrieve disassembly data from backend.
100000004:   Unable to retrieve disassembly data from backend.
100000005:   Unable to retrieve disassembly data from backend.
100000006:   Unable to retrieve disassembly data from backend.
100000007:   Unable to retrieve disassembly data from backend.&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Where as when I compile the same project in C the memory seems to be filling in a little more as I would expect:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;569           ldr r3, =ITCM_DECOUPLE_END
20400210:   strh    r0, [r0, #0]
20400212:   movs    r0, r0
584           ldr  r0, =RESET_CATCH_CORE
20400214:   strb    r0, [r6, r5]
20400216:   movs    r0, #64 @ 0x40
597           ldr  r0, =__Stack_dtcm_start
20400218:   movs    r0, r0
2040021a:   movs    r0, #1
731           ldr  r0, =MSCM_CPXNUM
2040021c:   movs    r4, r0
2040021e:   ands    r6, r4
747       ldr  r1, =__RAM_INTERRUPT_START
20400220:   movs    r0, r0
20400222:   movs    r0, #0
66        {
          main:
20400224:   push    {r3, lr}
68            Clock_Ip_Init(clockConfig);
20400226:   ldr     r0, [pc, #40]   @ (0x20400250 &amp;lt;main+44&amp;gt;)
79                if (1U == toggleLed)
20400228:   ldr     r4, [pc, #40]   @ (0x20400254 &amp;lt;main+48&amp;gt;)
68            Clock_Ip_Init(clockConfig);
2040022a:   bl      0x20400ea8 &amp;lt;Clock_Ip_Init&amp;gt;
81                    Siul2_Dio_Ip_TogglePins(LED_PORT, (1UL &amp;lt;&amp;lt; LED_PIN));
2040022e:   ldr     r5, [pc, #40]   @ (0x20400258 &amp;lt;main+52&amp;gt;)
70            Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals,g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
20400230:   movs    r0, #1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why I would be having these errors when trying to run the project in C++?&amp;nbsp; My hunch has to do with the linker files, but I've never needed to modify these before.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 16:47:06 GMT</pubDate>
    <dc:creator>sam-azak</dc:creator>
    <dc:date>2025-04-10T16:47:06Z</dc:date>
    <item>
      <title>No rule to make target '{BaseProjDir}/Project_Settings/Linker_Files/S32K312_flash.ld' needby by</title>
      <link>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2073962#M47470</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm working on importing a project and converting it to a C++ project.&amp;nbsp; I did this by creating a new project and then using the "Convert to a C/C++ Project" option.&amp;nbsp; I've tried this on several projects and I always get the same error.&amp;nbsp; It is:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** No rule to make target '{WorkSpaceDir}/CPPTest/Project_Settings/Linker_Files/S32K312_flash.ld', needed by 'CPPTest.elf'. Stop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've tried adjusting file paths and build paths but I can't seem to sort out the problem.&amp;nbsp; Is there a specific thing I need to change in the build variables.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 21:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2073962#M47470</guid>
      <dc:creator>sam-azak</dc:creator>
      <dc:date>2025-04-03T21:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: No rule to make target '{BaseProjDir}/Project_Settings/Linker_Files/S32K312_flash.ld' needby by</title>
      <link>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2074497#M47495</link>
      <description>&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248490"&gt;@sam-azak&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunately, the RTD packages are not compatible with C++. S32DS is not determined for creating generic C/C++ project. S32DS is determined for projects related to specific microcontroller with the required SDK/RTD (S32DS Project &amp;gt; select appropriate microcontroller).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The option for a C++ project is available only because S32DS is based on Eclipse, so it is not recommended creating project this way in S32DS at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are some workarounds, (like you mentioned, converting the project to C++ after importing the RTD package) but the functionality is not guaranteed, you can see some discussions about the topic below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/C-C-S32DS-Project/td-p/1791108" target="_blank" rel="noopener" shape="rect"&gt;Solved: C/C++ S32DS Project - NXP Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K3xx-S32DS-created-quot-Application-Project-quot-incompatible/td-p/1766518" target="_blank" rel="noopener" shape="rect"&gt;Solved: S32K3xx: S32DS created "Application Project" incompatible with RTD - NXP Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://mcuoneclipse.com/2020/07/11/from-c-to-c-converting-eclipse-c-projekts/#:~:text=One%20way%20is%20to%20use%20the%20File%20%3E" target="_blank" rel="noopener" shape="rect"&gt;From C to C++: Converting Eclipse C Projects | MCU on Eclipse&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV&gt;You can try some solutions from those links. Specifically, the second thread talks about the linker file when generating C++ projects&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;BR /&gt;Julián&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Apr 2025 21:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2074497#M47495</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-04-04T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: No rule to make target '{BaseProjDir}/Project_Settings/Linker_Files/S32K312_flash.ld' needby by</title>
      <link>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2078533#M47658</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I appreciate the response!&amp;nbsp; I actually got a little further and no longer am getting the same error.&amp;nbsp; This was by following the tutorial on the Eclipse forum that you shared.&amp;nbsp; I think I just needed to change the startup code to be a cpp file.&lt;/P&gt;&lt;P&gt;I'm a little confused when you say the RTD packages are not compatible with C++.&amp;nbsp; In all of the RTD header files in my project, there is linkage to C when compiling a C++ application.&amp;nbsp; They all have the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#ifdef __cplusplus
extern "C"{
#endif

////// File Code

#ifdef __cplusplus
}
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With some of the other controllers I've used, the driver code uses similar linkage and I've always assumed that this is how the library are compatible with C.&amp;nbsp; And at this point, I'm actually able to build the code without and errors or warnings!&lt;/P&gt;&lt;P&gt;However, when I try run the code with the debugger, I'm getting a new error.&amp;nbsp; The debugging session starts, and then there seems to be errors with the Disassembly process.&amp;nbsp; In the Disassemble window in S32DS, it shows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fffffff6:   movs    r0, r0
fffffff8:   movs    r0, r0
fffffffa:   movs    r0, r0
fffffffc:   movs    r0, r0
fffffffe:   movs    r0, r0
100000000:   Unable to retrieve disassembly data from backend.
100000001:   Unable to retrieve disassembly data from backend.
100000002:   Unable to retrieve disassembly data from backend.
100000003:   Unable to retrieve disassembly data from backend.
100000004:   Unable to retrieve disassembly data from backend.
100000005:   Unable to retrieve disassembly data from backend.
100000006:   Unable to retrieve disassembly data from backend.
100000007:   Unable to retrieve disassembly data from backend.&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Where as when I compile the same project in C the memory seems to be filling in a little more as I would expect:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;569           ldr r3, =ITCM_DECOUPLE_END
20400210:   strh    r0, [r0, #0]
20400212:   movs    r0, r0
584           ldr  r0, =RESET_CATCH_CORE
20400214:   strb    r0, [r6, r5]
20400216:   movs    r0, #64 @ 0x40
597           ldr  r0, =__Stack_dtcm_start
20400218:   movs    r0, r0
2040021a:   movs    r0, #1
731           ldr  r0, =MSCM_CPXNUM
2040021c:   movs    r4, r0
2040021e:   ands    r6, r4
747       ldr  r1, =__RAM_INTERRUPT_START
20400220:   movs    r0, r0
20400222:   movs    r0, #0
66        {
          main:
20400224:   push    {r3, lr}
68            Clock_Ip_Init(clockConfig);
20400226:   ldr     r0, [pc, #40]   @ (0x20400250 &amp;lt;main+44&amp;gt;)
79                if (1U == toggleLed)
20400228:   ldr     r4, [pc, #40]   @ (0x20400254 &amp;lt;main+48&amp;gt;)
68            Clock_Ip_Init(clockConfig);
2040022a:   bl      0x20400ea8 &amp;lt;Clock_Ip_Init&amp;gt;
81                    Siul2_Dio_Ip_TogglePins(LED_PORT, (1UL &amp;lt;&amp;lt; LED_PIN));
2040022e:   ldr     r5, [pc, #40]   @ (0x20400258 &amp;lt;main+52&amp;gt;)
70            Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals,g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
20400230:   movs    r0, #1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why I would be having these errors when trying to run the project in C++?&amp;nbsp; My hunch has to do with the linker files, but I've never needed to modify these before.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2078533#M47658</guid>
      <dc:creator>sam-azak</dc:creator>
      <dc:date>2025-04-10T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: No rule to make target '{BaseProjDir}/Project_Settings/Linker_Files/S32K312_flash.ld' needby by</title>
      <link>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2078665#M47663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248490"&gt;@sam-azak&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you tried to configure the linker file after converting the project?&lt;/P&gt;
&lt;P&gt;Navigate to C/C++ Build &amp;gt; Settings.&lt;BR /&gt;Under Tool Settings, find the C++ Linker section.&lt;BR /&gt;Add any necessary libraries and paths in the Libraries and Library search path sections.&lt;/P&gt;
&lt;P&gt;You can also try to add the linker file manually, as shown in this post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/C-C-S32DS-Project/m-p/1791108" target="_blank"&gt;Solved: C/C++ S32DS Project - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;That said, C++ implementation is unfortunately out of this community's scope of support.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 23:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/No-rule-to-make-target-BaseProjDir-Project-Settings-Linker-Files/m-p/2078665#M47663</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-04-10T23:03:03Z</dc:date>
    </item>
  </channel>
</rss>

