Search found 3011 matches

by dhylands
Wed Feb 13, 2019 3:11 am
Forum: General Discussion and Questions
Topic: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...
Replies: 10
Views: 329

Re: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...

If you run add -d to rshell it will print out some additional information.

Do you have a main.py that runs somethng? Or does it go right into the REPL?

If you go into the REPL manually (using picocom or similar), and run the following:

Code: Select all

import ubinascii
_ = ubinascii.unhexlify
what do you see?
by dhylands
Tue Feb 12, 2019 10:16 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 41
Views: 2174

Re: STM32F3 ports

The F3 doesn't have a PHY control, so I'd put #if defined(__HAL_PCD_UNGATE_PHYCLOCK) // Not available on the F3 around that line. For the others, I disabled USB and CAN and then it gets further. The USB peripheral on the F3 looks to be totally different from the F4, so I suspect that quite a few cha...
by dhylands
Mon Feb 11, 2019 8:57 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 41
Views: 2174

Re: STM32F3 ports

It looks like you need to add the following line to ports/stm32/Makefile: CFLAGS_MCU_f3 = $(CFLAGS_CORTEX_M) -mtune=cortex-m3 -mcpu=cortex-m3 in this block: https://github.com/micropython/micropython/blob/a0d60c574a96bb873b0e6822d009031fd5fa3a77/ports/stm32/Makefile#L71 Make sure you do a clean, bec...
by dhylands
Mon Feb 11, 2019 3:34 am
Forum: ESP8266 boards
Topic: Can not flash SonOff with MP
Replies: 10
Views: 171

Re: Can not flash SonOff with MP

I would first verify that you can connect using a regular serial comm program like picocom.

You can then also verify that ubinascii.unhexlify is available.
by dhylands
Mon Feb 11, 2019 3:25 am
Forum: The MicroPython pyboard
Topic: Pyboard D reviews
Replies: 8
Views: 854

Re: Pyboard D reviews

Amazing! I'd also like to have a look, what processors will be available (especially, which chip family), etc. Where is this information accessible? And of course, a timeline would be nice, when we can order :D What information is available can be found in here: https://forum.micropython.org/viewto...
by dhylands
Sun Feb 10, 2019 10:05 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 41
Views: 2174

Re: STM32F3 ports

I'd use the 8K CCM SRAM for the flash cache.
by dhylands
Sun Feb 10, 2019 9:40 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 41
Views: 2174

Re: STM32F3 ports

Which cache are you referring to? It looks like the flash memory on the STM32F303xC is arranged as 128 pages of 2Kbytes each. On the F4 it has much larger flash blocks, so the 64K CCM memory winds up getting used for the filesystem. On the F303 it looks like there is 40K of SRAM and 8K of CCM SRAM. ...
by dhylands
Sun Feb 10, 2019 4:26 pm
Forum: General Discussion and Questions
Topic: Understanding Fatal Error with respect to STM32
Replies: 9
Views: 244

Re: Understanding Fatal Error with respect to STM32

I'm assuming that you've got some code running from main.py and this code is what's causing the failure. Are there any other messages before this? Allocating 31655 is a rather large buffer and needs to done properlly to ensure success. For a buffer that large, you want to allocate it as early as pos...
by dhylands
Sun Feb 10, 2019 4:07 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 30
Views: 1081

Re: Attached is micropython firmware for the nRF52840

Does the REPL work over USB with the nrf52840 dongle?
by dhylands
Sat Feb 09, 2019 11:41 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 30
Views: 1081

Re: Attached is micropython firmware for the nRF52840

Looking at the Insufficient Resources error, I found this:
https://devzone.nordicsemi.com/f/nordic ... ota-failed