Skip to content
Snippets Groups Projects
Commit 9643e652 authored by Carlo Alessandro Nicolau's avatar Carlo Alessandro Nicolau
Browse files

Enabled auto-rescue actions

parent 2988f7da
No related branches found
No related tags found
No related merge requests found
Showing
with 33851 additions and 90864 deletions
No preview for this file type
......@@ -2,15 +2,15 @@
### Memory Usage ###
Unused memory ranges:
4h - 7h
7D7h - 7D7h
4452h - 1FFFFFh
767h - 767h
39A0h - 1FFFFFh
200008h - 2FFFFFh
30000Eh - 30003Fh
dist/ARCA/production/BPD-V01-FIRMWARE.X.production.hex ranges:
dist/ARCA/production\BPD-V01-FIRMWARE.X.production.hex ranges:
0h - 3h
8h - 7D6h
7D8h - 4451h
8h - 766h
768h - 399Fh
200000h - 200007h
300000h - 30000Dh
......@@ -25,7 +25,7 @@
T = Trailing code
& = Find & replace opcode
X = Find & delete opcode
1 = dist/ARCA/production/BPD-V01-FIRMWARE.X.production.hex
1 = dist/ARCA/production\BPD-V01-FIRMWARE.X.production.hex
00000000: 1111----11111111111111111111111111111111111111111111111111111111
00000040: 1111111111111111111111111111111111111111111111111111111111111111
00000080: 1111111111111111111111111111111111111111111111111111111111111111
......@@ -55,9 +55,9 @@
00000680: 1111111111111111111111111111111111111111111111111111111111111111
000006C0: 1111111111111111111111111111111111111111111111111111111111111111
00000700: 1111111111111111111111111111111111111111111111111111111111111111
00000740: 1111111111111111111111111111111111111111111111111111111111111111
00000740: 111111111111111111111111111111111111111-111111111111111111111111
00000780: 1111111111111111111111111111111111111111111111111111111111111111
000007C0: 11111111111111111111111-1111111111111111111111111111111111111111
000007C0: 1111111111111111111111111111111111111111111111111111111111111111
00000800: 1111111111111111111111111111111111111111111111111111111111111111
00000840: 1111111111111111111111111111111111111111111111111111111111111111
00000880: 1111111111111111111111111111111111111111111111111111111111111111
......@@ -256,49 +256,6 @@
000038C0: 1111111111111111111111111111111111111111111111111111111111111111
00003900: 1111111111111111111111111111111111111111111111111111111111111111
00003940: 1111111111111111111111111111111111111111111111111111111111111111
00003980: 1111111111111111111111111111111111111111111111111111111111111111
000039C0: 1111111111111111111111111111111111111111111111111111111111111111
00003A00: 1111111111111111111111111111111111111111111111111111111111111111
00003A40: 1111111111111111111111111111111111111111111111111111111111111111
00003A80: 1111111111111111111111111111111111111111111111111111111111111111
00003AC0: 1111111111111111111111111111111111111111111111111111111111111111
00003B00: 1111111111111111111111111111111111111111111111111111111111111111
00003B40: 1111111111111111111111111111111111111111111111111111111111111111
00003B80: 1111111111111111111111111111111111111111111111111111111111111111
00003BC0: 1111111111111111111111111111111111111111111111111111111111111111
00003C00: 1111111111111111111111111111111111111111111111111111111111111111
00003C40: 1111111111111111111111111111111111111111111111111111111111111111
00003C80: 1111111111111111111111111111111111111111111111111111111111111111
00003CC0: 1111111111111111111111111111111111111111111111111111111111111111
00003D00: 1111111111111111111111111111111111111111111111111111111111111111
00003D40: 1111111111111111111111111111111111111111111111111111111111111111
00003D80: 1111111111111111111111111111111111111111111111111111111111111111
00003DC0: 1111111111111111111111111111111111111111111111111111111111111111
00003E00: 1111111111111111111111111111111111111111111111111111111111111111
00003E40: 1111111111111111111111111111111111111111111111111111111111111111
00003E80: 1111111111111111111111111111111111111111111111111111111111111111
00003EC0: 1111111111111111111111111111111111111111111111111111111111111111
00003F00: 1111111111111111111111111111111111111111111111111111111111111111
00003F40: 1111111111111111111111111111111111111111111111111111111111111111
00003F80: 1111111111111111111111111111111111111111111111111111111111111111
00003FC0: 1111111111111111111111111111111111111111111111111111111111111111
00004000: 1111111111111111111111111111111111111111111111111111111111111111
00004040: 1111111111111111111111111111111111111111111111111111111111111111
00004080: 1111111111111111111111111111111111111111111111111111111111111111
000040C0: 1111111111111111111111111111111111111111111111111111111111111111
00004100: 1111111111111111111111111111111111111111111111111111111111111111
00004140: 1111111111111111111111111111111111111111111111111111111111111111
00004180: 1111111111111111111111111111111111111111111111111111111111111111
000041C0: 1111111111111111111111111111111111111111111111111111111111111111
00004200: 1111111111111111111111111111111111111111111111111111111111111111
00004240: 1111111111111111111111111111111111111111111111111111111111111111
00004280: 1111111111111111111111111111111111111111111111111111111111111111
000042C0: 1111111111111111111111111111111111111111111111111111111111111111
00004300: 1111111111111111111111111111111111111111111111111111111111111111
00004340: 1111111111111111111111111111111111111111111111111111111111111111
00004380: 1111111111111111111111111111111111111111111111111111111111111111
000043C0: 1111111111111111111111111111111111111111111111111111111111111111
00004400: 1111111111111111111111111111111111111111111111111111111111111111
00004440: 111111111111111111----------------------------------------------
00003980: 11111111111111111111111111111111--------------------------------
00200000: 11111111--------------------------------------------------------
00300000: 11111111111111--------------------------------------------------
Memory Summary:
Program space used 444Dh ( 17485) of 10000h bytes ( 26.7%)
Program space used 399Bh ( 14747) of 10000h bytes ( 22.5%)
Data space used 5ABh ( 1451) of F38h bytes ( 37.2%)
Configuration bits used 7h ( 7) of 7h words (100.0%)
EEPROM space used 0h ( 0) of 400h bytes ( 0.0%)
ID Location space used 8h ( 8) of 8h bytes (100.0%)
Data stack space used 0h ( 0) of 8A1h bytes ( 0.0%)
No preview for this file type
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<project>
<executable name="dist/ARCA/production/BPD-V01-FIRMWARE.X.production.hex">
<executable name="dist/ARCA/production\BPD-V01-FIRMWARE.X.production.hex">
<memory name="program">
<units>bytes</units>
<length>65536</length>
<used>17485</used>
<free>48051</free>
<used>14747</used>
<free>50789</free>
</memory>
<memory name="data">
<units>bytes</units>
......
......@@ -208,12 +208,12 @@ err_t command_INVALID(void);
// Versioning data
#define COMMAND_TABLE_VERSION_NUM 34
#define TEMPLATE_GENERATION_YEAR 2021
#define TEMPLATE_GENERATION_MONTH 6
#define TEMPLATE_GENERATION_DAY 24
#define TEMPLATE_GENERATION_HOUR 21
#define TEMPLATE_GENERATION_MINUTE 21
#define TEMPLATE_GENERATION_SECOND 8
#define TEMPLATE_GENERATION_YEAR 2023
#define TEMPLATE_GENERATION_MONTH 10
#define TEMPLATE_GENERATION_DAY 26
#define TEMPLATE_GENERATION_HOUR 19
#define TEMPLATE_GENERATION_MINUTE 11
#define TEMPLATE_GENERATION_SECOND 0
#endif // _AUTOGENERATED_COMMANDSTABLE_H
......@@ -134,10 +134,10 @@
<targetDevice>PIC18F46K22</targetDevice>
<targetHeader></targetHeader>
<targetPluginBoard></targetPluginBoard>
<platformTool>noID</platformTool>
<platformTool></platformTool>
<languageToolchain>XC8</languageToolchain>
<languageToolchainVersion>2.20</languageToolchainVersion>
<platform>2</platform>
<platform>3</platform>
</toolsSet>
<packs>
<pack name="PIC18F-K_DFP" vendor="Microchip" version="1.4.87"/>
......@@ -161,7 +161,6 @@
</compileType>
<makeCustomizationType>
<makeCustomizationPreStepEnabled>false</makeCustomizationPreStepEnabled>
<makeUseCleanTarget>false</makeUseCleanTarget>
<makeCustomizationPreStep></makeCustomizationPreStep>
<makeCustomizationPostStepEnabled>false</makeCustomizationPostStepEnabled>
<makeCustomizationPostStep></makeCustomizationPostStep>
......@@ -302,7 +301,6 @@
</compileType>
<makeCustomizationType>
<makeCustomizationPreStepEnabled>false</makeCustomizationPreStepEnabled>
<makeUseCleanTarget>false</makeUseCleanTarget>
<makeCustomizationPreStep></makeCustomizationPreStep>
<makeCustomizationPostStepEnabled>false</makeCustomizationPostStepEnabled>
<makeCustomizationPostStep></makeCustomizationPostStep>
......@@ -429,45 +427,6 @@
<property key="programoptions.uselvpprogramming" value="false"/>
<property key="voltagevalue" value="5.0"/>
</ICD3PlatformTool>
<Tool>
<property key="AutoSelectMemRanges" value="auto"/>
<property key="Freeze Peripherals" value="true"/>
<property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
<property key="ToolFirmwareFilePath"
value="Press to browse for a specific firmware version"/>
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
<property key="debugoptions.useswbreakpoints" value="false"/>
<property key="hwtoolclock.frcindebug" value="false"/>
<property key="memories.aux" value="false"/>
<property key="memories.bootflash" value="false"/>
<property key="memories.configurationmemory" value="true"/>
<property key="memories.configurationmemory2" value="true"/>
<property key="memories.dataflash" value="true"/>
<property key="memories.eeprom" value="true"/>
<property key="memories.flashdata" value="true"/>
<property key="memories.id" value="true"/>
<property key="memories.instruction.ram" value="true"/>
<property key="memories.instruction.ram.ranges"
value="${memories.instruction.ram.ranges}"/>
<property key="memories.programmemory" value="true"/>
<property key="memories.programmemory.ranges" value="0-ffff"/>
<property key="poweroptions.powerenable" value="false"/>
<property key="programoptions.donoteraseauxmem" value="false"/>
<property key="programoptions.eraseb4program" value="true"/>
<property key="programoptions.preservedataflash" value="false"/>
<property key="programoptions.preservedataflash.ranges" value=""/>
<property key="programoptions.preserveeeprom" value="false"/>
<property key="programoptions.preserveeeprom.ranges" value="0-3ff"/>
<property key="programoptions.preserveprogram.ranges" value=""/>
<property key="programoptions.preserveprogramrange" value="false"/>
<property key="programoptions.preserveuserid" value="false"/>
<property key="programoptions.programcalmem" value="false"/>
<property key="programoptions.programuserotp" value="false"/>
<property key="programoptions.testmodeentrymethod" value="VDDFirst"/>
<property key="programoptions.usehighvoltageonmclr" value="false"/>
<property key="programoptions.uselvpprogramming" value="false"/>
<property key="voltagevalue" value="5.0"/>
</Tool>
<XC8-CO>
<property key="coverage-enable" value=""/>
<property key="stack-guidance" value="false"/>
......
......@@ -57,31 +57,31 @@ void rescue_reset_fired_status(void) {
void _rescue_action_step_0(void) {
// First rescue action:
// Close VEOC direct switch
// TODO rescue: switch_SWITCH_VEOC_DIRECT_set_closed();
switch_SWITCH_VEOC_DIRECT_set_closed();
}
void _rescue_action_step_1(void) {
// Second rescue action:
// Close VEOC return switch
// TODO rescue: switch_SWITCH_VEOC_RETURN_set_closed();
switch_SWITCH_VEOC_RETURN_set_closed();
}
void _rescue_action_step_2(void) {
// Third rescue action:
// Enable 12V DCDC
// TODO rescue: switch_SWITCH_12V_ENABLE_set_closed();
switch_SWITCH_12V_set_closed();
}
void _rescue_action_step_3(void) {
// Fourth rescue action:
// Close HYDRO switch
// TODO rescue: switch_SWITCH_HYDRO_set_closed();
switch_SWITCH_HYDRO_set_closed();
}
void _rescue_action_step_4(void) {
// Fifth rescue action:
// Close LBL switch
// TODO rescue: switch_SWITCH_LBL_set_closed();
switch_SWITCH_LBL_set_closed();
}
// rescue action list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment