Search found 3300 matches

by dhylands
Tue Mar 31, 2020 9:13 pm
Forum: General Discussion and Questions
Topic: Mboot SPI Flash Question
Replies: 7
Views: 229

Re: Mboot SPI Flash Question

The 0x08000000 I noticed was this:

Code: Select all

import fwupdate
fwupdate.update_mpy('fw2.dfu.gz',0x80000000,0x400000)
by dhylands
Tue Mar 31, 2020 6:36 pm
Forum: General Discussion and Questions
Topic: Mboot SPI Flash Question
Replies: 7
Views: 229

Re: Mboot SPI Flash Question

Doesn't mboot start at 0x08000000? It looks like your DFU image is also starting at the same address, which means that mboot would be wiping itself out?
by dhylands
Tue Mar 31, 2020 6:27 pm
Forum: General Discussion and Questions
Topic: how to enable CAN bus support on NUCLEO_F091RC
Replies: 10
Views: 204

Re: how to enable CAN bus support on NUCLEO_F091RC

The actual IRQ table can be found in the CMSIS files. For the pyboard, for example, this file: https://github.com/micropython/stm32lib/blob/668d7a9e54aea98f8fe8a858eac1d3daa80fa824/CMSIS/STM32F4xx/Source/Templates/gcc/startup_stm32f405xx.s#L183 The actual IRQ handler is implemented in can.c: https:/...
by dhylands
Mon Mar 30, 2020 11:06 pm
Forum: General Discussion and Questions
Topic: memory allocation error
Replies: 3
Views: 107

Re: memory allocation error

Your heap is probably fragmented. See this thread for more details: viewtopic.php?f=2&t=7915&p=45461&hilit=collect#p45461
by dhylands
Mon Mar 30, 2020 5:19 pm
Forum: General Discussion and Questions
Topic: Sending commands to MicroPhyton via serial connection
Replies: 7
Views: 196

Re: Sending commands to MicroPhyton via serial connection

You also need to send a CR '\r' at the end of the string. This is what gets sent when you press the Return/Enter key in your terminal program. Also make sure that you've disconnected the terminal emulator while your program is running. If 2 programs both have the serial port open then some character...
by dhylands
Fri Mar 27, 2020 4:36 am
Forum: MicroPython pyboard
Topic: Counting mode of pyb1.1 Timer
Replies: 2
Views: 103

Re: Counting mode of pyb1.1 Timer

Are you looking to do quadrature decoding?
If so you can find an example here:

https://github.com/dhylands/upy-example ... ncoder3.py
by dhylands
Fri Mar 27, 2020 4:23 am
Forum: ESP32 boards
Topic: Long delays in handling "large" datasets
Replies: 4
Views: 125

Re: Long delays in handling "large" datasets

I would only append to the file. When it gets to some size (or number of entries) then close the file and open a new open. To get rid of old stuff, delete the oldest file. Trying to treat a file like some type of in-memory structure is a mistake.
by dhylands
Wed Mar 25, 2020 4:57 pm
Forum: WiPy and CC3200 boards
Topic: Wipy no float and math!
Replies: 19
Views: 6949

Re: Wipy no float and math!

I think that issue with the CC3200 is that it doesn't have your typical RAM/FLASH layout and all of the firmware gets loaded into RAM to be run. So when you increase the size of the firmware by adding floating point support then you decrease the size of the heap by same amount as the firmware increa...
by dhylands
Wed Mar 25, 2020 4:52 pm
Forum: Programs, Libraries and Tools
Topic: Large flash size on STM32 port for PyBoard 1.1
Replies: 9
Views: 189

Re: Large flash size on STM32 port for PyBoard 1.1

The firmware runs from the internal flash, and the FLASH_TEXT region in the linker map refers to the size of that internal flash storage area. The sdcard is only used for storing files. If the sdcard contains python code or .mpy files then these still get loaded into RAM and have nothing to do with ...
by dhylands
Wed Mar 25, 2020 4:49 pm
Forum: Other Boards
Topic: [Nucleo-F411RE] Assign REPL on UART6
Replies: 5
Views: 281

Re: [Nucleo-F411RE] Assign REPL on UART6

I know that from time to time I have tried and used the Ubuntu version of arm-none-eabi-gcc provided with Ubuntu, but I've also had it not work. It also seems to lag behind the ARM version by quite a bit IIRC.