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

[portability] Can I use ArduinoJson on Nios II platform? #1657

Closed
bupjae opened this issue Sep 27, 2021 · 4 comments
Closed

[portability] Can I use ArduinoJson on Nios II platform? #1657

bupjae opened this issue Sep 27, 2021 · 4 comments
Labels
bug v6 ArduinoJson 6

Comments

@bupjae
Copy link

bupjae commented Sep 27, 2021

ArduinoJson version: v6.18.4
Target platform: Nios II (on MAX 10 FPGA)
Toolchain: nios2-elf-gcc (Altera 20.1 Build 720) 10.1.1 20200707

Quote from https://en.wikipedia.org/wiki/Nios_II ::

Nios II is a 32-bit embedded-processor architecture designed specifically for the Altera (now acquired by Intel) family of field-programmable gate array (FPGA) integrated circuits.

I just attached ArduinoJson-v6.18.4.h as-is on my Nios II project, and simple serialization / deserialization seems work.
However, I'm not sure whether it is OK to use more advanced feature of ArduinoJson, as Nios II is not on the list of "Works with board".

  1. Is Nios II supported platform?
  2. Which "processor" should be selected when using https://arduinojson.org/v6/assistant/ ?

Thanks in advance.

@bblanchon bblanchon added the bug label Sep 28, 2021
@bblanchon
Copy link
Owner

Hi @bupjae,

ArduinoJson 6.18.4 should work fine on Nios II except that it doesn't set ARDUINOJSON_EMBEDDED_MODE to 1, so it consumes more memory.
I'll release a new revision to fix this and add the option in the ArduinoJson Assistant.

Best regards,
Benoit

@bblanchon
Copy link
Owner

I just published version 6.18.5 and updated the Assistant.

@bblanchon
Copy link
Owner

@bupjae, did you get the opportunity to test the new version and the Assistant?

@bupjae
Copy link
Author

bupjae commented Oct 5, 2021

I tried ArduinoJson-v6.18.5 with some advanced features (like custom writer), and I didn't find any issue yet.
I'll report if there is any concern with Nios.

Thanks for creating / maintaining such great library.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2021
@bblanchon bblanchon added the v6 ArduinoJson 6 label Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug v6 ArduinoJson 6
Projects
None yet
Development

No branches or pull requests

2 participants