Skip to content

docs: populate installation, boards, contributing, env-setup, run-tests - #31

Merged
IFX-Anusha merged 1 commit into
ifx-mainfrom
ifx-docs-content
Oct 15, 2026
Merged

IFX-Anusha merged 1 commit into
ifx-mainfrom
ifx-docs-content

Conversation

@IFX-Anusha

@IFX-Anusha IFX-Anusha commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Summary

Populates the Read the Docs scaffold (from ifx-readthedocs-setup) with real content for the KIT-PSE84-AI board, based on psoc-edge-main's existing install/pinout docs and the arduino-core-tests integration work.

Refer here - https://arduinocore-zephyr.readthedocs.io/en/ifx-docs-content/index.html

Pages populated

  • Installation Instructions — Arduino IDE Boards Manager steps and Arduino CLI install/flash/compile/upload commands, using the real infineon:zephyr_pse84 package index URL (verified against edge-main's actual package/package_infineon_pse84_index.template.json).
  • Supported Boards — KIT-PSE84-AI FQBN, silicon (PSE846GPS2DBZC4A), pinout image, and pin-macro conventions (Dx/Ax ranges, LED_BUILTIN*, BTN_BUILTIN, SERIAL_INTx) — all cross-checked against the current variant.h on edge-main.
  • Contributing — fork/branch/commit/PR flow plus the <scope>: <description> commit/PR title convention.
  • Environment Setup — prerequisites, bootstrap script, build/flash the loader, install arduino-cli, install the core, local-checkout development via symlink, compile/upload.
  • Running Tests — how tests/test_config.h board blocks work, with the KIT-PSE84-AI test_digitalio_single example (D0/D1 jumper) and the ENABLE_SYNC gotcha.

Intentionally excluded

  • Internal Infineon branch-topology/PR-targeting policy (ifx-main/edge-main/control-main, rebase policy) — team-internal process, not relevant to external readers.
  • Detailed OpenOCD/WSL/udev/PAT-token troubleshooting — kept only the one common first-time blocker (~/.west/config OpenOCD path), rest better suited to an internal wiki.
  • Arduino API Deviations — left as TODO, deferred until peripheral support is further along.

Verification

  • sphinx-build -b html docs docs/_build succeeds cleanly (no warnings/errors).
  • Every factual claim (FQBN, package index naming, pin macros, script names/usage) was cross-checked directly against the current edge-main source, not just copied from the reference material.

Note

run-tests.rst documents the tests/arduino_core_tests submodule and tests/test_config.h, which aren't merged into ifx-main yet (still on ifx-arduino-core-tests/edge-arduino-core-tests-config). The page is accurate for once those land.

@IFX-Anusha
IFX-Anusha force-pushed the ifx-docs-content branch 3 times, most recently from 2a414fb to a9fd00c Compare October 8, 2026 12:54
@IFX-Anusha
IFX-Anusha marked this pull request as ready for review October 9, 2026 05:33
Comment thread docs/installation-instructions.rst

@AkshayChandra-IFX AkshayChandra-IFX left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good, just some minor points to take care!

Comment thread docs/hw-platforms.rst Outdated
Comment thread docs/hw-platforms.rst

.. image:: img/KIT_PSE84_AI_Pinout.svg
:width: 400

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The back-side pinout diagram (including Arduino pin numbers) is missing. Since the analog pins are located on the back, we can add this as a part of TODO once we have the respective image to attach. This would help avoid user confusion and make analog pin mapping easier to find.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Right. This is also something we miss for the micropython docs.
Anyhow, that was not prioritized as that interface can only effectively used in you have soldered the connector (+ adapter or specific application break-out board).
So that can be done in upcoming iterations.

Comment thread docs/hw-platforms.rst

- Expansion header pins include the macros as printed on the board:
``SERIAL_INTx`` where ``x`` is the index in the range [0, 3], e.g.
``SERIAL_INT0``.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

we also define i2C/wire, (SDA, SCL, SDA1, SCL etc.) and SPI (MISO/MOSI etc ) macros in variant.h might be worth listing them here too(under macros section), or adding a TODO to cover them later.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes Currently I did not add Todo sections and ofcourse once the features are tested all those can be added accoordingly

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fair point. we can add spi , i2c etc to the doc once tested. The analog Ax macros are in the same boat since ADC isn't supported/tested yet. Do you want to revisit the analog section later too, or keep it as is for now!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes . This is a living document and we might have to do many iterations as we progress with testing

Comment thread docs/run-tests.rst
suite is vendored as a submodule at ``tests/arduino_core_tests``. Board-specific
test pin configuration lives in a single file, ``tests/test_config.h``, with one
``#if defined(ARDUINO_<BOARD>)`` block per board. ``arduino-cli`` already
defines ``ARDUINO_{build.board}`` for every compile, so the right block is

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

minor point, should that be ARDUINO_<build.board> ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

platform.txt literally uses -DARDUINO_{build.board} (curly braces), which is arduino-cli's own property-substitution syntax.

Comment thread docs/hw-platforms.rst

@jaenrig-ifx jaenrig-ifx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good! 👯

@IFX-Anusha
IFX-Anusha force-pushed the ifx-docs-content branch 2 times, most recently from 4c736ae to 4f497cb Compare October 13, 2026 11:05
@IFX-Anusha
IFX-Anusha merged commit 9d7304a into ifx-main Oct 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants