Git Product home page Git Product logo

Comments (6)

bjoernQ avatar bjoernQ commented on July 24, 2024 1

Ok looking again there is one obvious thing in the code - nothing weird and explainable.

 // Define service methods
        let mut read_sensor = |_offset: usize, data: &mut [u8]| {
            // Try to get last reading, otherwise send 0.0
            if let Ok(value) = SENSOR_READING.try_receive() {
                data.copy_from_slice(&value);
            } else {
                data.copy_from_slice(&[0u8; 4]);
            }
            4
        };

The data slice is 255 bytes so the correct thing would be

        // Define service methods
        let mut read_sensor = |_offset: usize, data: &mut [u8]| {
            // Try to get last reading, otherwise send 0.0
            if let Ok(value) = SENSOR_READING.try_receive() {
                data[..4].copy_from_slice(&value);
            } else {
                data[..4].copy_from_slice(&[0u8; 4]);
            }
            4
        };

from esp-wifi-sys.

thecodechemist99 avatar thecodechemist99 commented on July 24, 2024 1

@bjoernQ thanks, I already found and fixed that yesterday. Didn‘t notice it was still in here.

from esp-wifi-sys.

thecodechemist99 avatar thecodechemist99 commented on July 24, 2024

I have also encountered these additional errors, but cannot reliably reproduce them for now:

!! A panic occured in '/Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-wifi-0.4.0/src/ble/btdm.rs', at line 195, column 51:
already borrowed: BorrowMutError

Backtrace:

0x401297fd
0x401297fd - core::cell::panic_already_borrowed
    at /Users/thecodechemist99/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core/src/cell.rs:761
0x400808c8
0x400808c8 - core::cell::RefCell<T>::borrow_mut
    at /Users/thecodechemist99/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core/src/cell.rs:1051
0x400809a4
0x400809a4 - esp_wifi::ble::btdm::queue_send_from_isr
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-wifi-0.4.0/src/ble/btdm.rs:215
0x4008a7ef
0x4008a7ef - btdm_task_post_from_isr
    at ??:??
0x4008abd1
0x4008abd1 - r_rwbtdm_isr_wrapper
    at ??:??
0x400ea55a
0x400ea55a - esp_wifi::timer::chip_specific::__esp_hal_internal_RWBLE
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-wifi-0.4.0/src/timer/timer_esp32.rs:77
0x40081510
0x40081510 - esp_hal::interrupt::xtensa::vectored::handle_interrupt
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-hal-0.16.1/src/interrupt/xtensa.rs:452
0x400810e2
0x400810e2 - esp_hal::interrupt::xtensa::vectored::handle_interrupts
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-hal-0.16.1/src/interrupt/xtensa.rs:432
0x40080db2
0x40080db2 - __level_1_interrupt
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-hal-0.16.1/src/interrupt/xtensa.rs:370
0x4008176b
0x4008176b - __default_naked_exception
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xtensa-lx-rt-0.16.0/src/exception/assembly_esp32.rs:479
Exception occured 'InstrProhibited'
Context
PC=0x00000001       PS=0x00060011
0x00000001 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00060011 - PS_WOE
    at ??:??
A0=0x800814ba       A1=0x3ffc3930       A2=0x00000001       A3=0x3ffc3ce0       A4=0x8010e20d
0x800814ba - _rtc_slow_data_end
    at ??:??
0x3ffc3930 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0x00000001 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x3ffc3ce0 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0x8010e20d - _rtc_slow_data_end
    at ??:??
A5=0x3ffc3a30       A6=0x00060700       A7=0x00000014       A8=0x800ea4ad       A9=0x00000004
0x3ffc3a30 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0x00060700 - PS_WOE
    at ??:??
0x00000014 - XT_STK_A3
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:2037
0x800ea4ad - _rtc_slow_data_end
    at ??:??
0x00000004 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
A10=0x00000000      A11=0x00000005      A12=0x800fd7fd      A13=0x3ffc3a00      A14=0x00060700
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000005 - XT_STK_PS
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:2037
0x800fd7fd - _rtc_slow_data_end
    at ??:??
0x3ffc3a00 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0x00060700 - PS_WOE
    at ??:??
A15=0x00000014
0x00000014 - XT_STK_A3
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:2037
SAR=00000019
EXCCAUSE=0x00000014 EXCVADDR=0x00000000
0x00000014 - XT_STK_A3
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:2037
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
LBEG=0x4000c2e0     LEND=0x4000c2f6     LCOUNT=0x00000000
0x4000c2e0 - memcpy
    at ??:??
0x4000c2f6 - memcpy
    at ??:??
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
THREADPTR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
SCOMPARE1=0x00000100
0x00000100 - esp_wifi::compat::timer_compat::compat_timer_disarm
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:200
BR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
ACCLO=0x00000000    ACCHI=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
M0=0x00000000       M1=0x00000000       M2=0x00000000       M3=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F64R_LO=0x00000000  F64R_HI=0x00000000  F64S=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
FCR=0x00000000      FSR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F0=0x00000000       F1=0x00000000       F2=0x00000000       F3=0x00000000       F4=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F5=0x00000000       F6=0x00000000       F7=0x00000000       F8=0x00000000       F9=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F10=0x00000000      F11=0x00000000      F12=0x00000000      F13=0x00000000      F14=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F15=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521

