NUCLEO-F030R8 support for Arduino_Core_STM32

The official STMicroelectronics Arduino core
fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by fpiSTM » Tue Jun 13, 2017 5:17 pm

Yes same as mbed. For your version (without comment) the first one in the array is get.
Genpinmap extract all possible pin values for a mcu. Not linked to the boards.
It could not choose which one use instead of one other. User has to choose his configurations.

About the Node, you find the cause.
I have:

Code: Select all

 od -t x1 -c -A x   </dev/sdb | head -100
000000  eb  3c  90  4d  53  44  30  53  34  2e  31  00  02  08  01  00
       353   < 220   M   S   D   0   S   4   .   1  \0 002  \b 001  \0
000010  02  20  00  c8  00  f8  03  00  01  00  01  00  00  00  00  00
       002      \0 310  \0 370 003  \0 001  \0 001  \0  \0  \0  \0  \0
000020  00  00  00  00  00  00  29  74  19  02  27  4e  4f  44  45  5f
        \0  \0  \0  \0  \0  \0   )   t 031 002   '   N   O   D   E   _
000030  46  30  33  30  52  38  46  41  54  31  32  20  20  20  00  00
         F   0   3   0   R   8   F   A   T   1   2              \0  \0
000040  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
        \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
My board is: a MB1136 revC

User avatar
Rick Kimball
Posts: 1040
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by Rick Kimball » Wed Jun 14, 2017 2:52 am

I would have thought running the same firmware we would have had the same boot sector. I guess there must be bits on the newer board revisions that let the stlink side of the board know which NUCLEO it is supposed to be. I've had this board a long time. It is probably one of the first ones.
-rick

fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by fpiSTM » Wed Jun 14, 2017 6:54 am

I moved the issue to the Arduino_Tools repo.
https://github.com/stm32duino/Arduino_Tools/issues/6

User avatar
Rick Kimball
Posts: 1040
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by Rick Kimball » Wed Jun 14, 2017 12:21 pm

From UM1724 wrote: "The board marking MB1136 C-01 corresponds to a board, configured as HSE not used.
The board marking MB1136 C-02 (or higher) corresponds to a board, configured to use
ST-LINK MCO as clock input."
I wonder if the label will show up differently if I change my solder bridges to use the MCO. Probably not, how would the st-link know anyways? It was actually something I was considering anyways. It appears the newer boards get better XTAL options. They seem to come pre-installed with 32.768kHz clocks and the solder jumpers configured to use more than just the internal oscillator.

@fpiSTM had you given any thought to providing a board.txt menu item that allows the user to select between various Oscillators and SYSCLK frequencies?
-rick

fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by fpiSTM » Wed Jun 14, 2017 12:26 pm

No Rick.
It should be a nice improvement.

fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by fpiSTM » Fri Jun 16, 2017 3:51 pm

Hi, Rick,

I have update the massStorageScript:
https://github.com/stm32duino/Arduino_Tools/pull/8

Still need to build the binary for MacOsx but it is ok for Linux32/64 and Windows.

User avatar
Rick Kimball
Posts: 1040
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: NUCLEO-F030R8 support for Arduino_Core_STM32

Post by Rick Kimball » Fri Jun 16, 2017 4:11 pm

Thanks @fpiSTM works great!
-rick

Post Reply