Comments (3)
Looks like 2ms, it was simply to find in the code. If you really want to code your own, you should learn how to search, and understand others code.
serbridgeReset()
{
if (mcu_reset_pin >= 0) {
#ifdef SERBR_DBG
os_printf("MCU reset gpio%d\n", mcu_reset_pin);
#endif
GPIO_OUTPUT_SET(mcu_reset_pin, 0);
os_delay_us(2000L); // esp8266 needs at least 1ms reset pulse, it seems...
GPIO_DIS_OUTPUT(mcu_reset_pin);
}
#ifdef SERBR_DBG
else { os_printf("MCU reset: no pin\n"); }
#endif
}
from esp-link.
I've known for a while that the Lock bit is the problem.
Naturally, I examined the code and tested it, as well as the code for the bootloader. Just curious about why it doesn't jump into the UART programming session.
It may function even with 1 ms or less of trigger time. Make sure the Atmega has a bootloader and that the lock bit didn't go wrong.
The lock bit may be set during bootloader burning and removed if an SPI programmer is used.
Read others code is not the way to solve the problem, must know why they did that.
from esp-link.
The timing for the bootloader to be ready to acknowledge sync after reboot, I suspect is different for each board. The approach seems to be, start sending sync immediately after reboot and REPEAT until sync reply or to a count of 10 tries and then fail. The same thing happens happens with boards directly connected to usb. Arduino IDE tries 10 times. There is some delay between repeated sync attempts I would guess.
from esp-link.
Related Issues (20)
- esp link not working with Comgrow Z1 laser engraver HOT 1
- Esp-link serial bridge to USB HOT 1
- mdns stop working/resolving hostname.local after ~2.5 minutes after boot HOT 3
- TCP socket not delivery data HOT 13
- how to change soft-ap static IP and PORT? HOT 9
- ESP-link to connect a Smart Meter HOT 3
- No AP HOT 7
- 192.168.4.1 won't respond
- is stub and send flash finish HOT 2
- Issue setting baud rate to 2400 HOT 1
- Connect display
- No AP created - is stub and send flash finish HOT 1
- if your having trouble flashing (not an issue)
- Telnet
- collect2.exe: error: ld returned 1 exit status HOT 2
- RS232 to UDP or TCP HOT 5
- SNTP over serial?
- Build Failure on Ubuntu 20.04.6 LTS (/bin/sh: 1: Syntax error: "(" unexpected) HOT 1
- wlan bridge/repeater HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-link.