You are on page 1of 1

4/13/2017 Array size error in getPrintableDeviceMode() on 32-bit architecture · Issue #73 · thotro/arduino-dw1000 · GitHub

Features Business Explore Pricing This repository Search Sign in or Sign up

thotro / arduino-dw1000 Watch 75 Star 171 Fork 102

Code Issues 109 Pull requests 1 Projects 0 Wiki Pulse Graphs

Array size error in getPrintableDeviceMode() on 32-bit New issue

architecture #73
Open MikeS159 opened this issue on Mar 30, 2016 · 1 comment

MikeS159 commented on Mar 30, 2016 Contributor Assignees

No one assigned
I just found out the hard way that 64 is not enough for getPrintableDeviceMode()... When powering up,
the default output goes to 79 characters. The result was a processor crash in my case (on Cortex Labels
M0+). The code would run once without problems, then the processor would hang. Switching to a 96 or
None yet
128 byte buffer fixes the issue.

This issue could affect other areas of the code base. Projects

None yet

MikeS159 referenced this issue on Apr 15, 2016


Milestone
BasicSender_BasicReceiver #54 Open
No milestone

Rotzbua commented on Apr 15, 2016 • edited Contributor


2 participants

That's exactly what the documentation say:

@param[out] msgBuffer The String buffer to be filled with printable device information.
Provide 128 bytes , this should be sufficient.

So your buffer was too small, which has nothing to do with 32bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

© 2017 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub API Training Shop Blog About

https://github.com/thotro/arduino-dw1000/issues/73 1/1

You might also like