Repository navigation
Debug Firmware - UART output #357
Unanswered
FlorianKellnberger
asked this question in
Q&A
Replies: 1 comment
|
I don't know, I didn't test Silabs yet. Maybe it's missing something in the code. There is already a PR about multi press reset: After that is merged, we can add the long press option. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Andrei,
I am running out of ideas why the UART is not working. If I loop it on my JLink adpater, I receive my send data. So I think it should be fine. On the ZSL3 is also clear where to connect the TX to the RX of my adapter.
I build the firmware with make_debug_single....
=== Build complete ===
Debug firmware built for SWITCH_ZEMISMART_2_TS0012
Connect UART to view debug output on TX pin
Background why I want debug it: The 10 times press reset is not rebooting the MCU
I added here the hal_system_reset after the factory reset:
void switch_cluster_on_button_multi_press(zigbee_switch_cluster *cluster,
uint8_t press_count) {
if (press_count >= MULTI_PRESS_CNT_TO_RESET) {
hal_factory_reset();
hal_system_reset();
}
}
Basically its fine now, but still sometimes I am loosing the connection to Z2M. After putting Z2M into pairing enable and do a switch reset, its fine again.
Also I am wondering if we could start a discussion about the 10times button press. My son is resetting many times the switches... I liked the very long press at the factory firmware more as this little children will not likely do.
Should I start a separate discussion thread about it?
All reactions