2024-07-15 01:24 AM - edited 2024-07-15 01:28 AM
Hello everyone,
Hope you are all doing well. I am currently working on a BMS that includes an STM32L562VET6Q MCU and other peripherals.
ARINC429 is completely new to me. This week, I have been reading the ARINC 429 (HI-35850) datasheet and trying to correctly configure the SPI on my MCU to send data to the ARINC. In this post, you will find the I/O connections between the ARINC and my MCU. For now, I am only using CS, SCK, and SI to send data, and I am monitoring CS, SCK, SO, and SI on my picoscope with wires directly pinned to the ARINC.
Below, I will provide the configuration files for SPI, GPIO, and ARINC so you can better assist me.
My problem is that, compared to the datasheet, I do not see the exact data frames I was expecting after reading the datasheet. Since I am new to this protocol, I am confused about what to expect, which I believe is due to a lack of understanding. Therefore, I hope someone can kindly guide me through this issue and correct my configuration if possible.
Thanks a lot, and have a great day and a wonderful summer!
I/O :
main :
2024-07-16 06:45 PM
What an interesting topic and project: ARINC429 on an STM32 MCU. Cool.
I am a pilot, I have done an avionics installation project, including wiring an ARINC429 bus and looking for an interface to read (and send) ARINC429 messages.
Here, I have used an ARINC429 bridge, e.g. HOLT:
https://www.holtic.com/product/p/pb/5-adk-8582-hi-85828583-evaluation-board.aspx
I am a bit suspicious what you try to do with a SPI peripheral on an STM32 MCU:
I think, it is not straight forward to use a simple SPI for ARINC429 Rx and Tx. Also: ARINC429 can send (Tx) and receive (Rx) simultaneously, but these are two independent "channels": each channel (pair of two wires) will do this RZ encoding (for the clock). So, you cannot use a simple SPI for both "directions". You might need a separate, different SPI for the Rx (e.g. as a slave device). It is not similar to SPI where every bit sent is also one bit received: ARINC429 is "independent" on Tx and Rx.
Let me help you, very interesting project (and I would imagine to accomplish the "same" for my purpose (testing an avionics installation)).
With a simple SPI on STM32 MCU - it cannot work: you have to consider much more topics (standards), like this RZ coding, the symmetrical wiring, the +/-5V levels...
Sure, possible, but for sure just with additional external components needed. When it comes to messages (protocol): a separate topic, e.g. how to generate a correct message with the "label"...?
If we want to brainstorm (or we could work together) on your project: I am here: tj@tjaekel.com
2024-07-19 02:15 AM
Hello @tjaekel ,
I hope you're doing well, i did send an email on tj@tjaekel.com with all the information and details.
Thank you again for you're invaluable help
2024-07-19 07:36 PM - edited 2024-07-19 07:41 PM
Thank you, all received and checked:
I think, you have these major issues:
So, check your schematics, check your SPI config (esp. clock source and speed) as well as SPI transactions to do and provide ACLK for your external HI3585 chip.
Good luck.
2024-09-04 09:28 AM
Hi Cojo, was really intresting post, some news?