---
title: "[Recuration] Rust_Embedded_MAX31865"
url: "https://maker.wiznet.io/josephsr/projects/recuration-rust-embedded-max31865/"
markdown_url: "https://maker.wiznet.io/josephsr/projects/recuration-rust-embedded-max31865/md"
type: "UCC: User Created Content"
author: "erhnam"
author_url: "https://maker.wiznet.io/rena/projects/rust%2Dembedded%2Dmax31865/?page=6&serob=rt&serterm=all"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "erhnam"
original_url: "https://maker.wiznet.io/rena/projects/rust%2Dembedded%2Dmax31865/?page=6&serob=rt&serterm=all"
published: "2023-11-02"
language: "en"
tags: ["Rust", "STM32"]
hardware: ["STMicroelectronics STM32F401RET6"]
likes: 0
views: 2459
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# [Recuration] Rust_Embedded_MAX31865

> Temerature reading with STM32F401RET6 and MAX31865 and W5500.

Original author: erhnam (source: https://maker.wiznet.io/rena/projects/rust%2Dembedded%2Dmax31865/?page=6&serob=rt&serterm=all)

## Components

- **STMicroelectronics STM32F401RET6** x 1
- Software: **https://foundation.rust-lang.org/ Rust**

## Article

## [Rust_Embedded_MAX31865](https://github.com/erhnam/Rust_Embedded_MAX31865#rust_embedded_max31865)

Board STM32F401RET6 reading temperature using sensor MAX31865 with SPI1 and W5500 Ethernet controller in SPI2

### [Connection with 3-Wired](https://github.com/erhnam/Rust_Embedded_MAX31865#connection-with-3-wired)

[![image1](https://user-images.githubusercontent.com/9365733/264957122-8b2555d1-f79a-41db-8998-8e51537ffeee.jpeg)](https://user-images.githubusercontent.com/9365733/264957122-8b2555d1-f79a-41db-8998-8e51537ffeee.jpeg)

[![image0](https://user-images.githubusercontent.com/9365733/264957193-893c91e8-5ed5-46af-8e08-c2008489cc5e.jpeg)](https://user-images.githubusercontent.com/9365733/264957193-893c91e8-5ed5-46af-8e08-c2008489cc5e.jpeg)

### [Install:](https://github.com/erhnam/Rust_Embedded_MAX31865#install)

```
sudo apt-get install gdb-multiarch openocd
```

### [Execute:](https://github.com/erhnam/Rust_Embedded_MAX31865#execute)

In a linux terminal execute:

```
openocd -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg
```

In a other linux terminal execute: cargo update cargo build cargo run

[![imagen](https://user-images.githubusercontent.com/9365733/264956106-81256931-2165-41ef-8f13-fc184c126a57.png)](https://user-images.githubusercontent.com/9365733/264956106-81256931-2165-41ef-8f13-fc184c126a57.png)

[![imagen](https://user-images.githubusercontent.com/9365733/264956189-4f239804-cb13-417a-acf7-1776ed5b1f15.png)](https://user-images.githubusercontent.com/9365733/264956189-4f239804-cb13-417a-acf7-1776ed5b1f15.png)

---

Source: https://maker.wiznet.io/josephsr/projects/recuration-rust-embedded-max31865/
