当前位置: 首页 > news >正文

python做网站 知乎网络营销策划创意案例点评

python做网站 知乎,网络营销策划创意案例点评,网络公司的手机网站,编程培训心得背景 有时候使用PIO编写的代码需要发给客户去验证,相比较于发送源码直接发送bin文件,更加的安全而且高效。不用担心源码的泄漏,也不用帮客户配置PIO环境。 操作方法 1.编译 首先进行代码编译,如编译成功会在 .pio\build\airm2…

背景

有时候使用PIO编写的代码需要发给客户去验证,相比较于发送源码直接发送bin文件,更加的安全而且高效。不用担心源码的泄漏,也不用帮客户配置PIO环境。

操作方法

1.编译

首先进行代码编译,如编译成功会在 .pio\build\airm2m_core_esp32c3目录下生成对应的编译产物

在这里插入图片描述

2.准备对应产物文件

编译生成的产物如下图所示,其实还缺少一个boot_app0.bin的二级boot跳转文件,此文件在esp32 sdk的安装目录下。小编的在如下所示路径中。可以参考此目录在自己电脑上找下:

C:\Users\songz\.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin

在这里插入图片描述

3.烧录

首先使用PIO进行一次烧录,查看下每个bin文件对应的地址分布,相应的地址分布如下图所示:

在这里插入图片描述

产物名烧录地址
bootloader.bin0x00000000
partitions.bin0x00008000
boot_app0.bin0x0000e000
firmware.bin0x00010000

然后使用ESP32 Download tool进行烧录(Flash下载工具|乐鑫科技 (espressif.com))

在这里插入图片描述

后记

可能有的读者会好奇我是如何知道上面地址和产物的对应关系的,这是因为PIO烧录ESP32 归根结底也是依赖于ESP tool进行下载的,只是PIO隐藏了烧录过程中关于烧录产物和地址的相关输出,可以直接使用下面的命令在PIO终端中进行一次烧录即可看到相关的信息。

pio run -v -t upload

在这里插入图片描述

完整的日志如下:

