NUCELO_WL55 port assignment problem #13154
Answered
by
andrewleech
davefes
asked this question in
Libraries & Drivers
-
Error in my simple_rxtx.py: # PA6 = RF_TXEN, PA7 = RF_RXEN
PA6 = Pin('PA6', Pin.OUT)
PA7 = Pin('PA7', Pin.OUT)
Thinking that because mpconfigboard.h for the NUCLEO_WL55 uses PA6 and PA7 for a SPI bus I commented-out the lines: // SPI buses, do NOT use this bus on the E77-400M22S
//#define MICROPY_HW_SPI1_NSS (pin_A4)
//#define MICROPY_HW_SPI1_SCK (pin_A5)
//#define MICROPY_HW_SPI1_MISO (pin_A6)
//#define MICROPY_HW_SPI1_MOSI (pin_A7) but still get the error. What else do I need to change? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
andrewleech
Dec 7, 2023
Replies: 1 comment 1 reply
-
I'm not sure why it's not finding the pin by name, it's listed in https://github.com/micropython/micropython/blob/master/ports/stm32/boards/NUCLEO_WL55/pins.csv You can always access the pins directly like: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davefes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure why it's not finding the pin by name, it's listed in https://github.com/micropython/micropython/blob/master/ports/stm32/boards/NUCLEO_WL55/pins.csv
You can always access the pins directly like:
Pin.cpu.A6