Waveshare XNUCLEO-F030R8 User Manual Download Page 16

Xnucleo User Manual   

 

 

16 

V2.6.1, Apr. 25

th

 2015 

share awesome hardware

3.

 

HOW TO USE MBED ON S TM32 XNUCLEO PLATFORM 

Xnucleo series is fully compatible with Nucleo series and can run the Nucleo Demos directly. 

Therefore, you can develop your STM32 Xnucleo applications based on the applications of 

STM32 Nucleo. Table 10 gives the relationship between Xnucleo series and Nucleo series. 

Table 10: Relationships between Xnucleo series and Nucleo series 

Xnucleo 

Nucleo 

XNUCLEO-F030R8 

NUCLEO-F030R8 

XNUCLEO-F103RB 

NUCLEO-F103RB 

XNUCLEO-F302R8 

NUCLEO-F302R8 

XNUCLEO-F401RE 

NUCLEO-F401RE 

XNUCLEO-F411RE 

NUCLEO-F411RE 

The operations presented in this document are based on XNUCLEO-F103RB. For different 

Xnucleo devices, there may be some differences in configuring the development environment. 

So users should operate according to the actual conditions. 

3.1

 

HOW TO COMPILE AND DOWNLOAD PROGRAM UNDER MBED 

In this section, we only present the ways to compile and download program, since it does not 

have room to address every factor of mbed. For more detailed information about the usage of 

mbed, please refer to the documents provided by mbed organization. 

3.1.1

 

PROGRAM COMPILING  

Here we take XNUCLEO-F103RB as an example. Start the mbed software, and open a program, 

such as Nucleo_printf. Then, click the button Compile for program compiling. If the program has 

no error, Compile Output will show “Success!” after the compiling is finished. And the file 

Nucleo_printf_NUCLEO_F103RB.bin will be generated. This file can be found in the specified 

save path (This save path is modifiable). 

3.1.2

 

PROGRAM DOWNLOADING  

1)

 

Run the STM32 ST-LINK Utility, and select file->Open file. Then, open the file 

Nucleo_printf_NUCLEO_F103RB.bin. 

Summary of Contents for XNUCLEO-F030R8

Page 1: ...or Leonardo Arduino ICSP interface Yes None ICSP is required by certain kinds of shields USB connectivity Yes None The USB connector of NUCLEO is for debugging ONLY not available for USB connection U...

Page 2: ...connecting with an Arduino shield if it were close to the PCB edge ST LINK Separated Integrated ST LINK can be used anywhere else Comes with USB cable Yes None ORDERING INFORMATION Table 1 Xnucleo se...

Page 3: ...tting started 5 1 2 1 Hardware configurations 6 1 2 2 Observing the actions 6 2 Hardware configuration 7 2 1 Power supply settings 7 2 1 1 Power supply input from the USB connector 7 2 1 2 Using CN2 V...

Page 4: ...SPI connector 12 2 8 USB connector 13 2 9 Solder bridges 13 2 10 Extension connector 13 3 How to use mbed on STM32 Xnucleo platform 16 3 1 How to compile and download program under mbed 16 3 1 1 Prog...

Page 5: ...user tools STM32 ST LINK Utility STM32 ST LINK Utility_v3 4 0 exe For more detailed information about installation and usage of STM32 ST LINK Utility please refer to the document provided by ST Xnucle...

Page 6: ...r supply connect the power supply socket CN2 on the Xnucleo board to a 6 12V power adapter 3 Connect the ST LINK V2 mini debugger programmer to the SWD connector Notices It is recommended to plug in t...

Page 7: ...In case the ST LINK V2 mini USB connector is used to power the Xnucleo board the host PC will provide 150mA current at maximum as 3 3V voltage is outputted from the ST LINK V2 mini USB connector to th...

Page 8: ...mini to the PC to ensure that the Xnucleo board can work properly Table 3 External power source parameters Name Pins Voltage range Max current Limitations CN2 CN2 6V 12V 800mA The inputted current is...

Page 9: ...power source specified in Table 3 needs to be respected The 3 3 V CN6 pin 4 or CN7 pin 12 16 can be used also as power supply output The current is limited by the maximum current capability of the re...

Page 10: ...ted to the I O PC13 pin 2 of the targeted MCU by setting JP6 to ON 2 3 2 RESET BUTTON This RESET button is connected to NRST and is used to reset the targeted MCU 2 4 JP6 IDD JUMPER SETTINGS 2 4 1 JP6...

Page 11: ...Connect the TX PC10 PC6 of JP4 to RXD Connect the RX PC11 PC of JP4 to TXD Here is the jumper setting for connecting to XNUCLEO F030R8 Connect the TX PA9 of JP4 to RXD Connect the RX PA10 of JP4 to TX...

Page 12: ...ired you can connect the ADC interface or the I2C interface to the Arduino connector or the ST Morpho connector by setting the JP5 Here are the relative settings to JP5 The pins A4 and A5 of JP5 shoul...

Page 13: ...tion SB74 ON IOREF is connected to 3 3V OFF IOREF unconnected SB75 ON IOREF is connected to 5V OFF IOREF unconnected SB45 VBAT VLCD ON VBAT or VLCD on STM32 MCU is connected to VDD OFF VBAT or VLCD on...

Page 14: ...Xnucleo User Manual 14 V2 6 1 Apr 25 th 2015 share awesome hardware Figure 1 XNUCLEO F030R8 Figure 2 XNUCLEO F103RB Figure 3 XNUCLEO F302RC...

Page 15: ...Xnucleo User Manual 15 V2 6 1 Apr 25 th 2015 share awesome hardware Figure 4 XNUCLEO F401RE Figure 5 XNUCLEO F411RE...

Page 16: ...ing the development environment So users should operate according to the actual conditions 3 1 HOW TO COMPILE AND DOWNLOAD PROGRAM UNDER MBED In this section we only present the ways to compile and do...

Page 17: ...program runs since 1 second This program runs since 2 seconds This program runs since 3 seconds This program runs since 4 seconds This program runs since 5 seconds At this time the USER LED is blinkin...

Page 18: ...EMO Besides Nucleo Demos the Demos for different periphery modules provided by Waveshare are supported by Xnucleo series as well The corresponding devices to the periphery module Demos include but not...

Page 19: ...B10 D6 PB10 D6 PB10 D6 PB10 D6 Color Sensor LED 3 3V 3 3V 3 3V 3 3V 3 3V OUT PC7 D9 PA1 A1 PA1 A1 PA1 A1 PA1 A1 S3 PA9 D8 PA9 D8 PA9 D8 PA9 D8 PA9 D8 S2 PA8 D7 PA8 D7 PA8 D7 PA8 D7 PA8 D7 S1 NC NC NC...

Page 20: ...O Expansion Shied User Manual Some of the sensors may only lead out the pin AOUT or the pin DOUT In this case the additional reserved pin s of IO Expansion Shied can be left unconnected One IO Expansi...

Page 21: ...sformation A DA value Voltage value S State There are two states ON and OFF Rot Rotation count for rotation encoder For clockwise rotation the counter value is incremented by 1 for anticlockwise rotat...

Page 22: ...Users can get the actual color on the basis of the RGB value For more information please refer to Color Sensor User Manual RTC Real time clock The outputted time information from RTC KEY USER button...

Reviews: