s32 DS 2018 build configuration

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

s32 DS 2018 build configuration

2,425 Views
dingding123
Contributor I

I created a demo project from the example, but I find there is no Release_FLASH and Debug_RAM options, only Debug_FLASH is available.anyone can help me to create other options?

More detail as below yellow part.

image.png

0 Kudos
Reply
1 Reply

2,122 Views
mikedoidge
NXP Employee
NXP Employee

Hello @dingding123,

One way to add the build configuration, is by duplicating the existing build config and then changing the linker file.

In the case you identified, the interest is to add the 'Debug_RAM' and 'Release' build configurations. The difference between the 'Debug_FLASH' and 'Debug_RAM' configurations is the the linker file used. The difference between the 'Debug_FLASH' and 'Release' configurations is the Optimization Level and Debug Level settings.

Here's how to add the 'Debug_RAM' configuration:

  1. Since this example project is coming from the SDK, the reference linker files are provided within the SDK as well. First, it is important to locate the linker files so the new one can easily be referenced when the new build configuration is created. Open the project folder from the Project Explorer and navigate to the 'Project_Settings\Linker_Files' folder. Right click on the linker file 'S32K1xx_flash.ld' and select 'Properties'.

    image.png

  2. Select the Resource properties and make note of the path listed for 'Resolve location:'. This path will vary depending upon the version of S32DS and the version of the SDK. In later editions, the file is copied to the project folder in the workspace instead of a link.

    image.png

  3. Now locate the folder on your machine and identify the RAM version of the linker file.

    image.png

  4. Returning to S32DS, close the Properties window and again look to the Project Explorer. Right click on the example project which to add build configuration and select 'Properties'

  5. Select C/C++ Build -> Settings, then click on 'Manage Configurations...'

    image.png

  6. Click 'New...'

    image.png

  7. Enter a name for the new build configuration, 'Debug_RAM'D

  8. Select option 'Existing configuration'

  9. Select the existing build configuration (for example, "Debug_FLASH').

    image.png

  10. Click OK 2x

  11. In the 'Configuration:' selection at the top, select the new build config.

    image.png

  12. In the 'Tool Settings' tab below, select 'Standard S32DS C Linker -> General'

  13. In the Script files (-T) section, edit the linker file which corresponds to the new build configuration.Click the 'Edit...' button

    image.png

  14. Click 'File system...'

    image.png

  15. Navigate to the location of the 'S32K116_17_ram.ld' file identified earlier. Select the file and click Open and then OK.

    image.png

  16. The path to the file should now be listed in the properties

    mikedoidge_0-1666902452338.png

  17. Click OK and then Yes to the rebuilding the indexer.

    mikedoidge_1-1666902675664.png

  18. Now the Debug_RAM option appears in the Build menu.

    mikedoidge_2-1666902825208.png

     

  19. To add the build configuration for 'Release', the process will be similar, but instead of changing the linker file the following two settings will need to be made:

    mikedoidge_3-1666904184148.png

    mikedoidge_4-1666904308456.png

     

Best Regards,

Mike