From ede85251644997d0fe545b8551e3f9dbd7355072 Mon Sep 17 00:00:00 2001 From: Valentin Dabstep Date: Mon, 12 May 2025 16:24:12 +0300 Subject: [PATCH] Add write param for test --- controller/fw/embed/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controller/fw/embed/src/main.cpp b/controller/fw/embed/src/main.cpp index 13a3b07..b8eaaef 100644 --- a/controller/fw/embed/src/main.cpp +++ b/controller/fw/embed/src/main.cpp @@ -388,6 +388,13 @@ void foc_step(BLDCMotor *motor, Commander *commander) { CAN2->IER |= CAN_IER_FMPIE0; // Load parameters from flash flash_rec = load_params(); + + + /* For test */ + int value = 0; //addr + write_param(addr_id,value); //for update address in firmware + + for(int i = 0;i < PARAM_COUNT;i++) flash_buf[i] = flash_rec[i];