Protocentral / protocentral-healthypi-v3

HealthyPi is the first fully open-source, full-featured vital sign monitor. Using the Raspberry Pi as its computing and display platform, the HealthyPi add-on HAT turns the Raspberry Pi into a vital sign monitoring system.
http://healthypi.protocentral.com
Other
194 stars 51 forks source link

Firmware freezes when writing to RpiSerial #9

Closed luzader closed 6 years ago

luzader commented 6 years ago

The arduino firmware freezes at any call to RpiSerial.write(). As a result, after resetting only one reading is returned over USB, then nothing. If all calls to RpiSerial.write are removed, the HealthyPi3 works fine, though of course, only using USB. I saw the same effect on:

So this must be because of a change made by Arduino.

I would suspect that Arduino have changed the procedure for initializing the sercom4 and that the firmware is hanging on a check for transmission completed from the uart peripheral (unfortunately these operations never time out).

This might be what is causing #6

protocentralashwin commented 6 years ago

Hi @luzader Thank you for the very detailed explanation. This makes sense, The sercom pins are not standard and the newer versions or libraries might be overriding this pin mapping is my guess. I will check this , work out an alternative and get back. #6 also.

joicetm commented 6 years ago

Hi luzader,

It seems the Board Manger Version is causing the issue(Not the arduino version, refer to the attached image )

Please try 1.6.15 which seems to give stable result. zero_version zero

joicetm commented 6 years ago

Hope that your issue is solved. you can reopen the issue whenever required.

kyokusei commented 5 years ago

Yes, it works with 1.6.15 Furthermore, programming with USB I see only Native Port, and not Programming port as you says on your guideline for firmware update. So I've selected the Native USB Port from the board list.

anning865 commented 4 years ago

Finally, it works with 1.6.15 The issue should be highlighted at first.