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

lpc2k_pgm: fix build warnings, add lpc2388 #12868

Merged
merged 2 commits into from
Dec 5, 2019
Merged

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Dec 3, 2019

Contribution description

GCC now warns when snprintf()ing a buffer that, together with the format string, might be larger than the destination buffer.

To fix this increase the size of the destination buffer so that the source buffer and the format string will always fit - 32 bytes are enough.

This also adds the signature of the lpc2388 to lpc2k_pgm.
The MCU is very simmilar to lpc2387 and can be flashed with this tool too.

Testing procedure

You should still be able to flash lpc23xx boards like the msba2, but without the distracting warnings.

Issues/PRs references

split off #12669

The device is very simmilar to the LPC2387
GCC now warns when snprintf()ing a buffer that, together with the
format string, might be larger than the destination buffer.

To fix this increase the size of the destination buffer so that
the source buffer and the format string will always fit - 32 bytes
are enough.
@benpicco benpicco added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools labels Dec 3, 2019
@benpicco benpicco requested a review from maribu December 3, 2019 21:13
Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@maribu maribu merged commit cf0fb1d into RIOT-OS:master Dec 5, 2019
@benpicco benpicco deleted the lpc2k-fix branch December 5, 2019 14:02
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants