1 Reply Latest reply on Oct 28, 2019 5:44 PM by IanF_56

    uVision Compile psoc6 error

    liro_3648021

      I use google translation, forgive my gibberish

       

      I am compiling under keil5 using the following code

      https://github.com/cypresssemiconductorco/psoc6pdl.git

      https://github.com/cypresssemiconductorco/psoc6hal.git

       

      https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062S3-4343W.git

       

       

      link file use:

      TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct

       

       

       

      But the link is wrong

      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6226E: Missing base address for region LR_IROM.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6292E: Ignoring unknown attribute 'FLASH_START' specified for region LR_IROM.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6292E: Ignoring unknown attribute 'FLASH_CM0P_SIZE' specified for region LR_IROM.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(108): error: L6292E: Ignoring unknown attribute 'FLASH_CM0P_SIZE' specified for region .cy_m0p_image.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6630E: Invalid token start expected number or ( but found F at position 11 on line 116
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6629E: Unmatched parentheses expecting ) but found F at position 11 on line 116
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6226E: Missing base address for region LR_IROM1.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(116): error: L6292E: Ignoring unknown attribute 'FLASH_START' specified for region LR_IROM1.
      ..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(116): error: L6228E: Expected '{', found '+...'.
      Not enough information to list image symbols.
      Not enough information to list load addresses in the image map.
      Finished: 2 information, 0 warning and 9 error messages.
      ".\obj\awtk.axf" - 9 Error(s), 0 Warning(s).
      

       

       

      I need a demo or help

      Thanks

        • 1. Re: uVision Compile psoc6 error
          IanF_56

          liro_3648021,

           

          This is because the scatter file is written for ARM Compiler version 6. If you change the project settings to use that version of the compiler, the linking will succeed:

           

          The details behind this are that ARM changed to using armclang for compiling in version 6. Version 5 used armcc. If you look at the first line of the scatter file you are using you will see this:

           

          #! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m0

           

          If you are using a scatter file for version 5, it would need to look like this:

           

          #! armcc -E

           

          Thank you,

           

          Ian Fyall

          Cypress Semiconductor

          1 of 1 people found this helpful