Skip to content

[BUG] RN2XX3 Set sync word command sends bad argument #16009

@AngusJull

Description

@AngusJull

Description / Steps to reproduce the issue

The print code in the RN2XX3 driver prints the given sync word as a hex value with padding out a width of 16 characters using zeros. This padding is invalid and causes an EINVAL error to be returned when a value that uses less than four bytes is used (such as 0x43). When changing this print code to "%llX", the command works. The issue wasn't noticed because it was tested using a value of 0xdeadbeef, which left no room for padding.

Page 50 of this document details valid arguments for the radio set sync command.

On which OS does this issue occur?

[OS: Other]

What is the version of your OS?

N/A

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Drivers]

Host information

Tested on a custom board using an STM32H7.

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: DriversDrivers issuesOS: OtherIssues related to other OS (not Linux, Mac or Win)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions