Search found 3667 matches

by Roberthh
Tue Feb 09, 2021 7:36 pm
Forum: General Discussion and Questions
Topic: Sending python file from STM32 to XBEE
Replies: 26
Views: 7805

Re: Sending python file from STM32 to XBEE

if you send the files line by line, did you add a delay after each line? If at the XBEE side uart.readline() is used, it requires some time to process the data.
by Roberthh
Tue Feb 09, 2021 7:18 pm
Forum: ESP32 boards
Topic: How to get the full capacity of an 8MB or 16MB flash chip?
Replies: 18
Views: 11702

Re: How to get the full capacity of an 8MB or 16MB flash chip?

I just rebuilt that code, with exactly the same table, for a 8 MB device # Name, Type, SubType, Offset, Size, Flags # Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild nvs, data, nvs, 0x9000, 0x6000, phy_init, data, phy, 0xf000, 0x1000, fac...
by Roberthh
Tue Feb 09, 2021 5:52 pm
Forum: ESP32 boards
Topic: How to get the full capacity of an 8MB or 16MB flash chip?
Replies: 18
Views: 11702

Re: How to get the full capacity of an 8MB or 16MB flash chip?

I recall having successfully made the changes to the partition map. I' ll look into it and tell later.
by Roberthh
Tue Feb 09, 2021 4:04 pm
Forum: General Discussion and Questions
Topic: Sending python file from STM32 to XBEE
Replies: 26
Views: 7805

Re: Sending python file from STM32 to XBEE

So you want to send two python scripts to the XBEE. And you want top send them from a STM32 micro. May I ask you why you do not use a PC to send the file over USB to the XBEE? That is the most simple version, either using the XCTU tool or pyboard.py. With respect to the messed up indentation: did yo...
by Roberthh
Tue Feb 09, 2021 6:57 am
Forum: General Discussion and Questions
Topic: Compiled modules load time
Replies: 8
Views: 3466

Re: Compiled modules load time

File accesses are buffered. So even if the stream is read byte-by-byte, there is a buffer in the way. But caching may get a problem, if the code and memory areas touch in the way are larger than the cache size. As far as I recall, a cache refresh takes 100-300µs. If that happens for every byte of th...
by Roberthh
Mon Feb 08, 2021 7:12 pm
Forum: General Discussion and Questions
Topic: Sending python file from STM32 to XBEE
Replies: 26
Views: 7805

Re: Sending python file from STM32 to XBEE

Does pyboard.py work with the XBee?
Yes
by Roberthh
Mon Feb 08, 2021 7:09 pm
Forum: Raspberry Pi microcontroller boards
Topic: start_new_thread
Replies: 3
Views: 2900

Re: start_new_thread

_thread.exit() will be called from within the newly started thread.
by Roberthh
Mon Feb 08, 2021 5:05 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21888

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

I didn't note some radical differences with the previous script.
The difference is when you push a function or cursor key, which issues two bytes. These are then displayed in a single line. Indeed not a huge difference.
by Roberthh
Mon Feb 08, 2021 4:22 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21888

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

No, I do not know any better single code. You may eventually use a control code which is more rarely used, like Ctrl-T (in pye: go to line 1). Or you go for a function key. For that, you have to move the exit call into the branch after while ch in b"\x00\xe0": # arrow or function key prefix? I modif...
by Roberthh
Mon Feb 08, 2021 3:31 pm
Forum: Raspberry Pi microcontroller boards
Topic: start_new_thread
Replies: 3
Views: 2900

Re: start_new_thread

How do you stop the code running once it's started with start_new_thread?
Call _thread.exit()
Am I right to assume that you cannot pass a single parameter to a function with start_new_thread? I get a tuple error when I try sending just one.
You can pass a single element tuple: (value, )