Code Issue FireBeetle ESP32-E & Beetle ESP32-C3

userHead AlexanderWoo 2022-05-19 20:55:54 715 Views3 Replies

My code LS_Clone_ESP32 works perfectly on the FireBeetle Board ESP32-E, but when I try to put the same code onto the Beetle ESP32-C3

it doesn't transmit the BLE, in-fact I cant see any BLE from the device

https://github.com/wooby6/Lovense-Edge-clone-esp32/blob/main/LS_Clone_ESP32/LS_Clone_ESP32.ino

(edit the hidden hyperlink isn't working)

 

Comparing my BLE code to the BLE examples given, I cannot see any major differences 

 

changing the pins of course (on line 53-27) to: 
const int MA_PWM=0;  
const int MA_DIR=1;  
const int MB_PWM=4;
const int MB_DIR=5;

 

I don't use pins 6 or 2 as they are outputting to my motor driver immediately on boot, not sure why I'm getting 3.2v across those
Are they purposely set high on boot or is my board faulty?

 

& yes I have to GND pin 9 to upload anything, 

 


on a related note connecting a factory fresh Beetle ESP32-C3 to my win 10 pc caused it to make a constant device disconnect sound
(I bought more than one so I can still test this bug)

 

the BLE examples on the wiki, work as intended 

2022-05-22 21:54:51

Ok figured it out its incomparable with the DFrobot_MAX17043

userHeadPic AlexanderWoo
2022-05-22 20:18:37

ESP-ROM:esp32c3-api1-20210207

Build:Feb  7 2021

rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)

 

Saved PC:0x4038187e

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd6100,len:0x438

load:0x403ce000,len:0x90c

load:0x403d0000,len:0x2358

SHA-256 comparison failed:

Calculated: a9753a4fc647c6545c1b919ef08db429130a48592727edca270f1e5a3da0d0a9

Expected: 3bf6ef2cf3b9eefcd4b3c70cc5d1ce5138292d101a5cb1d5db6fbebf081b0a19

Attempting to boot anyway...

entry 0x403ce000

[   180][E][Wire.cpp:319] beginTransmission(): could not acquire lock

[   180][E][esp32-hal-i2c.c:142] i2cWrite(): could not acquire lock

ESP-ROM:esp32c3-api1-20210207 

 

This Forums formatting is terrible & not having the ability to edit my replies is worse

userHeadPic AlexanderWoo
2022-05-22 20:15:25

Ok I found some new info by setting it to verbose error modeBuild:Feb  7 2021rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)Saved PC:0x4038187eSPIWP:0xeemode:DIO, clock div:1load:0x3fcd6100,len:0x438load:0x403ce000,len:0x90cload:0x403d0000,len:0x2358SHA-256 comparison failed:Calculated: a9753a4fc647c6545c1b919ef08db429130a48592727edca270f1e5a3da0d0a9Expected: 3bf6ef2cf3b9eefcd4b3c70cc5d1ce5138292d101a5cb1d5db6fbebf081b0a19Attempting to boot anyway...entry 0x403ce000[   180][E][Wire.cpp:319] beginTransmission(): could not acquire lock[   180][E][esp32-hal-i2c.c:142] i2cWrite(): could not acquire lockESP-ROM:esp32c3-api1-20210207 

userHeadPic AlexanderWoo