-
Notifications
You must be signed in to change notification settings - Fork 39
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
ERROR 3 after powercycle - firmware download blocks init #49
Comments
It sounds as if the UART data is going out of sync, however, the library should handle this. Have you anyway to check the UART signal integrity? If not, have you tried the sensor on another microcontroller? I'm not familiar with ATTiny series. |
So i think i found the problem. The second finding is more important. Setting a single shot trigger on my logic analyzer and tracing the first bus communication showed some traffic from the Sensor and with 115200 baud. Then i hooked up a serial2USB with the RX port connected to the sensors TX and voila. The Sensor starts up with an autoload firmware routine, that is lasting about 30s. So I would propose a routine in the init function of the sensor library that catches this and sends an 'a' to abort this. The Firmware Download is also referenced here: |
Cheers for the info! If I am understanding correctly, the serial output is from the sensor on start-up? Have you tried sending 'a' to abort it? Also, just to clarify, is this the cause of the issues for your MCU or suspected? The library should ignore the firmware interval, although I'm not sure it's working on newer FW versions. To be honest with you, I've been tied down after returning to university for the past year but will have time to implement any changes in June. I would recommend giving the PR_2.0.0 branch a try too. It was a newer iteration I was working on. Although If I recall, it's mostly just memory optimisation so might not help (I should add, I would ignore the storage function unless you have a test sensor you don't mind corrupting, I was testing the configuration area). |
Hi,
so i have an ATTiny1614 (16kB Flash, 2kB RAM) with megaTinyCore, a 4-digit serial display and the MHZ-19C. I'm using hardware serial to save memory.
When i flash the code everything works as expected but when i power cycle the board i get error 3 "Recieved data does not match the usual syntax expected".
Flash memory is at 31% and global variables consume 10%.
If it is a memory problem, why does it work right after flashing?
The text was updated successfully, but these errors were encountered: