Skip to content

Commit

Permalink
Added current work and small fixes for bluepill board
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRing committed Jan 15, 2021
1 parent 9ce636e commit 83a9504
Show file tree
Hide file tree
Showing 593 changed files with 416,681 additions and 151,975 deletions.
15 changes: 11 additions & 4 deletions Samples/APA106Demo/APA106Demo-chipkitlenny.lpi
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="12"/>
<General>
<UseAppBundle Value="False"/>
</General>
Expand All @@ -17,6 +18,7 @@
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="APA106Demo"/>
</Target>
Expand All @@ -26,8 +28,9 @@
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<!--HeapSize Value="8192"/-->
<!--StackSize Value="8192"/-->
<TargetProcessor Value="MIPS32R2"/>
<TargetCPU Value="mipsel"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
Expand All @@ -39,10 +42,14 @@
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cpmips32r2
-XPmips-sde-elf-
<CustomOptions Value="
-Wpchipkitlenny
-dchipkitlenny
-godwarfsets
-godwarfcpp
"/>
</Other>
</CompilerOptions>
Expand Down
1 change: 1 addition & 0 deletions Samples/APA106Demo/APA106Demo-nucleof091rc.jdebug
@@ -0,0 +1 @@
/********************************************************************** * OnProjectLoad * * Function description * Project load routine. Required. * ***********************************************************************/ void OnProjectLoad (void) { // // Dialog-generated settings // Project.SetDevice ("stm32f091rc"); Project.SetHostIF ("USB", ""); Project.SetTargetIF ("SWD"); Project.SetTIFSpeed ("auto"); Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-M0.svd"); Project.AddSvdFile ("/Users/ring/devel/mbf/Samples/templates/STM32F0x2.svd"); // // User settings // File.Open ("APA106Demo.elf");}/********************************************************************** * TargetReset * * Function description * Replaces the default target device reset routine. Optional. * * Notes * This example demonstrates the usage when * debugging a RAM program on a Cortex-M target device * ***********************************************************************/ //void TargetReset (void) { // // unsigned int SP; // unsigned int PC; // unsigned int VectorTableAddr; // // Exec.Reset(); // // VectorTableAddr = Elf.GetBaseAddr(); // // if (VectorTableAddr != 0xFFFFFFFF) { // // Util.Log("Resetting Program."); // // SP = Target.ReadU32(VectorTableAddr); // Target.SetReg("SP", SP); // // PC = Target.ReadU32(VectorTableAddr + 4); // Target.SetReg("PC", PC); // } //} /********************************************************************** * BeforeTargetReset * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void BeforeTargetReset (void) { //} /********************************************************************** * AfterTargetReset * * Function description * Event handler routine. * - Sets the PC register to program reset value. * - Sets the SP register to program reset value on Cortex-M. * ***********************************************************************/ void AfterTargetReset (void) { unsigned int SP; unsigned int PC; unsigned int VectorTableAddr; VectorTableAddr = Elf.GetBaseAddr(); if (VectorTableAddr == 0xFFFFFFFF) { Util.Log("Project file error: failed to get program base"); } else { SP = Target.ReadU32(VectorTableAddr); Target.SetReg("SP", SP); PC = Target.ReadU32(VectorTableAddr + 4); Target.SetReg("PC", PC); }}/********************************************************************** * DebugStart * * Function description * Replaces the default debug session startup routine. Optional. * ***********************************************************************/ //void DebugStart (void) { //} /********************************************************************** * TargetConnect * * Function description * Replaces the default target IF connection routine. Optional. * ***********************************************************************/ //void TargetConnect (void) { //} /********************************************************************** * BeforeTargetConnect * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void BeforeTargetConnect (void) { //} /********************************************************************** * AfterTargetConnect * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void AfterTargetConnect (void) { //} /********************************************************************** * TargetDownload * * Function description * Replaces the default program download routine. Optional. * ***********************************************************************/ //void TargetDownload (void) { //} /********************************************************************** * BeforeTargetDownload * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void BeforeTargetDownload (void) { //} /********************************************************************** * AfterTargetDownload * * Function description * Event handler routine. * - Sets the PC register to program reset value. * - Sets the SP register to program reset value on Cortex-M. * ***********************************************************************/ void AfterTargetDownload (void) { unsigned int SP; unsigned int PC; unsigned int VectorTableAddr; VectorTableAddr = Elf.GetBaseAddr(); if (VectorTableAddr == 0xFFFFFFFF) { Util.Log("Project file error: failed to get program base"); } else { SP = Target.ReadU32(VectorTableAddr); Target.SetReg("SP", SP); PC = Target.ReadU32(VectorTableAddr + 4); Target.SetReg("PC", PC); }}/********************************************************************** * BeforeTargetDisconnect * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void BeforeTargetDisconnect (void) { //} /********************************************************************** * AfterTargetDisconnect * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void AfterTargetDisconnect (void) { //} /********************************************************************** * AfterTargetHalt * * Function description * Event handler routine. Optional. * ***********************************************************************/ //void AfterTargetHalt (void) { //}
Expand Down
15 changes: 11 additions & 4 deletions Samples/APA106Demo/APA106Demo-nucleof103rb.lpi
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="12"/>
<General>
<UseAppBundle Value="False"/>
</General>
Expand All @@ -17,6 +18,7 @@
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="APA106Demo"/>
</Target>
Expand All @@ -26,8 +28,9 @@
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<!--HeapSize Value="8192"/-->
<!--StackSize Value="8192"/-->
<TargetProcessor Value="ARMV7M"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
Expand All @@ -39,10 +42,14 @@
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv7m
-XParm-none-eabi-
<CustomOptions Value="
-Wpnucleof103rb
-dnucleof103rb
-godwarfsets
-godwarfcpp
"/>
</Other>
</CompilerOptions>
Expand Down
15 changes: 11 additions & 4 deletions Samples/APA106Demo/APA106Demo-nucleof303k8.lpi
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="12"/>
<General>
<UseAppBundle Value="False"/>
</General>
Expand All @@ -17,6 +18,7 @@
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="APA106Demo"/>
</Target>
Expand All @@ -26,8 +28,9 @@
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<!--HeapSize Value="8192"/-->
<!--StackSize Value="8192"/-->
<TargetProcessor Value="ARMV7EM"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
Expand All @@ -39,10 +42,14 @@
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv7em
-XParm-none-eabi-
<CustomOptions Value="
-Wpnucleof303k8
-dnucleof303k8
-godwarfsets
-godwarfcpp
"/>
</Other>
</CompilerOptions>
Expand Down
15 changes: 11 additions & 4 deletions Samples/APA106Demo/APA106Demo-nucleof401re.lpi
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="12"/>
<General>
<UseAppBundle Value="False"/>
</General>
Expand All @@ -17,6 +18,7 @@
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="APA106Demo"/>
</Target>
Expand All @@ -26,8 +28,9 @@
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<HeapSize Value="8192"/>
<StackSize Value="8192"/>
<!--HeapSize Value="8192"/-->
<!--StackSize Value="8192"/-->
<TargetProcessor Value="ARMV7EM"/>
<TargetCPU Value="arm"/>
<TargetOS Value="embedded"/>
</CodeGeneration>
Expand All @@ -39,10 +42,14 @@
</Debugging>
</Linking>
<Other>
<CustomOptions Value="-Cparmv7em
-XParm-none-eabi-
<CustomOptions Value="
-Wpnucleof401re
-dnucleof401re
-godwarfsets
-godwarfcpp
"/>
</Other>
</CompilerOptions>
Expand Down

0 comments on commit 83a9504

Please sign in to comment.