From 23ef8f6c2545649dde4ec7fb7cb3d39fe9dd6853 Mon Sep 17 00:00:00 2001 From: AnkithB2020 <60104194+AnkithB2020@users.noreply.github.com> Date: Mon, 27 Jan 2020 15:06:57 +0100 Subject: [PATCH] os.mkfs() replaced with os.fsformat() os.mkfs() has been replaced with os.fsformat() Link explaining the replacement details: https://forum.pycom.io/topic/3351/new-development-firmware-release-v1-19-0-b1/2 Issue: https://forum.pycom.io/topic/5606/what-happened-to-pin_deepsleep_wakeup/9 --- content/gettingstarted/programming/first-project.md | 2 +- content/gettingstarted/programming/safeboot.md | 3 +-- content/tutorials/lte/firmware.md | 13 +++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/gettingstarted/programming/first-project.md b/content/gettingstarted/programming/first-project.md index 9545b22..5b40ad6 100644 --- a/content/gettingstarted/programming/first-project.md +++ b/content/gettingstarted/programming/first-project.md @@ -118,5 +118,5 @@ If you need to remove files from your device you have two options, either connec ```python import os -os.mkfs('/flash') +os.fsformat('/flash') ``` diff --git a/content/gettingstarted/programming/safeboot.md b/content/gettingstarted/programming/safeboot.md index 7f4b58e..29a190b 100644 --- a/content/gettingstarted/programming/safeboot.md +++ b/content/gettingstarted/programming/safeboot.md @@ -35,7 +35,7 @@ If problems occur within the filesystem or you wish to factory reset your module ```python >>> import os ->>> os.mkfs('/flash') +>>> os.fsformat('flash') ``` {{% hint style="danger" %}} @@ -59,4 +59,3 @@ A hard reset is the same as performing a power cycle to the device. In order to >>> import machine >>> machine.reset() ``` - diff --git a/content/tutorials/lte/firmware.md b/content/tutorials/lte/firmware.md index abc48e8..fcb5b54 100644 --- a/content/tutorials/lte/firmware.md +++ b/content/tutorials/lte/firmware.md @@ -37,7 +37,7 @@ Please start with the following steps: 2. Select Firmware Type `stable` in the communication window to upgrade to version `v1.18.1.r1` -The modem firmware files are password protected, to download them you should be a forum.pycom.io member and access to: +The modem firmware files are password protected, to download them you should be a forum.pycom.io member and access to: Announcements & News --> Announcements only for members --> Firmware Files for Sequans LTE modem now are secured, or clicking [Here](https://forum.pycom.io/topic/4020/firmware-files-for-sequans-lte-modem-now-are-secured). You can find the different versions of firmwares available [here](https://software.pycom.io/downloads/sequans2.html). @@ -57,7 +57,7 @@ import sqnsupgrade sqnsupgrade.run('upgdiff_38638-to-39529.dup') ``` If you are updating the Sequans firmware on your module for the first time, please use instead the file upgdiff_33080-to-39529.dup (1.2M) from the same archive. -Similar upgrade packages are available for the NB-IoT firmwares. +Similar upgrade packages are available for the NB-IoT firmwares. {{% /hint %}} ## Via SD card @@ -72,8 +72,11 @@ To transfer the firmware files onto the SD card you have two options: from machine import SD sd = SD() -os.mkfs(sd) # format SD card -os.mount(sd, '/sd') # mount it +os.fsformat('/sd') # format SD card +from machine import SD +sd = SD() +fs = os.mkfat(sd) +os.mount(fs, '/sd') # mount it os.listdir('/sd') # list its content ``` @@ -267,5 +270,3 @@ The latest version of the `sqnsupgrade` class has a few additional features that #### sqnsupgrade.run(load_fff=True) New optional command line option load_fff for the sqnsupgrade.run() command. This is designed to be an internal flag. And should only applied when advised by pycom support. - -