Wiz-IO / platform-quectel

Quectel development platform for PlatformIO
97 stars 42 forks source link

BC26 module cannot upload @ win VScode #15

Closed D-zz closed 4 years ago

D-zz commented 5 years ago

Board: BC26-TE-B

Configuring upload protocol... Looking for upload port... Use manually specified: COM3 Uploading: program Waiting module for POWER-ON or RESET <===========================> DONE Starting <======== ERROR: EPP Answer *** [upload] Explicit exit, status 2

Wiz-IO commented 5 years ago

more info? module firmware? platform version? Untitled

D-zz commented 5 years ago

@Wiz-IO Thank you very much. More info as below:

image

Wiz-IO commented 5 years ago

try edit this value https://github.com/Wiz-IO/platform-quectel/blob/master/builder/frameworks/MT2625.py#L193

Wiz-IO commented 5 years ago

or enable DEBUG https://github.com/Wiz-IO/platform-quectel/blob/master/builder/frameworks/MT2625.py#L61

D-zz commented 5 years ago

My board is BC26-TE-B,it is same of BC66-TE-B?

Wiz-IO commented 5 years ago

but maybe chip-set ID is other

Wiz-IO commented 5 years ago

are you update BC26 with BC66 firmware?

D-zz commented 5 years ago

@Wiz-IO Yes ,i update BC26 with BC66 firmware image

D-zz commented 5 years ago

what's the error of “EPP Answer” means ?

D-zz commented 5 years ago

when i use BC26, is same problem of use BC66

image

Wiz-IO commented 5 years ago

“EPP Answer” means: no answer from first bootloader

maximevince commented 3 years ago

If anyone is still wondering, I ran into the same issue, and it can be solved as follows:

This can be seen in the capture below: image

It can be solved by modifying ~/.platformio/platforms/quectel/builder/frameworks/MT2625.py by adding time.sleep(0.5) or similar to line 384:

diff --git a/builder/frameworks/MT2625.py b/builder/frameworks/MT2625.py
index e9215ac..898a8cc 100644
--- a/builder/frameworks/MT2625.py
+++ b/builder/frameworks/MT2625.py
@@ -381,6 +381,8 @@ class MT2625:
             self.s.write(data[:1024])                        
             data = data[1024:]  
             PB_STEP()   
+        # Give the chip some time
+        time.sleep(0.5)
         ASSERT( self.cmd("", 10) == b"\x1D\x3D\0\0\0\0\0\0\0\0", "EPP Answer" ) 
         self.uart_speed_max()           
         # DA_2
Wiz-IO commented 3 years ago

Thanks @maximevince

maximevince commented 3 years ago

Thanks @Wiz-IO for your platformio framework. I got a custom application running on a BC66 in no time. Awesome!