Question about RTL8720DN/BW16 burn MicroPython

I use make upload UPLOAD_PATH=/dev/ttyUSB0 AUTO_UPLOAD=Enable to burn MicroPython firmware to RTL8720 (already build success use make BOARD=AI_THINKER_BW16), and seems success.



Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
This build now supports Windows, Linux and MacOS
Please specify which board you are building for, currently supported boards:

  • AMEBA_AMB21
  • AMEBA_AMB23
  • AI_THINKER_BW16
  • SPARKFUN_THINGPLUS_AWCU488
  • AMEBA_AMB25
  • AMEBA_AMB26

…/…/py/mkrules.mk:190: warning: overriding recipe for target ‘submodules’
Makefile:443: warning: ignoring old recipe for target ‘submodules’
Make sure Ameba serial port name has been correctly updated in the Makefile!
./build/upload_image_tool_linux ./ /dev/ttyUSB0 AMEBA Enable Disable 1500000

Enter Auto Upload Mode
Uploading…
Upload Image done.
All images are sent successfully!



But not appear MicroPython REPL after burn, whatever connect to Log TX/Log RX or AT TX/AT RX, appear like these:


#calibration_ok:[2:19:11]

at version:release/v2.11.2 sdk version:amebad_v6.2C firmware version:release/v4. 9.2(Jul 8 2022-16:18:01)

[AI_LoadConfigFromFlash()-525]load config success
[AI_ComboInit()-171]load config ret=0
[AI_ComboInit()-174]init AT uart ret=0
interface 0 is initialized
interface 1 is initialized

Initializing WIFI …[AI_WatchdogThread()-500]AI_HalWatchdogRefresh start
[AI_WifiInitCallbak()-725]


arch:RTL8720DX,NULL
company:Ai-Thinker|B&T
ble_mac:94c960378d62
wifi_mac:94c960378d5b
sdk_version:release/amebad_v6.2C
firmware_version:release/v4.9.2
compile_time:Jul 8 2022 16:18:01

ready


What’s wrong?

The write port and PERL operating port are different, so you need to reconnect like I did.
Please see below.
especially the last one, look at the photo

BW16 & micropython

Thanks, I use Log_UART port erase and download firmware, success to run MicroPython.

Additional:

  1. When I buy a new BW16 module(burned AT firmware), should I must erase chip first, then download MicroPython firmware? or download MicroPython firmware directly? (use this tool: https://github.com/ambiot/micropython/releases/download/v1.1.0-ameba/Firmware_and_DownloadTool.zip

  2. Other way, use this tool: https://github.com/ambiot/ambd_sdk/tree/dev/tools/AmebaD/Image_Tool, which address should I fill with each .bin file?

custom build generate 5 .bin files like below:

imgtool_flashloader_amebad.bin
km0_boot_all.bin
km0_image2_all.bin
km0_km4_image2.bin
km4_boot_all.bin