mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Enabled CCM RAM for stack. Added stack watermarking
This commit is contained in:
parent
8af1508c83
commit
2b3cc549e9
10 changed files with 204 additions and 5 deletions
|
@ -58,6 +58,7 @@ uint8_t cliMode = 0;
|
|||
#include "drivers/sdcard.h"
|
||||
#include "drivers/buf_writer.h"
|
||||
#include "drivers/serial_escserial.h"
|
||||
#include "drivers/stack_check.h"
|
||||
#include "drivers/vcd.h"
|
||||
|
||||
#include "fc/config.h"
|
||||
|
@ -3600,6 +3601,11 @@ static void cliStatus(char *cmdline)
|
|||
uint16_t i2cErrorCounter = 0;
|
||||
#endif
|
||||
|
||||
#ifdef STACK_CHECK
|
||||
cliPrintf("Stack used: %d, ", stackUsedSize());
|
||||
#endif
|
||||
cliPrintf("Stack size: %d, Stack address: 0x%x\r\n", stackTotalSize(), stackHighMem());
|
||||
|
||||
cliPrintf("Cycle Time: %d, I2C Errors: %d, config size: %d\r\n", cycleTime, i2cErrorCounter, sizeof(master_t));
|
||||
|
||||
#ifdef USE_SDCARD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue