understanding read_buf_len in pyb.UART

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
lnsri22
Posts: 67
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

understanding read_buf_len in pyb.UART

Post by lnsri22 » Sat Feb 09, 2019 1:04 pm

Hello Everyone!!

I have a question with respect to UART in pyb class.

Referring to the following picture, where from the buffer size is allocated for the parameter read_buf_len.

Is it from RAM?


I'm so sorry if my question doesn't make sense.
Attachments
Screenshot 2019-02-09 at 6.28.45 PM.png
Screenshot 2019-02-09 at 6.28.45 PM.png (67.7 KiB) Viewed 210 times
lnsri22 :)

User avatar
dhylands
Posts: 3204
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: understanding read_buf_len in pyb.UART

Post by dhylands » Sat Feb 09, 2019 4:47 pm

The read buffer is allocated from RAM (nothing is ever "allocated" from flash). Flash is essentially read-only.

lnsri22
Posts: 67
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Re: understanding read_buf_len in pyb.UART

Post by lnsri22 » Sat Feb 16, 2019 4:55 am

Simply Thanks!! :D
lnsri22 :)

Post Reply