Search found 81 matches

by ajie_dirgantara
Mon Sep 18, 2017 9:31 am
Forum: Development of MicroPython
Topic: Micropython stm32 USB dependencies
Replies: 3
Views: 3256

Re: Micropython stm32 USB dependencies

I'm no expert on the build system but MicroPython works fine on ESP8266 devices lacking USB such as the Adafruit Huzzah https://www.adafruit.com/product/2471 . Perhaps something can be gleaned from its makefile etc.? I am not familiar with esp port, but as I've mentioned above, the stm32 port is he...
by ajie_dirgantara
Mon Sep 18, 2017 6:55 am
Forum: Development of MicroPython
Topic: Micropython stm32 USB dependencies
Replies: 3
Views: 3256

Micropython stm32 USB dependencies

Ok, disable USB entirely in micropython from STM32 is considered difficult task for now. I've try many time to look for ENABLE/DISABLE USB preprocessors, but it seems micropython is heavily dependent on it (latest release version 1.9.2). Some codes even make the PCD module/USB mandatory to compile. ...
by ajie_dirgantara
Wed Sep 13, 2017 8:14 am
Forum: General Discussion and Questions
Topic: [SOLVED] Error when import compiled mpy bytecode
Replies: 6
Views: 4975

[SOLVED] Error when import compiled mpy bytecode

This is the first time I've use mpy-cross
and I've got this error when import the module :

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid syntax for number



any thoughts?
by ajie_dirgantara
Tue Sep 05, 2017 9:31 am
Forum: General Discussion and Questions
Topic: [SOLVED] SPI send problem
Replies: 1
Views: 1579

(SOLVED) Re: SPI send problem

ok, the problem solved by adding spi.deinit() everytime I want to do spi.recv()
by ajie_dirgantara
Tue Sep 05, 2017 8:24 am
Forum: General Discussion and Questions
Topic: [SOLVED] SPI send problem
Replies: 1
Views: 1579

[SOLVED] SPI send problem

I've done : spi = pyb.SPI(2, pyb.SPI.MASTER, prescaler = 2, polarity = 0, phase = 0, bits = 8) buf=bytearray(3) buf[0]=0x01 buf[1]=0x02 buf[2]=0x03 spi.send(buf[0]) spi.send(buf[1]) spi.send(buf[2]) but why is that the result in logic analyzer is different from : spi = pyb.SPI(2, pyb.SPI.MASTER, pre...
by ajie_dirgantara
Sat Aug 26, 2017 6:07 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110269

Re: rshell - Remote Shell

dhylands wrote:X/Y/ZMODEM (or perhaps some minor variant which would allow even smaller packets) is one of the candidates that I've been looking at using for a more robust rshell transfer (not just for files, but for all of the information going back and forth).
any news on xmodem implementation on rshell?
by ajie_dirgantara
Sat Aug 26, 2017 2:48 am
Forum: Programs, Libraries and Tools
Topic: MicroPython File Uploader
Replies: 6
Views: 16101

Re: MicroPython File Uploader

Could you add feature for adjustable serial baudrate?
by ajie_dirgantara
Sat Aug 26, 2017 2:29 am
Forum: General Discussion and Questions
Topic: multi peripheral functionality on same pin
Replies: 3
Views: 3012

multi peripheral functionality on same pin

Is it possible to enabled multiple functionality on single pin by assigning definition on mpconfigboard.h, e.g like this (note that B10 and B11 can be used as uart OR i2c) : mpconfigboard.h #define MICROPY_HW_UART3_TX (pin_B10) #define MICROPY_HW_UART3_RX (pin_B11) #define MICROPY_HW_I2C2_SCL (pin_B...
by ajie_dirgantara
Mon Aug 21, 2017 4:08 am
Forum: Programs, Libraries and Tools
Topic: RSHELL --buffer-size recommendation
Replies: 5
Views: 4863

Re: RSHELL --buffer-size recommendation

@ajie_dirgantara Out of interest what MicroPython target board are you using? The board is our own custom board with STM32L451VE chip (hence I port from L476) with some modifications. It has 160KB contiguous RAM, and we didn't use USB at all, hence I am using rshell with native uart for comm. The p...
by ajie_dirgantara
Fri Aug 18, 2017 10:24 am
Forum: Programs, Libraries and Tools
Topic: RSHELL --buffer-size recommendation
Replies: 5
Views: 4863

RSHELL --buffer-size recommendation

I've got issue with --buffer-size=32 on rshell. sometimes it just stop there and do nothing. Eventually after stop and board reset, it will re-format and lost all data in flash. The problem isn't occuring if I set --buffer-size=1. What could be a problem? is it on the usb to serial converter or on t...