-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
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? |
@acassis I'm writing this from my phone right now but if there is still a problem I can look into it more carefully tomorrow. I think you are correct: when the chip can map a signal to alternative pins, the board needs to choose which one to use by providing the define. For example:
Obviously you need to use the correct mapping. To see which pin |
@hartmannathan Thank you for your suggestion. However, after adding the lines you recommended, I am still encountering the same issue. I have spent several hours debugging, but the problem persists, and I can't seem to identify the root cause. Any further guidance or insights would be greatly appreciated. |
@angelorisonk please run a "git diff" to show the lines you added. As I said you need to look at the pinmap header file at arch/ and create the definitions at boards/..../include/board.h point to each pin: #define GPIO_SSI1_CLK GPIO_SSI1_CLK_x Just fix x, y and z according to pinmap symbol to the right pin you are using in your board. |
In your board's include/board.h file, you need to define
If your board has the SSI1 CLK routed to pin PD0:
or, if your board has SSI1 CLK routed to pin PF2:
The same goes for How do you know which pin the _1 suffix or _2 suffix will use? These definitions are in nuttx/arch/arm/src/tiva/hardware/tm4c/tm4c_pinmap.h, around line 245
Hope this helps. |
Description / Steps to reproduce the issue
When enabling SSI1 on the Tiva TM4C123G board in NuttX, the following errors occur during the build:
GPIO_SSI1_CLK
,GPIO_SSI1_RX
, andGPIO_SSI1_TX
are reported as undeclared identifiers intiva_ssi.c
.GPIO_SSI3_CLK
) are available.Steps to reproduce:
make menuconfig
:make -j$(nproc)
.GPIO_SSI1_CLK
,GPIO_SSI1_RX
, andGPIO_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
The text was updated successfully, but these errors were encountered: