Forum > Embedded - ARM

mir toolset not working

<< < (2/4) > >>

petex:
project 1 LPI file



--- Code: XML  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---<?xml version="1.0" encoding="UTF-8"?><CONFIG>  <ProjectOptions>    <Version Value="12"/>    <PathDelim Value="\"/>    <General>      <Flags>        <MainUnitHasCreateFormStatements Value="False"/>        <MainUnitHasTitleStatement Value="False"/>        <MainUnitHasScaledStatement Value="False"/>        <CompatibilityMode Value="True"/>      </Flags>      <SessionStorage Value="InProjectDir"/>      <Title Value="project1"/>      <UseAppBundle Value="False"/>      <ResourceType Value="res"/>    </General>    <BuildModes Count="1">      <Item1 Name="Default" Default="True"/>    </BuildModes>    <PublishOptions>      <Version Value="2"/>      <UseFileFilters Value="True"/>    </PublishOptions>    <RunParams>      <FormatVersion Value="2"/>    </RunParams>    <Units Count="1">      <Unit0>        <Filename Value="project1.lpr"/>        <IsPartOfProject Value="True"/>      </Unit0>    </Units>  </ProjectOptions>  <CompilerOptions>    <Version Value="11"/>    <PathDelim Value="\"/>    <Target>      <Filename Value="project1"/>    </Target>    <SearchPaths>      <IncludeFiles Value="$(ProjOutDir)"/>      <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>    </SearchPaths>    <CodeGeneration>      <TargetProcessor Value="ARMV7M"/>      <TargetCPU Value="arm"/>      <TargetOS Value="embedded"/>    </CodeGeneration>    <Other>      <CustomOptions Value="-Wpbluepill-dbluepill-godwarfsets-godwarfcpp"/>    </Other>  </CompilerOptions>  <Debugging>    <Exceptions Count="3">      <Item1>        <Name Value="EAbort"/>      </Item1>      <Item2>        <Name Value="ECodetoolError"/>      </Item2>      <Item3>        <Name Value="EFOpenError"/>      </Item3>    </Exceptions>  </Debugging></CONFIG>   
Toolset was installed to "C:\fpcupdeluxe-mir"

MiR:
The relevant entries are in, did you compile a cross compiler for armv7m?
If that is the case then try a full clean before build.

Minor thing:

-dbluepill is not needed anymore unless you need it for yourself.

I just now realized this entry:

Verbose: PPU Loading C:\fpcupdeluxe-mir\fpc\units\arm-embedded\system.ppu

and that is likely the cause of the issues.

This directory should be C:\fpcupdeluxe-mir\fpc\units\arm-embedded\armv7m/eabi/rtl/system.ppu

Not sure how this happened, can you please put your fpcupdeluxe binary in an empty directory, then delete fpcupdeluxe-mir and start fpcupdeluxe from the empty directory?

Then select sgain the  C:\fpcupdeluxe-mir directory and build fpc+lazarus and then build the compiler for arm-embedded armv7m.

Do not modify the settings in the subarch dialog, only select the subarch you would like to use and close the dialog



petex:
OK, have re-installed as directed.
Now get "Fatal: Can't find unit lnfodwrf used by project1" - had this before, can't remember how it was corrected though.



--- Quote ---Compile Project, OS: embedded, CPU: arm, Target: project1.elf: Exit code 1, Errors: 1, Hints: 2
Hint: Start of reading config file C:\fpcupdeluxe-mir\fpc\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\fpcupdeluxe-mir\fpc\bin\x86_64-win64\fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-r48734 [2021/03/11] for arm
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Embedded
Verbose: Compiling project1.lpr
Fatal: Can't find unit lnfodwrf used by project1
Verbose: Compilation aborted
Verbose: C:\fpcupdeluxe-mir\fpc\bin\x86_64-win64\ppcrossarm.exe returned an error exitcode


--- End quote ---

MiR:
Sorry, no idea, I think I had this once when I compiled code with -dDEBUG but I may be totally wrong here.

Can you please clone pico code (and install armv6m crosscompiler) or compile some mbf projects to find out if it is your project or a general problem?

DonAlfredo:
Disable line-info in debug options or disable debug as a whole.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version