javakys
javakys
Untitled
37 posts
Don't wanna be here? Send us removal request.
javakys ยท 2 years ago
Text
[Python] Python์œผ๋กœ CMSIS-DAP ์žฅ์น˜ ์ œ์–ดํ•˜๊ธฐ
pyOCD ์„ค์น˜ github๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• https://github.com/mbedmicro/pyOCD ์œ„ ์‚ฌ์ดํŠธ์—์„œ Zip ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•ด์„œ ์›ํ•˜๋Š” ๋””๋ ‰ํ† ๋ฆฌ์— ์„ค์น˜ํ•œ๋‹ค. pip๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• $ pip install โ€“pre -u pyocd pyUSB ์‚ฌ์šฉ์„ ์œ„ํ•œ ํ™˜๊ฒฝ ์„ค์ • pyOCD๋Š” USB ์žฅ์น˜๋ฅผ ํ†ตํ•ด์„œ CMSIS-DAP ์žฅ์น˜์™€ ํ†ต์‹ ์„ ํ•œ๋‹ค. pyOCD๋Š” pyUSB ํด๋ž˜์Šค๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐ pyUSB๊ฐ€ ์ง์ ‘ USB์žฅ์น˜๋ฅผ ์ด์šฉํ•˜๊ฒŒ ๋œ๋‹ค. ubuntu์™€ ๊ฐ™์€ linux ์‹œ์Šคํ…œ์—์„œ pyOCD๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ์œ„ํ•ด์„œ๋Š” udev rules์— USB device์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋Š” permission์„ ๋ถ€์—ฌํ•ด์•ผํ•œ๋‹ค. /etc/udev/rules.d/ ์œ„์น˜์— mbed.rules๋ผ๋Š” ํŒŒ์ผ์„โ€ฆ
View On WordPress
0 notes
javakys ยท 2 years ago
Text
[Python] Ubuntu์—์„œ Python๊ณผ MySQL์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ ์„ค์ •
Ubuntu์—์„œ Python์„ ์ด์šฉํ•ด์„œ MySQL DB์— ์ ‘์†ํ•  ํ•„์š”๊ฐ€ ์ž์ฃผ ์ƒ๊ธด๋‹ค. Python์—์„œ MySQL์„ ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ํ•„์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ mysql client ๋ชจ๋“ˆ์„ ์„ค์น˜ํ•ด์•ผํ•œ๋‹ค. ์ด ์ž‘์—…์€ ์‚ฌ์šฉ์ž๊ฐ€ ์–ด๋–ค ๋ฒ„์ „์˜ Python์„ ์‚ฌ์šฉํ•˜๋Š” ์ง€์— ๋”ฐ๋ผ์„œ ๋‹ค๋ฅด๊ฒŒ ์ˆ˜ํ–‰ํ•ด์•ผํ•œ๋‹ค. Python๊ณผ ๋ฌด๊ด€ํ•˜๊ฒŒ mysqlclient ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์„ค์น˜๊ฐ€ ํ•„์š”ํ•œ๋ฐ ์•„๋ž˜ โ€˜๊ณตํ†ตโ€™ ๋ถ€๋ถ„์— ํ‘œ์‹œ๋œ ๊ฒƒ์ฒ˜๋Ÿผ ์ˆ˜ํ–‰ํ•˜๋ฉด ๋œ๋‹ค. ๊ณตํ†ต $ apt-get install python-dev libmysqlclient-dev ์ดํ›„ ๋‹จ๊ณ„๋Š” Python ๋ฒ„์ „์— ๋”ฐ๋ผ์„œ ์•„๋ž˜ ์•ˆ๋‚ด์™€ ๊ฐ™์ด ์„ค์น˜ ๋‹จ๊ณ„๋ฅผ ์ˆ˜ํ–‰ํ•œ๋‹ค. Python 2.x Python 2.x ๋ฒ„์ „์—์„œ๋Š” MySQL-python์„ ์„ค์น˜ํ•œ๋‹ค. $ pip installโ€ฆ
View On WordPress
0 notes
javakys ยท 2 years ago
Text
[STM32F4] Introduction to STM32F4 CPP Library from twareLAB
The original text of this article can be found at https://twarelab.com/blog/introduction-to-stm32f4-stm32f4-cpp-library For many embedded system developers, the STM32 series from STMicro can be considered a familiar MCU. One important reason for this is the use of ARM Cortex core and the stability of various peripherals, but the fact that the development environment, including IDE tools andโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 2 years ago
Text
[STM32F4] STM32F4 CPP Library ์†Œ๊ฐœ
์ด๊ธ€์˜ ์›๋ณธ์€ https://twarelab.com/blog/stm32f4-stm32f4-cpp-library-์†Œ๊ฐœ ๋จธ๋ฆฌ๋ง ๋งŽ์€ ์ž„๋ฒ ๋””๋“œ ์‹œ์Šคํ…œ ๊ฐœ๋ฐœ์ž๋“ค์—๊ฒŒ ์นœ์ˆ™ํ•œ MCU๋Š” STMicro์˜ STM32 ์‹œ๋ฆฌ์ฆˆ๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค. ARM Cortex Core๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ๋‹ค์–‘ํ•œ Peripheral์ด ์•ˆ์ •์ ์ด๋ผ๋Š” ์ ์ด ์ค‘์š”ํ•œ ์ด์œ ์ด๊ฒ ์ง€๋งŒ ๋ฌด๋ฃŒ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” IDE ํˆด๊ณผ Flash ๋‹ค์šด๋กœ๋“œ ํˆด ๋“ฑ ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•์— ๋น„์šฉ์ด ๋“ค์ง€ ์•Š๋Š”๋‹ค๋Š” ์ ๋„ ์‚ฌ์šฉ์ž์˜ ์„ ํƒ์„ ๋ฐ›๋Š”๋ฐ ๋„์›€์ด ๋˜๊ณ  ์žˆ๋‹ค. ๋˜ํ•œ ๋งŽ์€ ์‚ฌ์šฉ์ž๋“ค์ด ์‚ฌ์šฉํ•จ์œผ๋กœ์จ ์ฐธ์กฐํ• ๋งŒํ•œ ์˜ˆ์ œ๋“ค์ด ํ’๋ถ€ํ•˜๊ณ  ์กด์žฌํ•˜๊ณ  ์žˆ๊ณ  ์˜จ๋ผ์ธ์—์„œ ์ฐธ์กฐํ• ๋งŒํ•œ ํŠœํ† ๋ฆฌ์–ผ์ด๋‚˜ ๋ธ”๋กœ๊ทธ๋“ค์ด ์กด์žฌํ•œ๋‹ค๋Š” ๊ฒƒ๋„ ST MCU๋ฅผ ์„ ํƒํ•˜๋Š” ์ด์œ ์ด๋‹ค. ํ•˜์ง€๋งŒ ๊ทธ๋งŒํผ ๋งŽ์€ ์‚ฌ์šฉ์ž๋“ค์ด ๋ฏธ์„ธํ•œ ์ œ์–ด๋ฅผ ํ•˜๋Š”๋ฐโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 3 years ago
Text
STM32์—์„œ EEPROM ์ฝ๊ธฐ ์“ฐ๊ธฐ ์˜ค๋ฅ˜ ๋Œ€์‘
STM32์—์„œ EEPROM ์ฝ๊ธฐ ์“ฐ๊ธฐ ์˜ค๋ฅ˜ย ๋Œ€์‘
EEPROM Read/Write๋ฅผ ์œ„ํ•œ ์˜คํ”ˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ https://github.com/sinadarvi/SD_HAL_AT24 ์˜คํ”ˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์‚ฌ์šฉ์‹œ ๋ฌธ์ œ์  32๋ฐ”์ดํŠธ์˜ ๊ฒฝ๊ณ„๋ฅผ ๋„˜๋Š” ๋ฒ”์œ„๋กœ Read/Write๋ฅผ ํ•  ๋•Œ, ๊ฐ’์ด ์ œ๋Œ€๋กœ ์ฝ๊ณ  ์“ฐ์ง€์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋‚ด๋ถ€ ํ•จ์ˆ˜์—์„œ ์ด๋Ÿฐ ๋ฌธ์ œ๋ฅผ ์ผ์œผํ‚ค๋Š” ๊ฒƒ์œผ๋กœ ๋ณด์ธ๋‹ค. ํ•ด๊ฒฐ์ฑ… EEPROM ๊ณต๊ฐ„์ด 32๋ฐ”์ดํŠธ ๋‹จ์œ„๋ฅผ ๊ฑธ์น˜์ง€ ์•Š๋„๋ก Dummy ๋ธ”๋ก์„ ์ง€์ •ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ Read/Write ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•œ๋‹ค.
View On WordPress
0 notes
javakys ยท 4 years ago
Text
UART-to-Ethernet Loopback Example
This post is the final step of this project. In this post, I implement an example that receives data from ethernet and feed back through UART, then send data to the peer system via ethernet again, and a brief explanation is attached. Variable Declaration As UART communication is done with DMA, we need some buffers for UART DMA Tx and UART DMA Rx. And we donโ€™t know when data arrives in UART DMAโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
UART-to-Ethernet Loopback Example
์ด๋ฒˆ ํฌ์ŠคํŒ…์€ ๋ณธ ํ”„๋กœ์ ํŠธ์˜ ๋งˆ์ง€๋ง‰ ๋‹จ๊ณ„๋กœ Ethernet์—์„œ ์ˆ˜์‹ ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ UART๋ฅผ ํ†ตํ•ด์„œ Loopback ํ•œ ๋‹ค์Œ์— Peer system์œผ๋กœ ๋˜๋Œ๋ ค์ฃผ๋Š” ์˜ˆ์ œ๋ฅผ ๊ตฌํ˜„ํ•˜๊ณ  ๊ตฌํ˜„ ๋‚ด์šฉ์„ ์„ค๋ช…ํ•œ๋‹ค. ๋ณ€์ˆ˜ ์ •์˜ UART ์†ก์ˆ˜์‹ ์„ DMA๋ฅผ ํ†ตํ•ด์„œ ์ˆ˜ํ–‰ํ•˜๊ธฐ ๋•Œ๋ฌธ์— UART DMA Tx๋ฅผ ์œ„ํ•œ ๋ฒ„ํผ์™€ UART DMA Rx๋ฅผ ์œ„ํ•œ ๋ฒ„ํผ๊ฐ€ ์žˆ์–ด์•ผ ํ•œ๋‹ค. ๋˜, UART DMA Rx์˜ ๊ฒฝ์šฐ๋Š” ๋ฐ์ดํ„ฐ๊ฐ€ ์ˆ˜์‹ ๋˜๋Š” ์‹œ์ ์„ ์•Œ ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์— ํ˜„์žฌ ์ˆ˜์‹ ๋œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋Š” ํฌ์ธํ„ฐ์™€ ์ˆ˜์‹  ๋ฒ„ํผ์—์„œ ๋‹ค์Œ์— ์ฝ์–ด๊ฐ€์•ผํ•  ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋Š” ํฌ์ธํ„ฐ๊ฐ€ ํ•„์š”ํ•˜๋‹ค. ์•„๋ž˜ ๊ทธ๋ฆผ์€ ์ด๋Ÿฐ ๊ฐœ๋…์„ ์„ค๋ช…ํ•˜๊ณ  ์žˆ๋‹ค. ์—ฌ๊ธฐ์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๋ฒ„ํผ๋Š” DMARxBuf์ธ๋ฐ UART DMA Rx๋Š” Circular ๋ชจ๋“œ๋กœ ์ง€์ •ํ•˜์˜€๊ธฐ ๋•Œ๋ฌธ์— ๋ฐ์ดํ„ฐ๊ฐ€ ์–ธ์ œโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
How to use UART DMA RX on STM32F103 MCU
How to use UART DMA RX on STM32F103ย MCU
On the last post, I explained how to use UART DMA on STM32F103 MCU using HAL Library. Iโ€™ll explain how to use UART DMA RX here. First, thanks to Majerie Tilen and his tutorial and github repo regarding using UART DMA RX. His tutorial is very helpful for us to understand the mechanism of UART DMA RX on STM32 MCU. Why uses UART DMA RX When receiving a bulk data, using only interrupt mayโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
STM32F103 MCU์—์„œ UART DMA ์ˆ˜์‹  ์‚ฌ์šฉํ•˜๊ธฐ
STM32F103 MCU์—์„œ UART DMA ์ˆ˜์‹ ย ์‚ฌ์šฉํ•˜๊ธฐ
์ง€๋‚œ๋ฒˆ ํฌ์ŠคํŒ…์—์„œ STM32F103 MCU์—์„œ HAL Library๋ฅผ ์‚ฌ์šฉํ•ด์„œ UART DMA๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ•์— ๋Œ€ํ•ด์„œ ์‚ดํŽด๋ณด์•˜๋‹ค. ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” UART ๋ฐ์ดํ„ฐ ์ˆ˜์‹ ์— DMA๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ•์„ ์•Œ์•„๋ณผ ๊ฒƒ์ด๋‹ค. UART DMA ์ˆ˜์‹ ์˜ ์žฅ์  ๋Œ€๋Ÿ‰์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ˆ˜์‹ ๋  ๋•Œ ์ธํ„ฐ๋ŸฝํŠธ ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜๋ฉด ๋งค ๋ฐ”์ดํŠธ๊ฐ€ ์ž…๋ ค๋  ๋•Œ๋งˆ๋‹ค ์ธํ„ฐ๋ŸฝํŠธ ์ฒ˜๋ฆฌ ๋ฃจํ‹ด์ด ํ˜ธ์ถœ๋˜๊ธฐ ๋•Œ๋ฌธ์— ๋‹ค๋ฅธ ์ค‘์š”ํ•œ ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๋Š” ๋ฐ ๋ฐฉํ•ด๊ฐ€ ๋  ์ˆ˜ ์žˆ๋‹ค. ์ด๋Ÿฐ ๊ฒฝ์šฐ์— UART DMA ์ˆ˜์‹ ์„ ์‚ฌ์šฉํ•˜๋ฉด ์•„๋ฌด๋ฆฌ ํฐ ์šฉ๋Ÿ‰์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ๋“ค์–ด์˜ค๋”๋ผ๋„ HT(Half Transfer) ์ธํ„ฐ๋ŸฝํŠธ, TC(Transfer Completion) ์ธํ„ฐ๋ŸฝํŠธ ๋งŒ ๋ฐœ์ƒํ•˜๊ธฐ ๋•Œ๋ฌธ์— MCU ๊ฐ„์„ญ์„ ์ตœ์†Œํ™”ํ•  ์ˆ˜ ์žˆ๋Š” ์žฅ์ ์ด ์žˆ๋‹ค. UART DMA ์ˆ˜์‹ ์‹œ ๊ณ ๋ ค์‚ฌํ•ญ UART DMA ์ˆ˜์‹ ์€โ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
How to use UART DMA on STM32103 MCU
How to use UART DMA on STM32103ย MCU
For UART communication, you can do it in blocking mode or nonblocking mode using interrupt.In Blocking mode, all other operation is blocked until UART communication finishes, whereas other operations can be run independently from UART communication in nonblocking mode and time-critical operations run in real time. UART DMA is nonblocking operation, and it reduces interrupts and enhances itsโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
STM32103 MCU์—์„œ UART DMA ์‚ฌ์šฉํ•˜๊ธฐ
STM32103 MCU์—์„œ UART DMAย ์‚ฌ์šฉํ•˜๊ธฐ
UART ์†ก์ˆ˜์‹ ์€ blocking ๋ฐฉ์‹์„ ์“ฐ๊ฑฐ๋‚˜ ์ธํ„ฐ๋ŸฝํŠธ๋ฅผ ์ด์šฉํ•œ nonblocking ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. Blocking ๋ฐฉ์‹์€ UART ์†ก์ˆ˜์‹ ์ด ์™„๋ฃŒ๋  ๋•Œ๊นŒ์ง€ ๋‹ค๋ฅธ ์ž‘์—…์„ ํ•  ์ˆ˜ ์—†๋Š” ๋ฐ˜๋ฉด์— nonblocking ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜๋ฉด UART ์†ก์ˆ˜์‹ ์„ ๋ฉ”์ธ ๋ฃจํ‹ด๊ณผ ๋…๋ฆฝ์ ์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋ฆฌ์–ผํƒ€์ž„์„ ๋ณด์žฅํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋œ๋‹ค. UART DMA๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ nonblocking์˜ ์ผ์ข…์ด๋ฉด์„œ ์ธํ„ฐ๋ŸฝํŠธ ๋ฐœ์ƒ์˜ ํšŸ์ˆ˜๋ฅผ ์ค„์—ฌ์„œ ๋” ๋ฆฌ์–ผํƒ€์ž„์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ๋‹ค. ๋ณธ ํฌ์ŠคํŒ…์—์„œ๋Š” STM32103 MCU์—์„œ UART DMA๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์„ค๋ช…ํ•œ๋‹ค. Hardware Configuration ์ด์ „ ํฌ์ŠคํŒ…์—์„œ์™€ ๊ฐ™์ด ํ•˜๋“œ์›จ์–ด ํ™˜๊ฒฝ์€ WIZnet WIZ145SR์„ ์‚ฌ์šฉํ•œ๋‹ค. UART DMA๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
Connecting W5300 to STM32F103 via FSMC interface
Connecting W5300 to STM32F103 via FSMCย interface
As W5300 supports only Parallel Bus Interface to Host MCU, connecting W5300 to STM32F103 MCU needs FSMC(Flexible Static Memory Controller) interface. Iโ€™ll show you here how to configure FSMC interface for W5300 and how to set up a loopback application as an example of TCP/IP communication using W5300 Configure FSMC In Pinout and Configuration Tab, select Connectivity->FSMC and. In FSMC Modeโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
FSMC ์ธํ„ฐํŽ˜์ด์Šค๋กœ STM32F103๊ณผ W5300 ์—ฐ๊ฒฐํ•˜๊ธฐ
FSMC ์ธํ„ฐํŽ˜์ด์Šค๋กœ STM32F103๊ณผ W5300ย ์—ฐ๊ฒฐํ•˜๊ธฐ
FSMC ํ•€ ์„ค์ •ํ•˜๊ธฐ Pinout and Configuration ํƒญ์—์„œ Connectivity->FSMC๋ฅผ ์„ ํƒํ•˜๊ณ  FSMC Mode ๋ธ”๋ก์—์„œ โ€œNOR Flash/PSRAM/SRAM/ROM/LCD 3โ€ ๋ฅผ ํด๋ฆญํ•œ ํ›„, Chip Select๋Š” โ€œNE3โ€, Memory type์€ โ€œSRAMโ€, Address๋Š” โ€œ10 bitsโ€, Data๋Š” โ€œ16 bitโ€๋ฅผ ์„ ํƒํ•œ๋‹ค. FSMC Configuration ๋ธ”๋ก์—์„œ Write operation์€ โ€œEnableโ€๋กœ ๋ณ€๊ฒฝํ•˜๊ณ , NOR/PSRAM timing์—์„œ โ€œData setup time in HCLK clock cyclesโ€๋Š” 3, ๋‚˜๋จธ์ง€๋Š” 0์œผ๋กœ ์„ค์ •ํ•œ๋‹ค. ioLibrary ์„ค์น˜ํ•˜๊ธฐ WIZnet์—์„œ๋Š” ioLibrary (internet offloadโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
How to make STM32CubeIDE Project for WIZ145SR
How to make STM32CubeIDE Project forย WIZ145SR
MCU and Clock Selection New Project First, select File->New->STM32 Project to make a new project like below image. Target Selection Window pops up automatically and waits for you to choose a MCU you want. Please check โ€œArm Cortex M3โ€ in Core section, โ€œSTM32F103โ€ in Line section, and select STM32F103ZE LQFP144 package on the right plane. MCU Selection After selected, the window will change asโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
High speed UART-to-Ethernet Example with WIZnet W5300
High speed UART-to-Ethernet Example with WIZnetย W5300
Basic Communication Peripheral โ€“ UART UART is the basic and common communication peripheral on embedded devices. Even tiny mcu supports 1 or 2 UART essentially and industrial devices exchange data each other via serial communcation, and so UART is still most popular and appealing. SPI or Ethernet is getting more popular due to its high speed communication capability whereas poor performance ofโ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
WIZ145SR์šฉ STM32CubeIDE Project ๋งŒ๋“ค๊ธฐ
WIZ145SR์šฉ STM32CubeIDE Projectย ๋งŒ๋“ค๊ธฐ
MCU and Clock Selection ์ƒˆ Project ๋งŒ๋“ค๊ธฐ ๋จผ์ € ์•„๋ž˜ ๊ทธ๋ฆผ๊ณผ ๊ฐ™์ด File->New->STM32 Project ๋ฅผ ์„ ํƒํ•ด์„œ ์ƒˆ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ ๋‹ค. ์ž๋™์œผ๋กœ Target ์„ ํƒ ์ฐฝ์ด ๋‚˜ํƒ€๋‚˜๋Š” ๋ฐ WIZnet WIZ145SR์€ STM32F103ZE๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— Target Selection ์œˆ๋„์šฐ์—์„œ ํ•ด๋‹น MCU๋ฅผ ์„ ํƒํ•œ๋‹ค. Core๋Š” Arm Cortex M3, Line์€ STM32F103, MCUs/MPUs List์—์„œ STM32F103ZE, ๊ทธ ์ค‘์—์„œ๋„ LQFP144๋ฅผ ์„ ํƒํ•œ๋‹ค. MCU Selection ์„ ํƒ์ด ์™„๋ฃŒ๋˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ํ‘œ์‹œ๋œ๋‹ค. Clock Configuration MCU๋ฅผ ์„ ํƒํ•˜๊ณ  ๋‚˜๋ฉด ๊ธฐ๋ณธ์ ์œผ๋กœ Clock ์„ค์ •์„โ€ฆ
Tumblr media
View On WordPress
0 notes
javakys ยท 4 years ago
Text
WIZnet W5300์„ ์ด์šฉํ•œ ๊ณ ์† UART-to-Ethernet ์‘์šฉ ๊ฐœ๋ฐœ
WIZnet W5300์„ ์ด์šฉํ•œ ๊ณ ์† UART-to-Ethernet ์‘์šฉย ๊ฐœ๋ฐœ
๊ธฐ๋ณธ ํ†ต์‹  ์žฅ์น˜ โ€“ UART Embedded Device์—์„œ UART๋Š” ๊ฐ€์žฅ ๊ธฐ๋ณธ์ด ๋˜๋Š” ํ†ต์‹  ๋ฐฉ์‹์ด๋‹ค. Tiny MCU์—๋„ UART 1, 2๊ฐœ๋Š” ๊ธฐ๋ณธ์œผ๋กœ ์žฅ์ฐฉ๋˜์–ด ์žˆ๊ณ  ์‚ฐ์—… ํ˜„์žฅ์—์„œ ์šด์šฉ์ค‘์ธ ์žฅ์น˜๋“ค์€ ์˜ˆ์ „๋ถ€ํ„ฐ Serial ํ†ต์‹ ์ด๋ผ๋Š” ๋ฐฉ์‹์œผ๋กœ ๋‹ค๋ฅธ ์žฅ์น˜๋“ค๊ณผ ๋ฐ์ดํ„ฐ๋ฅผ ๊ตํ™˜ํ•ด ์™”๊ธฐ ๋•Œ๋ฌธ์— Serial ํ†ต์‹  ๋ฐฉ์‹์ค‘์— ๊ฐ€์žฅ ๋Œ€์ค‘์ ์ธ UART๋Š” ์—ฌ์ „ํžˆ ๋งค๋ ฅ์ ์ธ ํ†ต์‹  ๋ฐฉ์‹์ด๋‹ค. UART ํ†ต์‹ ์˜ ๋ฐ์ดํ„ฐ ์ „์†ก ๋Šฅ๋ ฅ์˜ ํ•œ๊ณ„๋กœ SPI, Ethernet ๋“ฑ ๊ณ ์†์˜ ํ†ต์‹  ๋ฐฉ์‹์œผ๋กœ ์ „ํ™˜ํ•˜๋ ค๋Š” ์‹œ๋„๊ฐ€ ํ™œ๋ฐœํ•˜๊ฒŒ ์ง„ํ–‰๋˜๊ณ  ์žˆ์ง€๋งŒ ์˜คํžˆ๋ ค ์ตœ๊ทผ์—๋Š” UART์˜ ์ „์†ก ์†๋„๋ฅผ ์˜ฌ๋ฆฌ๋Š” ๋ฐฉ์‹์˜ ์ ‘๊ทผ์ด ํ™œ๋ฐœํ•˜๊ฒŒ ์ด๋ฃจ์–ด ์ง€๊ณ  ์žˆ๋‹ค. ์ผ๋ถ€ MCU์—์„œ๋Š” 13.5Mbps์˜ baud rate๊นŒ์ง€ ์ง€์›ํ•˜๊ณ  ์žˆ์–ด์„œ ์ต์ˆ™ํ•œ UART ํ†ต์‹  ๋ฐฉ์‹์œผ๋กœ ๋ฌธ์ž์—ดโ€ฆ
Tumblr media
View On WordPress
0 notes