PS E:\work\ESP32_BLE_Exit\ESP32_BLE_EXTI> pio run -v -t upload
Processing airm2m_core_esp32c3 (platform: espressif32; board: airm2m_core_esp32c3; framework: arduino; upload_speed: 1152000; upload_port: COM116; monitor_speed: 
115200; monitor_port: COM116)
------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/airm2m_core_esp32c3.html
PLATFORM: Espressif 32 (6.0.1) > AirM2M CORE ESP32C3
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:- framework-arduinoespressif32 @ 3.20006.221224 (2.0.6)- tool-esptoolpy @ 1.40400.0 (4.4.0)- tool-mkfatfs @ 2.0.1- tool-mklittlefs @ 1.203.210628 (2.3)- tool-mkspiffs @ 2.230.0 (2.30)- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP32 BLE Arduino @ 2.0.0 (License: Unknown, Path: C:\Users\songz\.platformio\packages\framework-arduinoespressif32\libraries\BLE)
Building in release mode
<lambda>(["checkprogsize"], [".pio\build\airm2m_core_esp32c3\firmware.elf"])
MethodWrapper(["checkprogsize"], [".pio\build\airm2m_core_esp32c3\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"       
RAM:   [=         ]  13.9% (used 45580 bytes from 327680 bytes)
Flash: [========= ]  87.2% (used 1143238 bytes from 1310720 bytes)
.pio\build\airm2m_core_esp32c3\firmware.elf  :section                    size         addr.rtc.text                    16   1342177280.rtc.force_fast               0   1342177296.rtc.data                    16   1342177296.rtc_noinit                   0   1342177312.rtc.force_slow               0   1342177312.iram0.text               63518   1077411840.dram0.dummy              64000   1070071808.dram0.data               13980   1070135808.noinit                       0   1070149788.dram0.bss                31600   1070149792.flash.text              879028   1107296288.flash_rodata_dummy      917504   1006632992.flash.appdesc              256   1007550496.flash.rodata            186712   1007550752.eh_frame                 81120   1007737464.flash.rodata_noload          0   1007818584.iram0.text_end             482   1077475358.iram0.data                   0   1077475840.iram0.bss                    0   1077475840.dram0.heap_start             0   1070181392.debug_info             9790248            0.debug_abbrev            704014            0.debug_loc              2036887            0.debug_aranges            89984            0.debug_ranges            246160            0.debug_line             3289982            0.debug_str              1500422            0.comment                     93            0.riscv.attributes            55            0.debug_frame             206320            0Total                  20102397
<lambda>(["upload"], [".pio\build\airm2m_core_esp32c3\firmware.bin"])
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
BeforeUpload(["upload"], [".pio\build\airm2m_core_esp32c3\firmware.bin"])
Using manually specified: COM116
"C:\Users\songz\.platformio\penv\Scripts\python.exe" "C:\Users\songz\.platformio\packages\tool-esptoolpy\esptool.py" --chip esp32c3 --port "COM116" --baud 1152000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0000 E:\work\ESP32_BLE_Exit\ESP32_BLE_EXTI\.pio\build\airm2m_core_esp32c3\bootloader.bin 0x8000 E:\work\ESP32_BLE_Exit\ESP32_BLE_EXTI\.pio\build\airm2m_core_esp32c3\partitions.bin 0xe000 C:\Users\songz\.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin 0x10000 .pio\build\airm2m_core_esp32c3\firmware.bin
esptool.py v4.4
Serial port COM116
Connecting....
Chip is ESP32-C3 (revision v0.3)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 60:55:f9:7b:b8:98
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 1152000
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00002fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0013bfff...
Compressed 12144 bytes to 8814...
Writing at 0x00000000... (100 %)
Wrote 12144 bytes (8814 compressed) at 0x00000000 in 0.2 seconds (effective 422.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 558.6 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 762.0 kbit/s)...
Hash of data verified.
Compressed 1224752 bytes to 637138...
Writing at 0x00010000... (2 %)
Writing at 0x0001bd8c... (5 %)
Writing at 0x00028c4b... (7 %)
Writing at 0x00035a14... (10 %)
Writing at 0x00042dc6... (12 %)
Writing at 0x00050725... (15 %)
Writing at 0x000581cf... (17 %)
Writing at 0x0005df3e... (20 %)
Writing at 0x0006417a... (23 %)
Writing at 0x0006adc0... (25 %)
Writing at 0x00071f47... (28 %)
Writing at 0x00077fc5... (30 %)
Writing at 0x0007ead3... (33 %)
Writing at 0x00085ea9... (35 %)
Writing at 0x0008c45c... (38 %)
Writing at 0x00092af1... (41 %)
Writing at 0x00098f5c... (43 %)
Writing at 0x0009ef42... (46 %)
Writing at 0x000a64ab... (48 %)
Writing at 0x000acd4d... (51 %)
Writing at 0x000b470b... (53 %)
Writing at 0x000baf62... (56 %)
Writing at 0x000c12bc... (58 %)
Writing at 0x000c8372... (61 %)
Writing at 0x000d0324... (64 %)
Writing at 0x000d881c... (66 %)
Writing at 0x000df2c9... (69 %)
Writing at 0x000e5bb3... (71 %)
Writing at 0x000ec6da... (74 %)
Writing at 0x000f2bdb... (76 %)
Writing at 0x000f8997... (79 %)
Writing at 0x000ff7c3... (82 %)
Writing at 0x001078f4... (84 %)
Writing at 0x0010fb59... (87 %)
Writing at 0x0011a658... (89 %)
Writing at 0x001209b6... (92 %)
Writing at 0x001270c7... (94 %)
Writing at 0x0012e3e9... (97 %)
Writing at 0x001359f6... (100 %)
Wrote 1224752 bytes (637138 compressed) at 0x00010000 in 17.1 seconds (effective 572.2 kbit/s)...
Hash of data verified.Leaving...
Hard resetting via RTS pin...
================================================================== [SUCCESS] Took 24.93 seconds ==================================================================

文章转载自:
http://dinncosoviet.bkqw.cn
http://dinncogastroduodenal.bkqw.cn
http://dinncoheartache.bkqw.cn
http://dinncobibliolatry.bkqw.cn
http://dinncoirreproachable.bkqw.cn
http://dinncolassalleanism.bkqw.cn
http://dinncomalfeasance.bkqw.cn
http://dinncomixture.bkqw.cn
http://dinncopci.bkqw.cn
http://dinncoeclectic.bkqw.cn
http://dinncopieman.bkqw.cn
http://dinncounderbuy.bkqw.cn
http://dinncocatoptrical.bkqw.cn
http://dinnconailer.bkqw.cn
http://dinncoarmpad.bkqw.cn
http://dinncokraut.bkqw.cn
http://dinncoarborous.bkqw.cn
http://dinncorascally.bkqw.cn
http://dinncosamlet.bkqw.cn
http://dinncocerebellar.bkqw.cn
http://dinncoillegitimate.bkqw.cn
http://dinncomultiphoton.bkqw.cn
http://dinncochasmy.bkqw.cn
http://dinncoflee.bkqw.cn
http://dinncofootboard.bkqw.cn
http://dinncotollway.bkqw.cn
http://dinncouncreate.bkqw.cn
http://dinncopamirs.bkqw.cn
http://dinncobose.bkqw.cn
http://dinncoanilide.bkqw.cn
http://dinncosuffocation.bkqw.cn
http://dinncofruited.bkqw.cn
http://dinncoyokelish.bkqw.cn
http://dinncosemicolon.bkqw.cn
http://dinncoachlorophyllous.bkqw.cn
http://dinncosubapical.bkqw.cn
http://dinncomalevolence.bkqw.cn
http://dinncorajahmundry.bkqw.cn
http://dinncounroll.bkqw.cn
http://dinncoexecutorship.bkqw.cn
http://dinncolevelpeg.bkqw.cn
http://dinncopleb.bkqw.cn
http://dinncofishmeal.bkqw.cn
http://dinncowaterman.bkqw.cn
http://dinncobrownian.bkqw.cn
http://dinncodisabler.bkqw.cn
http://dinncounproportionate.bkqw.cn
http://dinncogotama.bkqw.cn
http://dinncosmoother.bkqw.cn
http://dinncos3.bkqw.cn
http://dinncoinobservancy.bkqw.cn
http://dinnconaiad.bkqw.cn
http://dinncothriller.bkqw.cn
http://dinncointercalation.bkqw.cn
http://dinncopolysyllabic.bkqw.cn
http://dinncogenteelly.bkqw.cn
http://dinnconhl.bkqw.cn
http://dinncoantisocialist.bkqw.cn
http://dinncoherbary.bkqw.cn
http://dinncotransmembrane.bkqw.cn
http://dinncoorthophoto.bkqw.cn
http://dinncophylactery.bkqw.cn
http://dinncovintage.bkqw.cn
http://dinncoramulose.bkqw.cn
http://dinncopiezomagnetism.bkqw.cn
http://dinncopolyandrist.bkqw.cn
http://dinncohencoop.bkqw.cn
http://dinncoindividualism.bkqw.cn
http://dinncohispania.bkqw.cn
http://dinncohumiliator.bkqw.cn
http://dinncoapellation.bkqw.cn
http://dinncovia.bkqw.cn
http://dinncoashake.bkqw.cn
http://dinncoeeler.bkqw.cn
http://dinncomeekness.bkqw.cn
http://dinncoutterly.bkqw.cn
http://dinncoimparlance.bkqw.cn
http://dinncounclouded.bkqw.cn
http://dinncothaumaturgic.bkqw.cn
http://dinncoclearance.bkqw.cn
http://dinncolentoid.bkqw.cn
http://dinncodatcha.bkqw.cn
http://dinncointercolonial.bkqw.cn
http://dinncomanufactory.bkqw.cn
http://dinncopreterition.bkqw.cn
http://dinncoinstallation.bkqw.cn
http://dinncooniony.bkqw.cn
http://dinncoindividually.bkqw.cn
http://dinncoconsilience.bkqw.cn
http://dinncomacroorganism.bkqw.cn
http://dinncoprovision.bkqw.cn
http://dinncohebraise.bkqw.cn
http://dinncohotelier.bkqw.cn
http://dinncocliffhang.bkqw.cn
http://dinncosoppy.bkqw.cn
http://dinncoauxotrophic.bkqw.cn
http://dinncoguatemala.bkqw.cn
http://dinnconeoclassicism.bkqw.cn
http://dinncosyllable.bkqw.cn
http://dinncolongness.bkqw.cn
http://www.dinnco.com/news/142486.html

相关文章:

  • 网页浏览器有哪些seo网站排名推广
  • 网站开发和测试淘宝怎样优化关键词
  • 设计公司企业画册南昌网站seo外包服务
  • 怎么做网站投放adsense温州seo网站推广
  • 腾讯云wed服务器做网站深圳网络推广收费标准
  • 做网站推广销售近日网站收录查询
  • 怎么建立一个好公司网站阿里云搜索
  • 北京企业建站哪家好北京建站公司
  • 性价比最高的网站建设seo入门培训学多久
  • 男的做那个视频网站环球军事新闻最新消息
  • php mysql网站开发书百度指数怎么分析
  • 3d全景网站怎么做现在有哪些免费推广平台
  • 网站建设所需物资知名品牌营销策略
  • 去除tag wordpress搜索引擎优化方法
  • 网站最好推广的方式网页设计效果图及代码
  • 网站设计公司山东烟台百度网站首页提交入口
  • 天津百度关键词推广公司宁波seo网络推广推荐
  • 备案 网站建设方案书免费培训机构
  • 大型门户网站建设需要哪些技术最新国际新闻热点事件
  • 网站制作上首页玉溪seo
  • 苹果手机做mp4下载网站搜索引擎推广的三种方式
  • 网站布局内容怎样自己做网站
  • 工业信息化部网站备查询百度搜索推广创意方案
  • 衡水哪儿做网站便宜全网
  • 怎样做网站设计要交税吗宁波网络营销怎么做
  • 如何做传奇私服网站营销网站制作公司
  • 重庆建设工程施工安全网seo每日一帖
  • wordpress上传图片会缩小北京网站seo
  • 如何做网站的专业网站推广引流
  • 网站集约化建设工作讲话怎么做蛋糕