Exported makefile has malformed file path for source files on Windows 10

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Exported makefile has malformed file path for source files on Windows 10

      When generating the makefile from a Segger Embedded Studio Projekct on WIndows 10, the makefile breaks when used with GNU Make 3.81 on Windows 10.

      The file path for the source files are in the form D:\Projekte\PT-10\trunk\UiBoard\projects\ble_peripheral\ble_app_pt10_freertos\DefPeri.c, with \ and without quotes. The makefile works fine when the file path is quoted manually like this "D:\Projekte\PT-10\trunk\UiBoard\projects\ble_peripheral\ble_app_pt10_freertos\DefPeri.c"

      The command to make the .ld file has also an issue, the file is not created.
      "D:/Programme/SEGGER/SEGGER Embedded Studio for ARM 4.30c/bin/mkld" -memory-map-segments "FLASH RX 0x0 0x80000;RAM RWX 0x20000000 0x10000" -section-placement-file D:/Projekte/VonArx/PT-10/trunk/UiBoard/projects/ble_peripheral/ble_app_pt10_freertos/pt10ui/s132/ses/flash_placement.xml -check-segment-overflow -symbols __STACKSIZE__=2048;__STACKSIZE_PROCESS__=0;__HEAPSIZE__=1024 -section-placement-macros FLASH_PH_START=0x0;FLASH_PH_SIZE=0x80000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x10000;FLASH_START=0x26000;FLASH_SIZE=0x5a000;RAM_START=0x20002BB8;RAM_SIZE=0xD448 D:/Projekte/VonArx/PT-10/trunk/UiBoard/projects/ble_peripheral/ble_app_pt10_freertos/pt10ui/s132/ses/Output/PP32/Obj/ble_app_pt10_freertos_pt10ui_s132_PP32.ld

      I want to use the makefile as input for the CompileDb tool to get a compile database.

      Happy coding
    • Hello Christian,

      Thank you for your inquiry.
      The makefile exported from Embedded Studio sets paths as they are used inside Embedded Studio. This will also work for most makefile compatible third party tools.
      If you use other third party tools that require some other format you need to edit this manually. Currently there are no plans to change Embedded Studios behaviour here as this might break compatibility to other tools.

      Best regards,
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.