-
Notifications
You must be signed in to change notification settings - Fork 24
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
GPIO´s anders zuordnen #23
Comments
Open up LoxLink/Project/application_code/Loxone/CAN Driver/LoxCANDriver_STM32.cpp and change the following lines to match your board:
Then scroll down a bit and add I hope this all works for you :-) |
Hello KjellVerb, thank you for your answer, do i have to replace the : |
Hi, you indeed have to change *CAN1_2 with *CAN1_3 (or at least I think so, I use a different chip so can't test this for you). All of the CAN hardware related code is in LoxLink/Project/application_code/Loxone/CAN Driver/LoxCANDriver_STM32.cpp |
Hi, i´ll test this today and let you know tomorrow. Thank you. |
Hi, any progress on this? |
Hello, yes there is. I tested yesterday. But i have to measure the gpios again from the board. Some are wrong. And when I assign the DI extension in Loxconfig, the code no longer runs. I think that some gpios will be used 2x. I still have to go through the code. Thanks Franz |
Hello, last week i was ill so i testet the code yesterday. The code doesn´t stop when i assign the DI Extension in the Loxconfig, only the Run Led stops. I can switch only 9 relais. Here is the code from the LoxLegacyRelayExtension.cpp `#include "LoxLegacyRelayExtension.hpp" static const struct { /***
/***
/***
I don´t understand why i can´t switch the 5 relais on PA2, PA6, PA7, PA8, PB3. The DI extension i haven´t testet yet. Thanks Franz |
Hi, PB3 has a dedicated function JTDO so you'll need to do some googling in order to find out how to release it for GPIO use. Here's a starting point: STM32F103 - PB3 just doesn't work as GPIO For PA* I don't have an idea, these should work according to the datasheet. |
Hi, i´ve tested now a few boards. The PA GPIOs are not working at all. I searched the code but found no duplicate usage. Do you have any ideas what could cause problems here? I also tested a board where the CAN is mapped with the original code and only one GPIO PD2 was changed to PA2. But that didn't work either. |
Hallo, ist es möglich die GPIO´s anders zuzuordnen?
Ich habe eine fertige SPS Platine ( FX3U-56MR) mit dem STM32F103VCT6 diesen habe ich bereits soweit das ich den Code aufspielen kann. Leider stimmen die GPIO´s der Relais und der Eingänge nicht mit denen des Codes überein. Somit wäre es interessant ob bzw. wo und wie ich die GPIO´s anders zuordnen kann. Der CAN müsste zum Beispiel auf PD0 und PD1 das Run LED auf PD10. Ich habe schon einiges versucht leide blinkt weder das LED noch kann ich die Platine an den Miniserver verbinden. Danke im Voraus Franz.
The text was updated successfully, but these errors were encountered: