Search found 3016 matches

by dhylands
Sat Feb 09, 2019 4:38 pm
Forum: General Discussion and Questions
Topic: Understanding Fatal Error with respect to STM32
Replies: 9
Views: 251

Re: Understanding Fatal Error with respect to STM32

I'd guess that you have an ISR which is trying to allocate a buffer. Any code which uses ISRs should allocate an emergency exception buffer as described here: http://docs.micropython.org/en/latest/reference/isr_rules.html#the-emergency-exception-buffer then you should get some more detail (i.e. file...
by dhylands
Sat Feb 09, 2019 4:24 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

The following change will fix make-pins.py to work properly with the F3. Change the function condition_var (line 58) from this: def conditional_var(name_num): # Try the specific instance first. For example, if name_num is UART4_RX # then try UART4 first, and then try UART second. name, num = split_n...
by dhylands
Sat Feb 09, 2019 3:34 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

The problem in main.c is that the code wants a way to interact with the user for doing the various resets. MICROPY_HS_HAS_SWITCH is defined, however it seems that neither MICROPY_HW_LED2 nor MICROPY_HW_LED1 is defined. Looking at the mpconfigboard.h file I see lots of LEDs defined. I'm assuming that...
by dhylands
Sat Feb 09, 2019 4:48 am
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

Those should all be available from the data sheet and/or reference manual.
by dhylands
Fri Feb 08, 2019 7:09 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

I got around the pll problem by changing the definition of HSE_VALUE in boards/STM32F3DISC/stm32f3xx_hal_conf.h from:

Code: Select all

  #define HSE_VALUE    (8000000U) /*!< Value of the External oscillator in Hz */^M
to be

Code: Select all

  #define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
by dhylands
Fri Feb 08, 2019 7:05 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

It looks like the first problem is that the CMSIS_MCU in your mpconfigboard.mk file has a typo. It shows: CMSIS_MCU = STM32F303xx I think that this is supposed to be: CMSIS_MCU = STM32F303xC The Makefile looks for this file ../../lib/stm32lib/CMSIS/STM32F3xx/Include/$(CMSIS_MCU - in lower case).h wh...
by dhylands
Fri Feb 08, 2019 6:42 pm
Forum: General Discussion and Questions
Topic: Terminology: upload vs download
Replies: 4
Views: 152

Re: Terminology: upload vs download

Except dfu-util decided to use the terminology from the device's perspective. So you download new firmware to the board and upload firmware to the host if you want to read the firmware from the device. Excerpt from dfu-util --help: -U --upload <file> Read firmware from device into <file> -Z --upload...
by dhylands
Thu Feb 07, 2019 8:37 pm
Forum: Other Boards
Topic: STM32F3 ports
Replies: 42
Views: 2251

Re: STM32F3 ports

Romeo - can you give me a pointer to your micropython repository and stm32lib repository? And the name of the board you were trying to build?
by dhylands
Thu Feb 07, 2019 4:10 pm
Forum: General Discussion and Questions
Topic: Terminology: upload vs download
Replies: 4
Views: 152

Re: Terminology: upload vs download

I generally say flashing which means programming the flash memory on the device. The micropython makefile uses the terminology "deploy".

Upload/download is relative to the host or the device so either can be used depending on the context.
by dhylands
Wed Feb 06, 2019 5:22 am
Forum: Other Boards
Topic: STM32L1 micropython port
Replies: 7
Views: 191

Re: STM32L1 micropython port

When you create a commit you can choose which files are included. If you've already got the files commited then the next best thing to do is to checkout your tree from before you made any changes and create a new branch. Then cherry pick the files you want to add and make a PR from that new branch.