Skip to content
Open
8 changes: 3 additions & 5 deletions Samples/Blinky/Blinky-samc21xpro.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -73,33 +73,31 @@
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="Blinky"/>
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/samc21/$NameOnly($(ProjFile))"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you did this because you had issues with build.
There are two problems here:
a) As we heavily use defines it is still unsave to do a simple build, better do a rebuild all from time to time
b) If we stay with this we will need a generic way to define the name of the 'samc21' directory because I also need to define the path to the executable for Debugging (Ozone)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No build issues.
I always use a single lpi for multiple targets.
And use "Compile many Modes" to generate all binaries at once.
And use the paths settings to split libraries and binaries for easy comparison.

</Target>
<SearchPaths>
<IncludeFiles Value="../../Source;$(ProjOutDir)"/>
<OtherUnitFiles Value="../../Source"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/samc21"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<HeapSize Value="8192"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why you removed Heap/StackSize Values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not anything particular.
My normal practice is to try to get things running with as little extra settings as possible.
So, its just a way for me to check if things are running without these extra settings.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am too lazy to look this up in details atm but I guess your code will sooner or later crash and burn when those are not properly set. But it may be that some defaults are applied when nothing is set, as said, too lazy to look this up atm.

<StackSize Value="8192"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here, any specific reason for this? Having Debug Info will not change the size of the deployed code, so why turn DebugInfo off?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, not anything particular.
My normal practice is to try to get things running with as little extra settings as possible.

<DebugInfoType Value="dsDwarf2"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv6m
-XP/usr/local/bin/arm-none-eabi-
-Wpsamc21xpro
-dsamc21xpro"/>
</Other>
Expand Down
116 changes: 116 additions & 0 deletions Samples/Blinky/Blinky-samd10xmini.lpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

@michael-ring michael-ring Sep 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments here as for the other lpi file, or did I overlook something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct: you did not overlook anything ... ;-)

<CONFIG>
<ProjectOptions>
<Version Value="11"/>
<General>
<Flags>
<LRSInOutputDirectory Value="False"/>
</Flags>
<MainUnit Value="0"/>
<UseAppBundle Value="False"/>
</General>
<BuildModes Count="1">
<Item1 Name="default" Default="True"/>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
</PublishOptions>
<RunParams>
<FormatVersion Value="2"/>
<Modes Count="1">
<Mode0 Name="default"/>
</Modes>
</RunParams>
<Units Count="5">
<Unit0>
<Filename Value="Blinky.lpr"/>
<IsPartOfProject Value="True"/>
<IsVisibleTab Value="True"/>
<TopLine Value="14"/>
<CursorPos Y="23"/>
<UsageCount Value="23"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
</Unit0>
<Unit1>
<Filename Value="../../Source/MBF.SAMCD.SystemCore.pas"/>
<EditorIndex Value="2"/>
<TopLine Value="205"/>
<CursorPos X="33" Y="245"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit1>
<Unit2>
<Filename Value="../../Source/MBF.Boards.SAMD.inc"/>
<EditorIndex Value="3"/>
<TopLine Value="13"/>
<CursorPos X="22" Y="30"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit2>
<Unit3>
<Filename Value="../../Source/MBF.SAMCD.GPIO.pas"/>
<EditorIndex Value="1"/>
<TopLine Value="89"/>
<CursorPos X="38" Y="308"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit3>
<Unit4>
<Filename Value="../../Source/MBF.Config.inc"/>
<EditorIndex Value="4"/>
<TopLine Value="51"/>
<CursorPos X="22" Y="72"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit4>
</Units>
<JumpHistory Count="3" HistoryIndex="2">
<Position1>
<Filename Value="Blinky.lpr"/>
<Caret Line="39" Column="61"/>
</Position1>
<Position2>
<Filename Value="../../Source/MBF.Boards.SAMD.inc"/>
<Caret Line="4"/>
</Position2>
<Position3>
<Filename Value="../../Source/MBF.Config.inc"/>
<Caret Line="72" Column="22" TopLine="51"/>
</Position3>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/samd10/$NameOnly($(ProjFile))"/>
</Target>
<SearchPaths>
<IncludeFiles Value="../../Source;$(ProjOutDir)"/>
<OtherUnitFiles Value="../../Source"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/samd10"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv6m
-Wpsamd10xmini
-dsamd10xmini"/>
</Other>
</CompilerOptions>
</CONFIG>
8 changes: 3 additions & 5 deletions Samples/Blinky/Blinky-samd20xpro.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -66,33 +66,31 @@
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="Blinky"/>
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/samd20/$NameOnly($(ProjFile))"/>
</Target>
<SearchPaths>
<IncludeFiles Value="../../Source;$(ProjOutDir)"/>
<OtherUnitFiles Value="../../Source"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/samd20"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<DebugInfoType Value="dsDwarf2"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv6m
-XP/usr/local/bin/arm-none-eabi-
-Wpsamd20xpro
-dsamd20xpro"/>
</Other>
Expand Down
12 changes: 5 additions & 7 deletions Samples/Blinky/Blinky-samd21xpro.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<Filename Value="Blinky.lpr"/>
<IsPartOfProject Value="True"/>
<IsVisibleTab Value="True"/>
<TopLine Value="34"/>
<CursorPos X="34" Y="80"/>
<TopLine Value="14"/>
<CursorPos X="34" Y="39"/>
<UsageCount Value="23"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
Expand Down Expand Up @@ -114,33 +114,31 @@
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="Blinky"/>
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/samd21/$NameOnly($(ProjFile))"/>
</Target>
<SearchPaths>
<IncludeFiles Value="../../Source;$(ProjOutDir)"/>
<OtherUnitFiles Value="../../Source"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/samd21"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<DebugInfoType Value="dsDwarf2"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv6m
-XP/usr/local/bin/arm-none-eabi-
-Wpsamd21xpro
-dsamd21xpro"/>
</Other>
Expand Down
Loading