Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA updates causes RESET_PANIC above 7.1.1 #492

Closed
StarkJohan opened this issue Sep 28, 2024 · 9 comments
Closed

OTA updates causes RESET_PANIC above 7.1.1 #492

StarkJohan opened this issue Sep 28, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@StarkJohan
Copy link
Collaborator

When updating OTA the percentage halts around 10% and causes a RESET_PANIC. This is consistent on release 7.3.0 and above but works as intended on 7.1.1. When uploading by wire everything works as intended.

Using Stark CMR v1 as it's a two can-bus setup so I can't test the exact settings on the lilygo.

volatile CAN_Configuration can_config = {
.battery = CAN_NATIVE, // Which CAN is your battery connected to?
.inverter = CANFD_NATIVE // Which CAN is your inverter connected to? (No need to configure incase you use RS485)
//.battery_double = CAN_ADDON_MCP2515, // (OPTIONAL) Which CAN is your second battery connected to?
//.charger = CAN_NATIVE // (OPTIONAL) Which CAN is your charger connected to?
};

#define NISSAN_LEAF_BATTERY
#define BYD_CAN
#define HW_STARK
#define CONTACTOR_CONTROL
#define CAN_FD
#define USE_CANFD_INTERFACE_AS_CLASSIC_CAN

#define WIFI
#define WEBSERVER
#define WEBSERVER_AUTH_REQUIRED false

#define LOAD_SAVED_SETTINGS_ON_BOOT
#define HA_AUTODISCOVERY (to avoid the ifdef bug in this version, not using MQTT)
#define DUMMY_EVENT_ENABLED false

#define BATTERY_WH_MAX 58000
#define BATTERY_USE_SCALED_SOC true
#define BATTERY_MAXPERCENTAGE 8000
#define BATTERY_MINPERCENTAGE 2000
#define BATTERY_MAX_CHARGE_AMP 750
#define BATTERY_MAX_DISCHARGE_AMP 750

@StarkJohan StarkJohan changed the title OTA updates causes RESET_PANIC OTA updates causes RESET_PANIC above 7.1.1 Sep 28, 2024
@PaulV71
Copy link

PaulV71 commented Sep 28, 2024

We have the same, using 7.3.0
OTA reset_panic event

@StarkJohan
Copy link
Collaborator Author

We have the same, using 7.3.0 OTA reset_panic event

What hardware and software version? What setup?

@PaulV71
Copy link

PaulV71 commented Sep 28, 2024

Lilygo Tcan connected to the LEAF battery. The other one to the inverter has no issues so far.

@dalathegreat dalathegreat added the bug Something isn't working label Sep 28, 2024
@dalathegreat
Copy link
Owner

@amarofarinha could this be related to the OTA library update? #454

@amarofarinha
Copy link
Collaborator

@amarofarinha could this be related to the OTA library update? #454

it could be, but after some testing and investigation we found it has to do with pause functionality and changes on the preOta handler.

it is fixed and was tested on the system that experience the error. on #499

@amarofarinha
Copy link
Collaborator

We have the same, using 7.3.0 OTA reset_panic event

@PaulV71 can you try #499 ?

@StarkJohan
Copy link
Collaborator Author

@amarofarinha solved this and I have confirmed that his solution works.

@amarofarinha
Copy link
Collaborator

closing this as it resolved original issue and the fix is already merged on main. @PaulV71 , pease test latest main version to check if you problem is also solved.

@PaulV71
Copy link

PaulV71 commented Sep 29, 2024

problem solved. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants