condo4 / knx-pt100

Use Nucleo32-L432KC and TP-UART to manage 4 adc values
GNU General Public License v3.0
3 stars 3 forks source link

Support for other STM32 MCU #1

Open nanosonde opened 4 years ago

nanosonde commented 4 years ago

Hi! How much effort would it be to support the STM32 MCU which is contained on this RF module? https://shop.in-circuit.de/product_info.php?products_id=180

The module contains a STM32L151CC connected to a CC1101 RF transceiver via SPI. My KNX-RF implementation which @thelsing recently merged to the KNX stack supports the CC1101. For this to work, SPI and reading of two GPIO inputs is required.

I have seen in the STM32 platform code that SPI methods are empty. Is this the only stuff that needs to be added to get it work?

condo4 commented 4 years ago

Hi,

Since I used CubeMX to configure the project, since STM32L151CC is supported by CubeMX, I think it's not very complicated.

The only thing to change in the stack is the part:

ifdef STM32L432xx

define USER_MEMORY_ADDR 0x0803F800

define USER_MEMORY_SIZE 0x800

define USER_MEMORY_PAGE 127

extern UART_HandleTypeDef huart1; extern UART_HandleTypeDef huart2;

define TPUART &huart1

define TPUART_UART USART1

define CONSOLE_HUART &huart2

define CONSOLE_UART USART2

endif

Because I can't find a way to used generated files (by CubeMX) to set this constants...

Fabien

Le 24/11/2019 à 08:58, nanosonde a écrit :

Hi! How much effort would it be to support the STM32 MCU which is contained on this RF module: https://shop.in-circuit.de/product_info.php?products_id=180

The module contains a STM32L151CC connected to a CC1101 RF transceiver via SPI. My KNX-RF implementation which @thelsing https://github.com/thelsing recently merged to the KNX stack supports the CC1101. For this to work, SPI and reading of two GPIO inputs is required.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/condo4/knx-pt100/issues/1?email_source=notifications&email_token=AAUNI2LOI32BFQXICSBQVL3QVIX35A5CNFSM4JQ55XFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H3TQGKQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUNI2PCG7NR4T23VUMVFQLQVIX35ANCNFSM4JQ55XFA.

nanosonde commented 4 years ago

Ok, and what do I have to do to get the SPI driver?

I have never worked with CubeMX.