BC66 Uploading success is about the luck using Mac Os

Hi all,

When programming with PlatformIO and uploading program to BC66 chip there are errors sometimes.

Hardware I am using is Olimex NB-IoT development board. (NB-IoT-DevKit - Open Source Hardware Board)

Every 5-10th times while uploading I’ll get it through. And the result is as expected:

Use manually specified: /dev/cu.wchusbserial1410
Uploading: program
Waiting module for POWER-ON or RESET <===================> DONE
Starting <======================================> DONE
Writhing <====================================> DONE
Ready

Other upload trials I’ll get error like this:
Use manually specified: /dev/cu.wchusbserial1410
Uploading: program
Waiting module for POWER-ON or RESET <=
ERROR: Boot answer
*** [upload] Explicit exit, status 2

Some other errors persist too.

Any ideas why this is like this? Is it because of Mac Os?

I have installed latest USB driver from here: https://www.olimex.com/Products/Breadboarding/BB-CH340T/resources/CH341SER_MAC.ZIP

Thanks, Jarkko

HI, I not have MAC - can`t test…

Look line 193 and 202

or contact with Olimex support

I can’t even upload once

Configuring upload protocol…
Looking for upload port…
Auto-detected: /dev/cu.usbserial-1420
Uploading: program
THE UPLOADER USE PLUGIN Olimex-NB-IoT-DevKit
AUTO-START-READY → D2A209000000000001
← D2A209000000000001
← 0001
→ 0011
← 0011
← 0001
→ D08000000000000001
← D08000000000000001
← 00008A100000
→ D08000000400000001
← D08000000400000001
← 00008A000000
→ D08000000800000001
← D08000000800000001
← 000026250000
→ D08000000C00000001
← D08000000C00000001
← 000083000000
→ D90401500000000CB50400200000001000
← D90401500000000CB50400200000001000
← 0000

ERROR: EPP Answer

I managed to solve the issue by installing latest CH340 driver