board_android-IoT/STM32F 2023. 11. 9. 16:10

https://wikidocs.net/160075

 

3.5 SWV 기능

### 3.5.1 printf 사용 printf()의 출력을 LCD에 표시할 수도 있고 serial cable을 통해서 PC의 터미널 콘솔에 표시할 수도 있다. printf…

wikidocs.net

 

 

https://mokhwasomssi.tistory.com/203

 

ST-LINK의 SWO핀을 이용한 printf 함수 사용

개발환경 : STM32CubeIDE MCU : stm32f411ceu6 디버거 : ST-LINK/V2 프로젝트 타입: STM32Cube 프로젝트 리포지토리 : https://github.com/mokhwasomssi/STM32Cube_Example_Project.git mokhwasomssi/STM32Cube_Example_Project Contribute to mokhwaso

mokhwasomssi.tistory.com

 

 

posted by cskimair
:
board_android-IoT/STM32F 2023. 10. 26. 08:59

1. STM32F103CBT6 vs STM32F103C8T6

- 128KB vs 64KB flash memory

 

2. STM32F103CBT6 + SPI_LCD(ILI1394)

- FLASH_PAGE_F1.c 

> https://github.com/controllerstech/STM32/blob/master/FLASH_PROGRAM/F1%20SERIES/FlASH_PAGE_F1.c

 

//#define _64K_FLASH  1      // if 64K FLASH is available
#ifdef _64K_FLASH   //64KB FLASH avaiable , STM32F103C8T6
uint32_t addressTagFlash  =0x0800FC00 ;//0x0800FC00 =>last 1K of 64K flash  ;  or 0x0800F800 for lower 2K range
#else  //128KB flash available , STM32F103CBT6
uint32_t addressTagFlash  =0x0801FC00 ;//0x0801FC00 =>last 1K of 128K flash  ; or 0x0801F800
#endif

......

  Flash_Write_Data( addressTagFlash, (uint32_t *) TagSaveInfo , sizeof( TagSaveInfo) / sizeof(uint32_t)) ;//0x0801FC00: last 1KB of 128KB Flash
  Flash_Read_Data( addressTagFlash, (uint32_t *) temp_TagSaveInfo , sizeof( temp_TagSaveInfo)/sizeof(uint32_t) ) ;

 

-추가

https://community.st.com/t5/stm32-mcus-products/facing-problems-with-saving-data-to-flash-memory-on/td-p/131871

 

Facing problems with saving data to flash memory on stm32g030c8t6.

I tried implementing a driver by following the Flash example present of the GitHub page and a blog I found online: How to Program Flash memory in STM32 » ControllersTech The driver code according to this blog is: STM32/FlASH_PAGE_F1.c at master · contro

community.st.com

 

-F 시리즈는 아래 eeprom emulation을 지원하지 않음.

> https://community.st.com/t5/stm32-mcus-products/how-to-use-flash-memory-as-a-eeprom-in-stm32g071cbt6/td-p/585659

 

How to use flash memory as a EEPROM in STM32G071CBT6

Hello! I'm using the STM32G071CBT6 controller for my project. I need to store certain values in EEPROM for my project, but unfortunately, this controller doesn't have built-in EEPROM functionality. Despite this limitation, I'm determined to find a solution

community.st.com

 

posted by cskimair
:
board_android-IoT/STM32F 2023. 10. 21. 13:01

https://community.st.com/t5/stm32cubeide-mcus/target-is-not-responding-retrying-issues/td-p/143533

 

Target is not responding, retrying.. Issues ?

Hai....., I am using STM32H743IIT6 custom Board and CubeIDE. Run the code after download it showing "Target not responding retrying......." and again try to download the same code in MCU i couldn't download, It show "Error in initializing ST-LINK device. R

community.st.com

I had faced with similar issue on Nucleo F103RB for debugging alternative.
I have solved with clock setting of CPU as 8MHz from 72MHz.
After this change problem has gone away.
Thus problem CPU drain increase as not matched with USB operation from PC.

So alternative way is increase power drain asserting from VIN terminal with external power supply. 

Please try it.

 

https://community.st.com/t5/stm32-mcus/how-can-i-recover-my-stm32h7-board-after-facing-a-power/ta-p/49579

 

How can I recover my STM32H7 board after facing a power configuration deadlock?

After programming my STM32H7 and performing a reset, I find that I can no longer connect to my target using STLINK. Why does this happen? How can I recover my board?Note that your STM32H7’s SMPS or LDO firmware power configuration must match with the boa

community.st.com

https://community.st.com/t5/stm32-mcus/why-my-stm32-doesn-t-start/ta-p/49367

 

Why my STM32 doesn't start?

How to make sure the STM32 starts properly in our design? Let's look at the following aspects in more detail: 1. HW considerations 2. Start-up configuration 3. Software 4. Summary (TL;DR) 1. HW considerations Datasheet and other documentation Please always

community.st.com

 

posted by cskimair
:
board_android-IoT/STM32F 2023. 10. 11. 18:40

https://stackoverflow.com/questions/66823397/implementing-a-single-press-long-press-and-a-double-press-function-in-hal-for-s

 

