Search found 45 matches

by Meekdai
Tue Dec 04, 2018 6:53 am
Forum: MicroPython pyboard
Topic: Is there a way to increase RAM?
Replies: 7
Views: 4408

Re: Is there a way to increase RAM?

Because I used websocket on pyboard.

Code: Select all

#define MICROPY_PY_LWIP (1)
#define MICROPY_PY_WEBSOCKET (1)
Lwip maybe used part of the memory.

It seems to be a bit difficult to use CCM data RAM.
viewtopic.php?f=2&t=427&hilit=CCM+data+RAM
by Meekdai
Tue Dec 04, 2018 2:52 am
Forum: MicroPython pyboard
Topic: Is there a way to increase RAM?
Replies: 7
Views: 4408

Re: Is there a way to increase RAM?

Is there a way to use the 64K that was originally used as a file system cache ? I can use the SD card to do file system storage.
by Meekdai
Mon Dec 03, 2018 10:30 am
Forum: MicroPython pyboard
Topic: Is there a way to increase RAM?
Replies: 7
Views: 4408

Re: Is there a way to increase RAM?

Why is the available gc memory only about 72KB? MicroPython v1.9.4-479-g828f771e3-dirty on 2018-11-30; PYBv1.0 with STM32F405RG Type "help()" for more information. >>> import micropython >>> micropython.mem_info(1) stack: 508 out of 15360 GC: total: 74368, used: 69968, free: 4400 I want to know how ...
by Meekdai
Mon Dec 03, 2018 6:34 am
Forum: MicroPython pyboard
Topic: Is there a way to increase RAM?
Replies: 7
Views: 4408

Is there a way to increase RAM?

Hello everyone. I have a lot of chips controlled by my system (pybv10). I have packaged them into modules for each chip driver and frozen them. I read the instructions for memory usage. http://docs.micropython.org/en/latest/reference/constrained.html After optimizing the code, the memory is still in...
by Meekdai
Thu Nov 08, 2018 1:58 am
Forum: General Discussion and Questions
Topic: How to communicate with 40 bit SPI
Replies: 4
Views: 3341

Re: How to communicate with 40 bit SPI

def writeReg(self,regaddr,data): self.tmc_cs.low() ba=bytes([regaddr|0x80,0xFF&(data>>24),0xFF&(data>>16),0xFF&(data>>8),0xFF&data]) reg_val=self.spi.send_recv(ba) self.tmc_cs.high() self.reg_status=reg_val[0]>>32 return reg_val It works well , thanks !
by Meekdai
Wed Nov 07, 2018 8:59 am
Forum: General Discussion and Questions
Topic: How to communicate with 40 bit SPI
Replies: 4
Views: 3341

Re: How to communicate with 40 bit SPI

Here is my code, but it doesn't works. def writeReg(self,regaddr,data): self.tmc_cs.low() self.spi.send(regaddr|0x80) self.spi.send(0xFF & (data>>24)) self.spi.send(0xFF & (data>>16)) self.spi.send(0xFF & (data>>8)) self.spi.send(0xFF & (data>>0)) self.tmc_cs.high()
by Meekdai
Tue Nov 06, 2018 9:19 am
Forum: General Discussion and Questions
Topic: How to communicate with 40 bit SPI
Replies: 4
Views: 3341

How to communicate with 40 bit SPI

pyb SPI bits can be 8 or 16, but TMC5130-TA is use 40 bit SPI. Does Pyboard have a way to communicate with this chip?
datasheet:https://www.trinamic.com/fileadmin/asse ... ev1.15.pdf
Chapter 4 on page 21, description of SPI

Thanks
by Meekdai
Sun Sep 30, 2018 1:21 am
Forum: MicroPython pyboard
Topic: The WIZNET5500 reception is a bit slow
Replies: 1
Views: 1857

Re: The WIZNET5500 reception is a bit slow

There are some new discoveries.It seems related to this post: http://lwip.100.n7.nabble.com/lwIP-delays-outgoing-TCP-packets-by-up-to-500ms-td26785.html I tried to modify the TCP_TMR_INTERVAL (tcp_priv.h) value to 5 and make the firmware. Received real-time performance has been improved. :D Unfortun...
by Meekdai
Sat Sep 29, 2018 5:49 am
Forum: MicroPython pyboard
Topic: The WIZNET5500 reception is a bit slow
Replies: 1
Views: 1857

The WIZNET5500 reception is a bit slow

I refer to the following to configure my pyboard and w5500. https://github.com/micropython/micropython/commit/7d86ac6c0197abddd4ccff92154af326da083558 Then I send a piece of data from the PC, and pyboard successfully received it. But when I send data from the PC every 100ms, my pyboard obviously doe...
by Meekdai
Mon Jul 09, 2018 1:32 am
Forum: MicroPython pyboard
Topic: I don't need echo when using repl
Replies: 7
Views: 8559

Re: I don't need echo when using repl

If enter the raw REPL (see: http://docs.micropython.org/en/latest/pyboard/reference/repl.html#raw-mode) then the data which is sent to the pyboard is not echoed. You could also use something like json-ipc which you can find over here: https://github.com/dhylands/json-ipc I rewrote a custom REPL wit...