Skip to content

Commit

Permalink
Fix stack overflow in VC 100hz task (#1276)
Browse files Browse the repository at this point in the history
### Changelist 
<!-- Give a list of the changes covered in this PR. This will help both
you and the reviewer keep this PR within scope. -->

### Testing Done
<!-- Outline the testing that was done to demonstrate the changes are
solid. This could be unit tests, integration tests, testing on the car,
etc. Include relevant code snippets, screenshots, etc as needed. -->

### Resolved Tickets
<!-- Link any tickets that this PR resolves. -->

Co-authored-by: Will Chaba <[email protected]>
  • Loading branch information
Jiajun-Huang and will-chaba authored May 24, 2024
1 parent a20e8db commit 6c33fa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firmware/quadruna/VC/src/cubemx/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ UART_HandleTypeDef huart3;

/* Definitions for Task100Hz */
osThreadId_t Task100HzHandle;
uint32_t Task100HzBuffer[512];
uint32_t Task100HzBuffer[8096];
osStaticThreadDef_t Task100HzControlBlock;
const osThreadAttr_t Task100Hz_attributes = {
.name = "Task100Hz",
Expand Down
2 changes: 1 addition & 1 deletion firmware/quadruna/VC/src/cubemx/VC.ioc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ FDCAN1.StdFiltersNbr=1
FDCAN1.TxFifoQueueElmtsNbr=1
FREERTOS.FootprintOK=true
FREERTOS.IPParameters=Tasks01,FootprintOK
FREERTOS.Tasks01=Task100Hz,40,512,RunTask100Hz,Default,NULL,Static,Task100HzBuffer,Task100HzControlBlock;TaskCanTx,16,512,RunCanTxTask,Default,NULL,Static,canTxTaskBuffer,canTxTaskControlBlock;TaskCanRx,16,512,RunCanRxTask,Default,NULL,Static,canRxTaskBuffer,canRxTaskControlBlock;Task1kHz,48,512,RunTask1kHz,Default,NULL,Static,Task1kHzBuffer,Task1kHzControlBlock;Task1Hz,32,512,RunTask1Hz,Default,NULL,Static,Task1HzBuffer,Task1HzControlBlock;TaskLogging,8,1024,RunTaskLogging,Default,NULL,Static,TaskLoggingBuffer,TaskLoggingControlBlock
FREERTOS.Tasks01=Task100Hz,40,8096,RunTask100Hz,Default,NULL,Static,Task100HzBuffer,Task100HzControlBlock;TaskCanTx,16,512,RunCanTxTask,Default,NULL,Static,canTxTaskBuffer,canTxTaskControlBlock;TaskCanRx,16,512,RunCanRxTask,Default,NULL,Static,canRxTaskBuffer,canRxTaskControlBlock;Task1kHz,48,512,RunTask1kHz,Default,NULL,Static,Task1kHzBuffer,Task1kHzControlBlock;Task1Hz,32,512,RunTask1Hz,Default,NULL,Static,Task1HzBuffer,Task1HzControlBlock;TaskLogging,8,1024,RunTaskLogging,Default,NULL,Static,TaskLoggingBuffer,TaskLoggingControlBlock
File.Version=6
GPIO.groupedBy=Group By Peripherals
I2C1.IPParameters=Timing
Expand Down
2 changes: 1 addition & 1 deletion firmware/quadruna/VC/src/cubemx/VC.ioc.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
58c00765226964dcc634491926dc1d8a
43ef53a33ef962205a8b320f5fbc6ded

0 comments on commit 6c33fa7

Please sign in to comment.