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

Fix bug in neorv32_slink_available() function #717

Merged
merged 1 commit into from Oct 30, 2023

Conversation

Unike267
Copy link
Contributor

@Unike267 Unike267 commented Oct 30, 2023

Fix a bug in neorv32_slink.c library

In specific in neorv32_slink_available() function.

Context:

I added a module to NEORV32 via Stream Link interface (AXI4-Stream) and I used in .c program neorv32_slink_available() function to check if SLINK module was available. The point is that I put the IO_SLINK_EN => true in the top of the design and when I checked the results via UART the program crashed because neorv32_slink_available() return -1 when the SLINK module was available.

error

I checked the neorv32_slink.c and I found this bug.

When I remade the application_image compiled with the fixed-up library in local everything was good. I got the following results with CuteCom terminal:

/cc @umarcor

@stnolting
Copy link
Owner

Hey @Unike267!

Looks like a classical copy-and-paste error... 🙈
Anyway, thanks for finding and fixing this bug! 👍

@stnolting stnolting added bug Something isn't working SW software-related labels Oct 30, 2023
@stnolting stnolting self-assigned this Oct 30, 2023
@stnolting stnolting merged commit 2d3c44c into stnolting:main Oct 30, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants