microRusEFI used as Body Control Module BCM BCU
got stack too low warning with DBG_CAN
This commit is contained in:
parent
4733379be7
commit
7d0c8b4870
|
@ -708,7 +708,7 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX)
|
|||
* UNUSED_SIZE constants.
|
||||
*/
|
||||
#ifndef RAM_UNUSED_SIZE
|
||||
#define RAM_UNUSED_SIZE 6400
|
||||
#define RAM_UNUSED_SIZE 6200
|
||||
#endif
|
||||
#ifndef CCM_UNUSED_SIZE
|
||||
#define CCM_UNUSED_SIZE 2900
|
||||
|
|
|
@ -80,7 +80,7 @@ CAN_BTR_1k0 };
|
|||
|
||||
static const CANConfig *canConfig = &canConfig500;
|
||||
|
||||
class CanRead final : public ThreadController<256> {
|
||||
class CanRead final : public ThreadController<UTILITY_THREAD_STACK_SIZE> {
|
||||
public:
|
||||
CanRead()
|
||||
: ThreadController("CAN RX", NORMALPRIO)
|
||||
|
|
|
@ -124,7 +124,9 @@ void appendFast(Logging *logging, const char *text) {
|
|||
*/
|
||||
void Logging::vappendPrintf(const char *fmt, va_list arg) {
|
||||
#if ! EFI_UNIT_TEST
|
||||
efiAssertVoid(CUSTOM_ERR_6604, getCurrentRemainingStack() > 128, "lowstck#5b");
|
||||
if (getCurrentRemainingStack() < 128) {
|
||||
firmwareError(CUSTOM_ERR_6604, "lowstck#5b %s", chThdGetSelfX()->name);
|
||||
}
|
||||
int wasLocked = lockAnyContext();
|
||||
intermediateLogging.vappendPrintfI(this, fmt, arg);
|
||||
if (!wasLocked) {
|
||||
|
|
Loading…
Reference in New Issue