Search found 10 matches

by themagicm
Tue Oct 01, 2024 2:20 am
Forum: ESP32 Arduino
Topic: Stumped. Stack smashing protect failure
Replies: 1
Views: 668

Stumped. Stack smashing protect failure

I am totally stumped as to how to track this down. The only time it happens is when I save a value every 30 seconds using preferences.h. void dothis(double value) { // Save the odometer value using Preferences preferences.begin("gps", false); // Open preferences in read-write mode preferences.putDou...
by themagicm
Sun Jun 23, 2024 3:28 am
Forum: ESP32 Arduino
Topic: Not recieving data via SPI on ESP-wroom-32 from Teensy 4.1
Replies: 1
Views: 1726

Not recieving data via SPI on ESP-wroom-32 from Teensy 4.1

At the very least I am sending the letter "C" from the Teensy to the ESP-wroom-32. ESP says its receiving a null. I'm stumped. The reason for the 2 sec delay on the esp32, I was just trying to see if it recognized the pin being flipped from low to high on each side (it does). Teensy code: #include <...
by themagicm
Wed Mar 13, 2024 3:30 am
Forum: ESP32 Arduino
Topic: Esp32 canbus slow at 1mbit?
Replies: 6
Views: 2223

Re: Esp32 canbus slow at 1mbit?

Well, I reverted back to the ESP32CAN library: https://github.com/sdp8483/ESP32-Arduino-CAN there is still a delay. I updated the miwagner to work at 1000mbits but it also has the same issue. I am stumped as to where to debug. I'm experimenting with TWAI_MODE_LISTEN_ONLY but when I do that I receive...
by themagicm
Fri Feb 23, 2024 8:06 pm
Forum: ESP32 Arduino
Topic: Esp32 canbus slow at 1mbit?
Replies: 6
Views: 2223

Re: Esp32 canbus slow at 1mbit?

Ok, so I went back to the miwagner version of the library and got it working at 1mbit. Messed with recieve buffers and it made a difference. Now I'm wondering where to update the rx_buffer on the new library that I referenced earlier...
by themagicm
Thu Feb 22, 2024 12:10 pm
Forum: ESP32 Arduino
Topic: Esp32 canbus slow at 1mbit?
Replies: 6
Views: 2223

Re: Esp32 canbus slow at 1mbit?

So I havent made any changes other than... as far as CPU speed, it should be 240mhz. I'm using PlatformIO and VSCode so I think by default when I selected the esp32 it had 240mhz setup. When you're talking about IRAM, is it as simple as me adding IRAM_ATTR to my parsing logic? or do I need to do tha...
by themagicm
Thu Feb 22, 2024 1:31 am
Forum: ESP32 Arduino
Topic: Esp32 canbus slow at 1mbit?
Replies: 6
Views: 2223

Esp32 canbus slow at 1mbit?

I'm using this library on an esp32 wroom32d, 8mb. https://github.com/sdp8483/ESP32-Arduino-CAN I'm using it at 1mbit, and converting data to display on an LCD. Some data comes in quicker than others but it still feels like there is lag there compared to 500k. My code in loop() if (ESP32CAN_OK == ESP...
by themagicm
Sun Sep 24, 2023 7:09 pm
Forum: Hardware
Topic: ESP32 cannot read 1000k CANbus
Replies: 1
Views: 2915

ESP32 cannot read 1000k CANbus

Running an ESP32-WROOM32D..

using the ESP32CAN lib :

https://github.com/miwagner/ESP32-Arduino-CAN

When I set to 1000K its actually 500k.

Is this the correct brp_div to clear? or how to I make this thing work?

MODULE_CAN->IER.U &= ~(1 << 5); // Clear the BRP_DIV bit
by themagicm
Mon Jul 31, 2023 1:24 pm
Forum: Hardware
Topic: ESP32 + ECC508A getting i2c error?
Replies: 0
Views: 5137

ESP32 + ECC508A getting i2c error?

I'm using an ESP32-WROOM-32D connected to an ECC508A via SDA and SCL. Both have 4.7k resistors. I checked the voltage at the ECC508A and I'm getting a solid 3.22v. What I'm doing is storing a key in slot 0 on my test board but when I try to read it I get this error: [ 2188][E][Wire.cpp:513] requestF...
by themagicm
Sat Apr 01, 2023 1:59 am
Forum: ESP32 Arduino
Topic: Secure boot
Replies: 0
Views: 1012

Secure boot

I've written code and want to keep it from being installed on other ESP32's when I release firmware updates. I use VSCode and PlatformIO, Debian 11. I read that I need to enable secure boot, sign my code and all that stuff. Followed this to install espidf, so I did this: https://docs.espressif.com/p...