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

[BUG] Undefined GPIO Constants (GPIO_SSI1_CLK, GPIO_SSI1_RX, GPIO_SSI1_TX) in tiva_ssi.c on TM4C123G #14690

Open
1 task done
angelorisonk opened this issue Nov 7, 2024 · 1 comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@angelorisonk
Copy link

angelorisonk commented Nov 7, 2024

Screenshot from 2024-11-07 19-17-09

Description / Steps to reproduce the issue

When enabling SSI1 on the Tiva TM4C123G board in NuttX, the following errors occur during the build:

  1. GPIO_SSI1_CLK, GPIO_SSI1_RX, and GPIO_SSI1_TX are reported as undeclared identifiers in tiva_ssi.c.
  2. The build fails as a result of these undefined constants, even though similar constants (e.g., GPIO_SSI3_CLK) are available.

Steps to reproduce:

  1. Configure the NuttX project for the Tiva TM4C123G board.
  2. Enable SSI1 through make menuconfig:
    • Navigate to Device Drivers > SPI Support > Enable SSI1
  3. Build the project with make -j$(nproc).
  4. Observe the compilation errors related to the undefined GPIO_SSI1_CLK, GPIO_SSI1_RX, and GPIO_SSI1_TX.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Linux Mint 22

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Other]

Verification

  • I have verified before submitting the report.
@angelorisonk angelorisonk added the Type: Bug Something isn't working label Nov 7, 2024
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture OS: Linux Issues related to Linux (building system, etc) labels Nov 7, 2024
@acassis
Copy link
Contributor

acassis commented Nov 7, 2024

Hi @angelorisonk please look how it is implemented for SSI3 at boards/arm/tiva/dk-tm4c129x/include/board.h

Then look at arch/arm/src/tiva/hardware/tm4c/tm4c_pinmap.h to associate the right GPIO_SSI1_CLK_x GPIO_SSI1_RX_x and GPIO_SSI1_TX_x symbol with the GPIO pin you are using.

@hartmannathan since you are more familiar with this chip, is there any other thing to observe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants