Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ffa5eff
SFT-121 Generating code for aux bms v2
badeniran Jul 25, 2020
d3aac6e
SFT 167. Defined and initialized variables
badeniran Jul 25, 2020
9fd9672
SFT-175. Contactor control code and unit tests.
badeniran Aug 8, 2020
d487a7a
SFT-189 CAN Interrupt and Filter Config
badeniran Sep 12, 2020
823bdb4
Implemeted Read Aux Voltage Task
badeniran Sep 26, 2020
487b38d
SFT-190. Create functions and unit tests for orion work.
badeniran Sep 12, 2020
58ddba7
SFT 200. Creating tasks relating to CAN Tx work.
badeniran Sep 26, 2020
0b22cef
Finished dev work. Need to do unit tests
badeniran Nov 27, 2020
02a29a7
SFT 202. Functions and tests for aux voltage read.
badeniran Nov 27, 2020
8e8615c
Adding unit tests
badeniran Nov 28, 2020
e51aec9
SFT 203. Implementing error handling
badeniran Nov 28, 2020
867b45f
SFT 204. Implemented memory debug task
badeniran Nov 28, 2020
1bf52b1
Removed magic numbers. Added unit tests to travis.
badeniran Dec 5, 2020
d17b765
Changing travis for auxbmsv2
badeniran Dec 5, 2020
21ae8f7
Changed travis back. Trying using our own round function
badeniran Dec 5, 2020
56f7d8e
made round function comment clearer
badeniran Dec 5, 2020
9f1cb7e
Initial fixes done. At a stable state
badeniran Jan 29, 2021
7b216f4
Pushed up to OrionInterfaceTaskTest. Need to generate mocks for Trip.c
badeniran Jan 30, 2021
bec75ac
remocked trip.c, fix Trip and OrionInterface tests
JessieG123 Jan 30, 2021
4f7f06e
Create Aux BMS Unit tests
JessieG123 Jan 30, 2021
b0ca4ba
Change to contactorControlEvenFlags to defined macros
duan-le Mar 14, 2021
f0130f2
commented line 374-378 in main.c
JessieG123 Feb 19, 2022
5b8019a
Trying SPI global IRQ disabled
Mar 5, 2022
e2f49b2
Migrating to STM 6.4.0 from 6.0.0
Mar 5, 2022
9d7eec5
debug changes
JessieG123 Mar 19, 2022
f144d2c
debug changes
JessieG123 Mar 19, 2022
170d4c2
in v2 we only get one adc value which we use for calculation but in t…
JessieG123 Mar 23, 2022
42339fe
astyle and removing previous debug function in orionInterface
JessieG123 Mar 23, 2022
28a2914
fixed can rx to receive all messages from orion before putting in the…
JessieG123 Mar 28, 2022
99f6e93
Added tracealyzer capabilities to AuxBmsV2
VioletLiGonzales Apr 14, 2022
3af5b6a
Increased Number of Tasks for tracealyzer
VioletLiGonzales Apr 16, 2022
2f5e060
add function to get states of task
JessieG123 Apr 30, 2022
6616b3c
Fixed Delay problems, source of initial *prevWakeTime should be TaskT…
VioletLiGonzales May 8, 2022
c3e9ca1
Fixed failing readAuxVoltage, changed from DMA SPI to regular SPI call
VioletLiGonzales May 14, 2022
9cc248a
Updated Lights code to account for new AuxBMS can packet
VioletLiGonzales May 14, 2022
ccbbf71
Updated DriverControls to account for new AuxBms can packet
VioletLiGonzales May 14, 2022
67d81ba
SFT-327 Trip if you don’t have messages from the orion after 400ms
brian-ngyn Jun 3, 2022
af99a44
Added tripDueToOrionMessageTimeout to CAN
brian-ngyn Jun 3, 2022
b9f09c3
SFT 329 If isCurrentLow fails, trip the car
JessieG123 Jun 3, 2022
1049aef
Separated startup checks, reduced CanRxParser requirements for recevi…
VioletLiGonzales Jun 11, 2022
e0bdd58
Reworked startup sequence to only involve closing common,also ignore …
VioletLiGonzales Jun 11, 2022
a9d5e92
Changed contactor delays to depend on contactor type and whether its …
VioletLiGonzales Jun 12, 2022
4fbabd4
added CAN filter to let driver controls CAN message through to use to…
VioletLiGonzales Jun 12, 2022
c64a223
resolved implicit declaration in CheckCurrent, and expanded checkIfOr…
VioletLiGonzales Jun 12, 2022
487e442
fixed erroneous setup of extra CAN Filter, and changed contactor delays
VioletLiGonzales Jun 12, 2022
662d48a
Hotfix for protection trip when we manually open charge contactor, en…
VioletLiGonzales Jun 16, 2022
3cf7813
Added trip permanence, fixed race condition for closing dis/charge, a…
VioletLiGonzales Jun 17, 2022
eb9c9b7
ignored contactor error on orion interface contactor logic, avoided l…
VioletLiGonzales Jun 18, 2022
44f7f9a
fixed GloabAuxTrip bug
VioletLiGonzales Jun 19, 2022
1e373fd
added check for contactorsDisconnected in orionInterface to prevent o…
JessieG123 Jun 19, 2022
eff73db
setting strobeBms in disconnect contactor function which keeps it on …
JessieG123 Jun 19, 2022
4262fff
reduced time until strobeBms turns on on failed start up, now OrionIs…
VioletLiGonzales Jun 20, 2022
25498ef
increased engage contactor delay
VioletLiGonzales Jun 22, 2022
7c3cb40
Added new relay handling to isolate solar arrays from charge line whe…
VioletLiGonzales Jun 24, 2022
30af61a
made contactor delay naming more explicit, reduced delay for charge a…
VioletLiGonzales Jun 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ STM32L152-Discovery.elf.launch
*.tmp

# Other
.tags
.tags*
*swap
.fuse*
.vscode/
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ script:
- (cd EpsilonDriverControls && ./make.sh)
- (cd EpsilonCCS && make)
- (cd EpsilonAuxBMS && ./make.sh)
- (cd EpsilonAuxBmsV2 && ./make.sh)
- "! (./format.sh EpsilonCCS | grep Formatted)"
- "! (./format.sh EpsilonLights | grep Formatted)"
- "! (./format.sh EpsilonDriverControls | grep Formatted)"
- "! (./format.sh EpsilonAuxBMS | grep Formatted)"
- "! (./format.sh EpsilonAuxBmsV2 | grep Formatted)"

language: c
207 changes: 207 additions & 0 deletions EpsilonAuxBMS/Src/syscalls.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
/**
*****************************************************************************
**
** File : syscalls.c
**
** Author : Auto-generated by System workbench for STM32
**
** Abstract : System Workbench Minimal System calls file
**
** For more information about which c-functions
** need which of these lowlevel functions
** please consult the Newlib libc-manual
**
** Target : STMicroelectronics STM32
**
** Distribution: The file is distributed “as is,” without any warranty
** of any kind.
**
*****************************************************************************
** @attention
**
** <h2><center>&copy; COPYRIGHT(c) 2019 STMicroelectronics</center></h2>
**
** Redistribution and use in source and binary forms, with or without modification,
** are permitted provided that the following conditions are met:
** 1. Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
** 2. Redistributions in binary form must reproduce the above copyright notice,
** this list of conditions and the following disclaimer in the documentation
** and/or other materials provided with the distribution.
** 3. Neither the name of STMicroelectronics nor the names of its contributors
** may be used to endorse or promote products derived from this software
** without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
*****************************************************************************
*/

/* Includes */
#include <sys/stat.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>


/* Variables */
//#undef errno
extern int errno;
extern int __io_putchar(int ch) __attribute__((weak));
extern int __io_getchar(void) __attribute__((weak));

register char * stack_ptr asm("sp");

char *__env[1] = { 0 };
char **environ = __env;


/* Functions */
void initialise_monitor_handles()
{
}

int _getpid(void)
{
return 1;
}

int _kill(int pid, int sig)
{
errno = EINVAL;
return -1;
}

void _exit (int status)
{
_kill(status, -1);
while (1) {} /* Make sure we hang here */
}

__attribute__((weak)) int _read(int file, char *ptr, int len)
{
int DataIdx;

for (DataIdx = 0; DataIdx < len; DataIdx++)
{
*ptr++ = __io_getchar();
}

return len;
}

__attribute__((weak)) int _write(int file, char *ptr, int len)
{
int DataIdx;

for (DataIdx = 0; DataIdx < len; DataIdx++)
{
__io_putchar(*ptr++);
}
return len;
}

caddr_t _sbrk(int incr)
{
extern char end asm("end");
static char *heap_end;
char *prev_heap_end;

if (heap_end == 0)
heap_end = &end;

prev_heap_end = heap_end;
if (heap_end + incr > stack_ptr)
{
// write(1, "Heap and stack collision\n", 25);
// abort();
errno = ENOMEM;
return (caddr_t) -1;
}

heap_end += incr;

return (caddr_t) prev_heap_end;
}

int _close(int file)
{
return -1;
}


int _fstat(int file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}

int _isatty(int file)
{
return 1;
}

int _lseek(int file, int ptr, int dir)
{
return 0;
}

int _open(char *path, int flags, ...)
{
/* Pretend like we always fail */
return -1;
}

int _wait(int *status)
{
errno = ECHILD;
return -1;
}

int _unlink(char *name)
{
errno = ENOENT;
return -1;
}

int _times(struct tms *buf)
{
return -1;
}

int _stat(char *file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}

int _link(char *old, char *new)
{
errno = EMLINK;
return -1;
}

int _fork(void)
{
errno = EAGAIN;
return -1;
}

int _execve(char *name, char **argv, char **env)
{
errno = ENOMEM;
return -1;
}
Loading