Search found 39 matches

by Meekdai
Wed Jul 03, 2019 12:11 pm
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 1020

Re: 3d printer firmware based on pyboard

I found an interesting project https://github.com/Nikolay-Kha/PyCNC Typically there is no way to control stepper motors from Linux runtime environment due to the lack of real time GPIO control. Even kernel based modules can not guarantee precise control of pulses for steppers. However, we can use a ...
by Meekdai
Fri Jun 28, 2019 5:18 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

I know you could add a SPI RAM and use it to read/write from (like a disk). I don't know if the stm32 used in the SF2 will transparently make it behave like internal RAM. You'll need to read through the datasheet and see if it supports something like that. Thank you, if there is an idea, I will try...
by Meekdai
Fri Jun 28, 2019 3:07 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

I'm not sure - you'd need to check the datasheet for the SF2 and find out what it supports for external RAM, and then see if the pins to support that are available on WBUS. And even then, I don't know what state micropython is in as far as supporting external RAM on the stm32. You'd probably need t...
by Meekdai
Fri Jun 28, 2019 2:30 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

RAM is voltaile and can be changed. Flash is non-volatile and can't be changed like RAM. In order to change flash, you need to erase a block first and then write the contents of the block with the new data. When you power off your MCU flash retains its contents and RAM doesn't. On the SF2, one of t...
by Meekdai
Fri Jun 28, 2019 12:54 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

dhylands wrote:
Thu Jun 27, 2019 9:01 pm
No - this extends the flash, and not the RAM.
I don't understand the difference between the two QSPI FLASH on SF2. I thought 'code execution capabilities'='Memory mapping'. I find that ESP32 supports external SPI RAM.
by Meekdai
Thu Jun 27, 2019 11:51 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

SPI FLASH 2 in PYBD_SF2

2MByte external flash with code execution capabilities (extends internal flash)
I want to ask, is this the same as the internal RAM of the chip? Can pyboard(STM32F405) increase RAM (Memory mapping) in this way? Thanks.
by Meekdai
Mon Apr 29, 2019 2:51 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 1020

Re: 3d printer firmware based on pyboard

The other option is to use a chip such as the STM L6470. As I understand it you pass the chip a target and it handles microstepping and step rate limitations automatically. I read the L6470 datasheet. It is similar to the TMC5130 I am currently using. It is very convenient to control a single stepp...
by Meekdai
Mon Apr 29, 2019 1:10 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 1020

Re: 3d printer firmware based on pyboard

@OutoftheBOTS This is really a good idea. But I don't know how to create function in C, I just add the .py file to '../micropython/ports/stm32/modules' and make the micropython firmware. Is there any documentation I missed?
by Meekdai
Sun Apr 28, 2019 7:04 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 1020

Re: 3d printer firmware based on pyboard

Many years ago I transplant the GRBL code to STM32F1 and it works well.
I think micropython can do the same.
by Meekdai
Fri Apr 26, 2019 12:50 am
Forum: Hardware Projects
Topic: How to expand the size of spiflash?
Replies: 9
Views: 594

Re: How to expand the size of spiflash?

I use the W25Q128 configuration on PYBV10 as follows: // use external SPI flash for storage #define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0) #define MICROPY_HW_SPIFLASH_SIZE_BITS (128 * 1024 * 1024) #define MICROPY_HW_SPIFLASH_CS (pin_A2) #define MICROPY_HW_SPIFLASH_SCK (pin_A5) #define MICROPY_...