Implementing a single press, long press and a double press function in HAL for STM32

I'm trying to implement a single press, double press and long press function to perform different functions. So far I've understood the logic for a single press and long press but I cant figure out...

stackoverflow.com

 

posted by cskimair
:
board_android-IoT/STM32F 2023. 4. 1. 19:41

Let's make legacy equipment connected! 

(From USB Serial cable  connection to bluetooth connection! )

1. This page is made for converting usb serial port  to bluetooth port. So as to communicate mcu's usb serial port with smartphon.  

- I have a STM32F107 + PL2303(mini usb port) embedded device.

- This is a legacy device only communicate through this mini usb cable with PC.

- So, I'd like to make communication with this legacy device through bluetooth. 

 

- overview of converting USB serial port into bluetooth

  >interfacing USB SerialPort with Bluetooth module

 

- How to wiring between USB-to-TTL converter and Bluetooth (BT-05 or ZS-040)

USB-to-TTL converter  TX <->  TX : Bluetooth

USB-to-TTL converter  RX <->  RX : Bluetooth

USB-to-TTL converter GND <->  TX : Bluetooth

USB-to-TTL converter 3.3V  <-> VCC_IN: Bluetooth

 

 

 

 

 

 

reference:

 

https://community.st.com/s/question/0D50X00009XkbKoSAJ/stm32f107

 

STM32F107

 

community.st.com

https://blog.yavilevich.com/2017/03/mlt-bt05-ble-module-a-clone-of-a-clone/

 

MLT-BT05 BLE module – a clone of a clone?? | Arik Yavilevich's blog

Previously I covered the HM-10 Bluetooth Low Energy (BLE) module and its clone, the CC41-A. Those are two popular modules that allow simple BLE communication through a serial interface and are handy with Arduinos and other hobby micro controllers. Make sur

blog.yavilevich.com

https://www.utmel.com/components/hc-06-vs-hc-05-bluetooth-module-what-is-the-difference-between-hc-06-and-hc-05?id=889 

 

HC-06 vs. HC-05 Bluetooth Module: What is the difference between HC-06 and HC-05?

Hc-05 is a Bluetooth serial port module with master-slave integration. The master-slave can be switched with rich and complete instructions. Hc-06 is a Bluetooth serial port module with master-slave integration. The master-slave can be switched by command,

www.utmel.com

 

https://github.com/kai-morich/SimpleBluetoothLeTerminal

 

GitHub - kai-morich/SimpleBluetoothLeTerminal: Android terminal app for Bluetooth LE devices using custom serial profiles

Android terminal app for Bluetooth LE devices using custom serial profiles - GitHub - kai-morich/SimpleBluetoothLeTerminal: Android terminal app for Bluetooth LE devices using custom serial profiles

github.com

 

http://www.kai-morich.de/android/

 

Kai Morich's Android Apps

Serial Bluetooth Terminal

www.kai-morich.de

 

https://www.sparkfun.com/tutorials/215

 

RS-232 vs. TTL Serial Communication - SparkFun Electronics

Weekly product releases, special offers, and more.

www.sparkfun.com

 

 

https://blue-sea-whale.tistory.com/39

 

◈ HC-06 블루투스 모듈

블루투스 모듈이다. 매우저렴하게 쉽게 내 장비에 접속 활용이 가능하다. 간단한 무선 제어 장치가 필요할 때 적용하기에 적당하다. 스마트폰 어플로 블루투스 프로그램도 많기 때문에 간단한 R

blue-sea-whale.tistory.com

https://circuitdigest.com/microcontroller-projects/programming-stm32f103c8-board-using-usb-port

 

Programming STM32F103C8 Board using USB Port

The STM32 Development Board housing the STM32F103C8 Microcontroller is getting increasingly popular thanks to its ARM Cortex M3 architecture, it has high operational speed and more peripheral options. Also since, this board can be easily programmed u

circuitdigest.com

 

 

'board_android-IoT > STM32F' 카테고리의 다른 글

STM32F103CBT6(128KB Flash) user flash write  (1) 2023.10.26
Target is not responding, retrying  (0) 2023.10.21
Keypad double click detect  (0) 2023.10.11
STM32F107 외부 인터럽트  (0) 2023.01.11
STM32F Timer2 (TIM2) Init and run  (0) 2022.10.12
posted by cskimair
:
board_android-IoT/STM32F 2023. 1. 11. 18:04

- SPT.Finder 의 PC12번 외부인터럽트 설정관련 참고자료 

> EXTI15_10_IRQHandler() 함수를 호출해서 인터럽트가 발생하면 처리하게 되어 있음.

 

https://pcb4.tistory.com/2612

 

stm32-외부 인터럽트

※이 문서에는 오류가 있을 수 있습니다. STM32F4은 23개의 외부 인터럽트 이벤트 소스(edge-detector 회로)를 가지고있다. 모든 GPIO 핀을 외부인터럽트로 사용할 수 있다. (외부인터럽트핀이 지정되어

pcb4.tistory.com

 

posted by cskimair
: