Search found 2 matches

by isfandyar01
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.

ESP_Sprite wrote:
Mon Oct 30, 2023 1:24 am
Make sure to initialize your stack-allocated stuctures, otherwise untouched fields will have crap in it leading to things like this. So rather than this:

Code: Select all

 spi_transaction_t trans_desc;
do this:

Code: Select all

 spi_transaction_t trans_desc={0};
doing this solved my issue
by isfandyar01
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...