0x40080db5
0x40080db5 - __level_1_interrupt
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-hal-0.16.1/src/interrupt/xtensa.rs:371
0x4008176e
0x4008176e - __default_naked_exception
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xtensa-lx-rt-0.16.0/src/exception/assembly_esp32.rs:479
0x40040001
0x40040001 - r_ld_sched_sniff_add
    at ??:??
0x40080a1f
0x40080a1f - esp_wifi::ble::btdm::cause_sw_intr_to_core
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-wifi-0.4.0/src/ble/btdm.rs:337
0x401506ab
0x401506ab - vhci_send
    at ??:??
0x4013d895
0x4013d895 - r_eif_send
    at ??:??
0x40017920
0x40017920 - ecc_point_multiplication_uint8_256
    at ??:??
0x4013e244
0x4013e244 - hci_tx_start
    at ??:??
0x4013e321
0x4013e321 - r_hci_tl_send
    at ??:??
0x400188f8
0x400188f8 - r_hci_send_2_host
    at ??:??
Exception occured 'InstrProhibited'
Context
PC=0x00000100       PS=0x00060b10
0x00000100 - esp_wifi::compat::timer_compat::compat_timer_disarm
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:200
0x00060b10 - PS_WOE
    at ??:??
A0=0x8013a511       A1=0x3ffc3fd0       A2=0xffffffff       A3=0x3ffc4070       A4=0x00000000
0x8013a511 - _rtc_slow_bss_end
    at ??:??
0x3ffc3fd0 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0xffffffff - _rtc_slow_bss_end
    at ??:??
0x3ffc4070 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
A5=0x3ffc1e08       A6=0x00000100       A7=0x00060500       A8=0x800e7eb6       A9=0x3ffc3fa0
0x3ffc1e08 - _ZN8esp_wifi3ble4btdm17BT_INTERNAL_QUEUE17ha0a9867436a680faE
    at ??:??
0x00000100 - esp_wifi::compat::timer_compat::compat_timer_disarm
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:200
0x00060500 - PS_WOE
    at ??:??
0x800e7eb6 - _rtc_slow_bss_end
    at ??:??
0x3ffc3fa0 - _ZN8esp_wifi7preempt10TASK_STACK17hb41e634bda03073bE
    at ??:??
A10=0x00060500      A11=0x3ffc6ca8      A12=0x3ffb8d40      A13=0x3ffc6ae8      A14=0x00000001
0x00060500 - PS_WOE
    at ??:??
0x3ffc6ca8 - btdm_slp_err
    at ??:??
0x3ffb8d40 - sw_to_hw
    at ??:??
0x3ffc6ae8 - r_osi_funcs_p
    at ??:??
0x00000001 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
A15=0x3ffc6af0
0x3ffc6af0 - r_modules_funcs_p
    at ??:??
SAR=00000003
EXCCAUSE=0x00000014 EXCVADDR=0x00000100
0x00000014 - XT_STK_A3
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:2037
0x00000100 - esp_wifi::compat::timer_compat::compat_timer_disarm
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:200
LBEG=0x4000c2e0     LEND=0x4000c2f6     LCOUNT=0x00000000
0x4000c2e0 - memcpy
    at ??:??
0x4000c2f6 - memcpy
    at ??:??
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
THREADPTR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
SCOMPARE1=0x00000100
0x00000100 - esp_wifi::compat::timer_compat::compat_timer_disarm
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:200
BR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
ACCLO=0x00000000    ACCHI=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
M0=0x00000000       M1=0x00000000       M2=0x00000000       M3=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F64R_LO=0x00000000  F64R_HI=0x00000000  F64S=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
FCR=0x00000000      FSR=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F0=0x00000000       F1=0x00000000       F2=0x00000000       F3=0x00000000       F4=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F5=0x00000000       F6=0x00000000       F7=0x00000000       F8=0x00000000       F9=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F10=0x00000000      F11=0x00000000      F12=0x00000000      F13=0x00000000      F14=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521
F15=0x00000000
0x00000000 - esp32::AES::steal
    at /Users/thecodechemist99/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp32-0.29.0/src/lib.rs:1521

from esp-wifi-sys.

bjoernQ avatar bjoernQ commented on July 24, 2024

Can you run the provided examples without issues?

both of the crashes sound a lot like stack or general memory corruption to me

from esp-wifi-sys.

thecodechemist99 avatar thecodechemist99 commented on July 24, 2024

Can you run the provided examples without issues?

The ble examples work fine. I also had all parts of my own code working before, reading the sensor and connecting via bluetooth. But when I try to put it all together, I end up with these errors.

both of the crashes sound a lot like stack or general memory corruption to me
If that would be the case, what could I do about it?

Edit: I have been able to make it work, but only by stripping out all asynchronous and embassy-related code. And it’s still very shaky, e.g. once I check if the value changed before sending a notification it breaks again.

from esp-wifi-sys.

bjoernQ avatar bjoernQ commented on July 24, 2024

I guess we can close this issue now

from esp-wifi-sys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.