Wiz-IO / platform-quectel

Quectel development platform for PlatformIO
97 stars 42 forks source link

Cannot upload to BC66 #3

Closed hunasdf closed 5 years ago

hunasdf commented 5 years ago

Hi,

We have a BC66-TE-B board and we would like to programming it with PIO and OpenCPU. If we install the Quectel platform as the documentation writes, we got " arm-none-eabi-gcc: error: unrecognized command line option '-R' " error. I fixed it with:

  1. Removed the installed Quectel platform
  2. Deleted the "-Rbuild" linkflag from the opencpu_bc66.py file (line 59th)
  3. Reinstall the modified Quectel platform

Then, the code (the example from the WIKI) builds successfully, and starts to upload, but nothing happens during the upload. Cannot see any progress and never finish. No error or anything. We tired with bc66 and bc66-te-b board also, but the problem still. Have you any idea what should we do? How can we upload the code?

And an other interesting thing: we cannot update the firmware or create a backup from it. The port drivers looks good. Furthermore, the "EEPROM Programmer v1.7a" program also cannot read or write any value from/to the eeprom. But if I am logging out the serial port, and press the pwr_key, some information appear on the terminal.

We use OSX 10.14.3 and Visual Studio Code 1.32.3 with PIO Home 2.0.0 and Core 3.6.5 to build and upload, and Win7 x64 with VMWare Fusion to update or backup the firmware.

I attached few screenshots and logs. I hope this will

help on us. But if you need any other info/log/data, I will try to supplement with it.

Thanks for any help! Gergo

upload_log.txt upload_log_verbose.txt Képernyőfotó 2019-03-20 - 10 38 27 Képernyőfotó 2019-03-20 - 10 15 54 Képernyőfotó 2019-03-20 - 10 24 07

Wiz-IO commented 5 years ago

Hi for option -R I know done https://github.com/Wiz-IO/platform-quectel/blob/master/builder/frameworks/opencpu_bc66.py#L59 for next update I will remove

board switcher (uart selection) must be inward for USB

For macOS/Linux maybe need usb drivers https://www.maxlinear.com/product/interface/uarts/usb-uarts/xr21v1412

for manual COM port selection - project INI [env:bc66] platform = quectel board = bc66 framework = arduino ;board_build.firmware = BC66R01A04V01 upload_port = COM23 monitor_port = COM23 monitor_speed = 115200

hunasdf commented 5 years ago

Thanks for the fast reaction!

Sorry, I forget: the switch on the board always was "MAIN UART TO USB".

I installed the linked driver. Nothing changed... The 2 serial ports detected as default. Képernyőfotó 2019-03-20 - 11 20 59

Tried with manual port selection: [env:bc66-te-b] platform = quectel board = bc66-te-b framework = opencpu build_flags = -D DEBUG=1 upload_port = /dev/cu.usbmodem14201 ;or /dev/cu.usbmodem14203 monitor_port = /dev/cu.usbmodem14201 ;or /dev/cu.usbmodem14203 monitor_speed = 115200

and with Arduino framework: [env:bc66-te-b] platform = quectel board = bc66-te-b framework = arduino build_flags = -D DEBUG=1 upload_port = /dev/cu.usbmodem14201 ;or /dev/cu.usbmodem14203 monitor_port = /dev/cu.usbmodem14201 ;or /dev/cu.usbmodem14203 monitor_speed = 115200

but the problem still. The upload never finish :(

Ps.: The screenshot about the CoolTerm created from OSX, so in my opinion the ports looks good.

Update: AT commands works on Windows 7 Képernyőfotó 2019-03-20 - 12 30 56

Wiz-IO commented 5 years ago

Try AT commands via terminal the original Mediatek/Quectel FlashTool.exe work? Can you test on Windows?

Wiz-IO commented 5 years ago

com port work, must work and FlashTool.exe

hunasdf commented 5 years ago

Thank you very much! Working on Windows 7, but not on OSX. And the main problem was that I have to push the reset and/or power button to start the upload. Unfortunately, the "Wait for Power ON or Reset module ..." message appear after I push one button, not before. Therefore, I will take a try on Mac too, if I have a little time.

Just a last question: Is there any usable documentation about the OpenCPU for BC66? Or I just use M66 OpenCPU documentation...

Thank you again!

Wiz-IO commented 5 years ago

YW I test macOS from virtual machine(win...driver) I will change message

Wiz-IO commented 5 years ago

for documentation email me or ask Quectel or ... read header files