Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:wb15 [2023/12/06 07:10]
darron [Demo firmware]
boards:wb15 [2023/12/15 07:49] (current)
darron [Upgrade procedure]
Line 15: Line 15:
 WARNING: There is an option byte called ESE on this board, it you WARNING: There is an option byte called ESE on this board, it you
 disable it the board will refuse to operate (untested). disable it the board will refuse to operate (untested).
 +
 +
 +===Pinout===
 +
 +<code>
 +LED
 +PB5 LD1 BLUE
 +PB0 LD2 GREEN
 +PB1 LD3 RED
 +
 +BUTTON
 +PA0   B1
 +PE4   B2
 +PA6   B3
 +RESET B4
 +
 +USART1 (ST-LINK)
 +PA10 TX_STLINK AF7
 +PA9  RX_STLINK AF7
 +
 +X1 NX2016SA 32 MHz
 +OSC_IN
 +OSC_OUT
 +
 +X2 NX2012SA 32.768 kHz
 +PC14 OSC32_IN
 +PC16 OSC32_OUT
 +</code>
 +
 ===Firmware upgrade services=== ===Firmware upgrade services===
  
Line 50: Line 79:
 used to reset the option bytes. used to reset the option bytes.
  
-The Android app demos work with stm32wb1x_BLE_Stack_full_fw.bin +The Android app demos work with stm32wb1x_BLE_Stack_full_fw.bin and STM32CubeMX allows selection between full and light for building new projects.
-so probably best to stick with that one.+
  
  
Line 87: Line 115:
 </code> </code>
  
-Now press firmware upgrade.+Now press firmware upgrade and after start the wireless firmware.
  
 ===Demo firmware=== ===Demo firmware===
Line 98: Line 126:
  
 ==Program== ==Program==
 +
 +A pre-built hex file can be programmed, else the application built from a [[https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_BLE_STM32CubeMX|guide]] for STM32CubeMX.
  
 <code> <code>
-"/mnt/c/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI.exe" -c port=SWD ap=-q -w BLE_p2pServer_reference.hex -v -hardRst+"/mnt/c/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI.exe" -c port=SWD reset=HWrst -q -w BLE_p2pServer_reference.hex -v -hardRst
 </code> </code>
  
Line 186: Line 216:
 The UUID "0000fe40-cc7a-482a-984a-7f2ed5b3e58f"  is used to communicate with the p2pServer STM32_WPAN application firmware. The UUID "0000fe40-cc7a-482a-984a-7f2ed5b3e58f"  is used to communicate with the p2pServer STM32_WPAN application firmware.
  
-The handles that are known to operate p2pServer are 0x000E and 0x0011+The handles that are known to operate p2pServer are 0x0E and 0x11
  
-Handle 0x0011 turns button notification on and off and 0x000E is the blue LED.+Handle 0x0011 turns button notification on and off and 0x0E is the blue LED.
  
 For example, to turn on the LED: For example, to turn on the LED:
  
 <code> <code>
-char-write-cmd 0x000E 0x01+char-write-cmd 0x0E 0x01
 </code> </code>
  
Line 203: Line 233:
 </code> </code>
  
-NB char-write-cmd above works in interactive mode but not otherwise. char-write-req fails either way. +NB char-write-cmd above works in interactive mode but not otherwise. char-write-req fails either way since this is setup in the firmware as write without a response.
- +
- +
  
 +==Python==
  
 +See [[tools:bluetooth#python|this]] example code to operate the p2pServer demo.
 ===Resources=== ===Resources===
  
Line 214: Line 243:
  
 [[https://www.st.com/resource/en/data_brief/nucleo-wb15cc.pdf|User manual]] [[https://www.st.com/resource/en/data_brief/nucleo-wb15cc.pdf|User manual]]
 +
 +[[https://www.st.com/resource/en/schematic_pack/mb1641-wb15cc-c01_schematic.pdf|Schematic]]
  
 [[https://www.st.com/en/microcontrollers-microprocessors/stm32wb15cc.html|MCU product page]] [[https://www.st.com/en/microcontrollers-microprocessors/stm32wb15cc.html|MCU product page]]
 +
 +[[https://www.st.com/resource/en/datasheet/stm32wb15cc.pdf|MCU data-sheet]]
 +
 +[[https://www.st.com/resource/en/reference_manual/rm0473-multiprotocol-wireless-32bit-mcu-armbased-cortexm4-with-fpu-bluetooth-low-energy-radio-solution-stmicroelectronics.pdf|MCU reference manual]]
  
 [[https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Connectivity:STM32WB_FUS|Firmware upgrade guide]] [[https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Connectivity:STM32WB_FUS|Firmware upgrade guide]]
Line 222: Line 257:
  
 [[https://www.st.com/resource/en/programming_manual/dm00716581-stm32wb-ble-stack-programming-guidelines-stmicroelectronics.pdf|BLE programming guide]] [[https://www.st.com/resource/en/programming_manual/dm00716581-stm32wb-ble-stack-programming-guidelines-stmicroelectronics.pdf|BLE programming guide]]
 +
 +[[https://www.st.com/resource/en/application_note/dm00771441-stm32h745755-and-stm32h747757-lines-interprocessor-communications-stmicroelectronics.pdf|Dual Core IPCC]]
 +
 +[[https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_BLE_STM32CubeMX|BLE demo application]]