Search found 19 matches

by akushva
Mon Aug 02, 2021 7:32 am
Forum: General Discussion and Questions
Topic: [RSHELL on nucleo L476rg ] Unable to copy py files to flash
Replies: 7
Views: 2809

Re: [RSHELL on nucleo L476rg ] Unable to copy py files to flash

I think the problem lies here. The command line got stuck again when I entered those commands >>> MicroPython v1.14 on 2021-02-02; NUCLEO-L476RG with STM32L476RG Type "help()" for more information. >>> with open('/flash/test', 'w') as f: ... f.write('hello\n') ... ←[KK Also, I'm getting '←[K' when I...
by akushva
Mon Aug 02, 2021 7:15 am
Forum: General Discussion and Questions
Topic: [RSHELL on nucleo L476rg ] Unable to copy py files to flash
Replies: 7
Views: 2809

Re: [RSHELL on nucleo L476rg ] Unable to copy py files to flash

@Pythoncoder I tried the commands and this is what I got

Code: Select all

D:\nw\upython\stm32\nucleo_l46rg\code> repl
Entering REPL. Use Control-X to exit.
>
MicroPython v1.14 on 2021-02-02; NUCLEO-L476RG with STM32L476RG
Type "help()" for more information.
>>>
>>>
>>> import os
>>> os.listdir('/flash')
['boot.py']
by akushva
Mon Aug 02, 2021 6:31 am
Forum: General Discussion and Questions
Topic: [RSHELL on nucleo L476rg ] Unable to copy py files to flash
Replies: 7
Views: 2809

Re: [RSHELL on nucleo L476rg ] Unable to copy py files to flash

Thanks for your prompt reply @pythoncoder. I tried the commands as per your suggestion. I got ['Flash'] after running the commands and then I again tried putting a .py file into flash and nothing happened. I waited for whole 5 minutes and the screen was stuck at the last line in the code mentioned b...
by akushva
Sat Jul 31, 2021 6:13 pm
Forum: General Discussion and Questions
Topic: [RSHELL on nucleo L476rg ] Unable to copy py files to flash
Replies: 7
Views: 2809

[RSHELL on nucleo L476rg ] Unable to copy py files to flash

Hello, I'm currently using a nucleo L476rg board. I've been successfully able to connect the board via rshell- D:\nw\upython\stm32\nucleo_l46rg\code> connect serial com11 115200 Connecting to com11 (buffer-size 512)... Trying to connect to REPL connected Retrieving sysname ... pyboard Testing if sys...
by akushva
Thu Jul 22, 2021 6:26 pm
Forum: General Discussion and Questions
Topic: STM32L423KC - Low power modes
Replies: 2
Views: 1516

STM32L423KC - Low power modes

Hello everybody I was thinking about using the Nucleo-L432KC board for some battery-based applications. but I couldn't find pyb.standby or stop function in the firmware. dir(pyb) ['__class__', '__name__', 'main', 'ADC', 'ADCAll', 'DAC', 'ExtInt', 'LED', 'Pin', 'RTC', 'SPI', 'Timer', 'UART', 'country...
by akushva
Sun May 23, 2021 8:36 pm
Forum: General Discussion and Questions
Topic: Creating zip file in ESP32 flash
Replies: 1
Views: 1480

Creating zip file in ESP32 flash

Hello everybody,

Is there a way to create a zip file in esp32 flash using micropython. I need to create a zip file of multiple .csv files containing sensor data.
by akushva
Tue Dec 15, 2020 7:10 am
Forum: General Discussion and Questions
Topic: Getting Image file(jpg/jpeg) in esp32 file system.
Replies: 1
Views: 1494

Getting Image file(jpg/jpeg) in esp32 file system.

Hello Everyone

I just want to know, is there any way by which we can get an image file in esp32's file system(SPIFFS) serially similar to what we have in Arduino through the ESP sketch data upload mechanism.

Thanks!
by akushva
Sat Jul 11, 2020 8:17 pm
Forum: General Discussion and Questions
Topic: Disabling REPL on ESP32
Replies: 1
Views: 1432

Disabling REPL on ESP32

I have an application where I store wifi credentials on a text file inside the flash. I have encrypted the password using the cryptolib library but still, REPL exposes the file system and keys would be accessible making the encryption useless. Even if I store my keys in a frozen module, it wouldn't ...
by akushva
Fri Jul 10, 2020 10:07 am
Forum: General Discussion and Questions
Topic: Double underscore before a name isn't working in micropython
Replies: 3
Views: 2003

Re: Double underscore before a name isn't working in micropython

stijn wrote:
Fri Jul 10, 2020 9:56 am
*edit* ah, I assume you mean MicroPython does not support 'Private variables' i.e. https://docs.python.org/3/tutorial/clas ... -variables ?

Yes, I meant that. I forgot to write "private variables" in my query :oops: .
So,upy doesn't support private variables?
by akushva
Fri Jul 10, 2020 9:40 am
Forum: General Discussion and Questions
Topic: Double underscore before a name isn't working in micropython
Replies: 3
Views: 2003

Double underscore before a name isn't working in micropython

It's a sample code I executed in micropython. class Student: def __init__(self,name): self.name=name self._name1=name self.__name2=name p=Student('abc') print(p.name) print(p._name1) print(p.__name2) and the output I received abc abc abc p.__name generally generates an error in the python interpreter.