doing this solved my issueESP_Sprite wrote: ↑Mon Oct 30, 2023 1:24 amMake sure to initialize your stack-allocated stuctures, otherwise untouched fields will have crap in it leading to things like this. So rather than this:do this:Code: Select all
spi_transaction_t trans_desc;
Code: Select all
spi_transaction_t trans_desc={0};
Search found 2 matches
- Tue Oct 31, 2023 11:39 am
- Forum: ESP-IDF
- Topic: SPI transmission crashes causes Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
- Replies: 3
- Views: 1206
Re: SPI transmission crashes causes Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
- Sun Oct 29, 2023 11:41 am
- Forum: ESP-IDF
- Topic: SPI transmission crashes causes Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
- Replies: 3
- Views: 1206
SPI transmission crashes causes Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
#include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "mcp320x_isf.h" #include <math.h> #include <stdio.h> #define NUMBER_OF_SAMPLES 1048 static const char *TAG = "current_sensor"; static const char *VOLTTAG = " Voltage"; double offsetI; double filteredI; double sq...