eziya76의 등록된 링크

키자드에 등록된 총 592개의 포스트를 확인하실 수 있습니다.

Naver Blog

[STM32] MOOC Security#X-CUBE-CRYPTOLIB#ECDSA

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_ECDSA at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_ECDSA at main · eziya/STM32_SE... github.com 이번 글에서는 ECDSA 알고리즘을 활용하여 signing 하고 verificaiton 을 수행하는 방법을 테스트해보고자 합니다. ECDSA 알고리즘은 다음과 같은 절차로 수행됩니다. private key 로 hash 를 암호화 하였기 때문에 public k

Naver Blog

[STM32] MOOC Security#X-CUBE-CRYPTOLIB#SHA256

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_SHA256 at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_SHA256 at main · eziya/STM32_S... github.com 이번글은 CryptoLib 의 hash 함수를 이용한 테스트를 진행해보고자 합니다. 앞선 글들에서 이미 여러차례 프로젝트 세팅 관련한 내용은 언급을 하였기 때문에 이 글에서는 코드 위주로만 정리하고자 합니다. [예제] CMOX hash 함수를 사용하여 si

Naver Blog

[STM32] MOOC Security#X-CUBE-CRYPTOLIB#RSA

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_RSA at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_RSA at main · eziya/STM32_SECU... github.com 이번글은 CryptoLib 의 RSA 함수를 이용한 테스트를 진행해보고자 합니다. 앞선 글들에서 이미 여러차례 프로젝트 세팅 관련한 내용은 언급을 하였기 때문에 이 글에서는 코드 위주로만 정리하고자 합니다. [예제] CMOX RSA 함수를 사용하여 예상값과 동일

Naver Blog

[STM32] MOOC Security#Application Integrity#1

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_INTEGRITY at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_INTEGRITY at main · eziya/STM32_SECU... github.com 앞선 글들에서는 security 의 기본 개념 및 STM32 에서 security 를 지원하는 기능들에 대한 테스트를 진행하였다면 이번 글에서는 앞서 학습한 기능들을 사용해서 application 의 integrity 를 보장하는 예제를 만들어 보도록 하겠습니다

Naver Blog

[STM32] MOOC Security#Application Integrity#2

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_INTEGRITY at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_INTEGRITY at main · eziya/STM32_SECU... github.com 앞선 글에서는 Application Integrity 를 구현하는 방법에 대해서 정리해 보았고, 이번 글에서는 구현한 FW 이용해서 테스트를 진행해 보고자 합니다. STM32] MOOC Security#Application Integrity#1 ※ 내용에 오류가

Naver Blog

[STM32] MOOC Security#Application Authentication

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_AUTHENTICATION at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_APP_AUTHENTICATION at main · eziya/STM32... github.com 이번 글에서는 앞서 정리한 application integrity 에 추가로 authentication 을 위한 signature 를 추가하거 검증하는 방법에 대해서 정리하고자 합니다. 예제는 ST MOOC security in practice 의 1-

Naver Blog

[STM32] MOOC Security#OTFDEC, TAMPER, TRNG

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_TRNG at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_TRNG at main · eziya/STM32_SECURITY_LAB github.com 이번 글에서는 OTFDEC, TAMPER, TRNG 를 묶어서 정리해 보고자 합니다. OTFDEC 는 테스트해볼 수 있는 개발보드가 없고, Tamper 는 RTC 에서 충분히 해본 기능이기 때문에 다시 테스트해 볼 필요가 없어서 예제를 만들지 않고 TRNG 가 정말로 중복이나 패턴없이

Naver Blog

[STM32] MOOC Security#AES, CRYPT block

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_AES at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_AES at main · eziya/STM32_SECURITY_LAB github.com 일부 모델 중에는 HW 레벨에서 AES 를 지원함 DMA 인터페이스 제공 AES 암호화 복화화를 지원하며 ECB, CBC, CTR 등의 chaining 모드 지원 STM32F423xx Reference 메뉴얼을 확인해보면 128/256비트 key length 를 지원하며 ECB 모드에서

Naver Blog

[STM32] MOOC Security#PKA block

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_PKA at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_PKA at main · eziya/STM32_SECURITY_LAB github.com RSA, DH, ECC 와 같은 비대칭 암호화 알고리즘에 사용되는 공개키 암호화 기능을 H/W 차원에서 지원 RSA 암복호화, 서명 생성 및 검증, ECDH key agreement 등에 활용 가능 STM32WB55 와 STM32L5 에서 기능 제공 PKA 블럭은 약 3.5KB 수준의 P

Naver Blog

[STM32] MOOC Security#X-CUBE-CRYPTOLIB#AES-CBC-128

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_AES at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_AES at main · eziya/STM32_SECU... github.com 이번 글에서는 X-CBUE-CRYTOLIB 라이브러리 사용법에 대해서 테스트 해보고자 합니다. 앞선 STM32 Security 예제들은 AES, PKA 와 같이 하드웨어를 사용한다면 X-CUBE-CRYTOLIB 는 별도의 전용 H/W 를 사용하지 않기 때문에 모

Naver Blog

[STM32] MOOC Security#X-CUBE-CRYPTOLIB#ECDH

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_ECDH at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_CRYPTOLIB_ECDH at main · eziya/STM32_SEC... github.com 이번 글은 ECC 와 DH 알고리즘을 사용하여 공통의 secret 을 생성하는 ECDH 를 Crytolib 를 사용하여 테스트 하고자 합니다. ECDH 관련한 이론 및 openssl 을 활용한 테스트는 이전 글에서 우선 정리하였습니다. https://blog.

Naver Blog

[STM32] MOOC Security#Secure Memory

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_SECURE_MEM_BOOT at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_SECURE_MEM_BOOT at main · eziya/STM32_SE... github.com STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_SECURE_MEM_APP at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learni

Naver Blog

[STM32] MOOC Security#MPU (Memory Protection Unit)

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_MPU at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_MPU at main · eziya/STM32_SECURITY_LAB github.com MPU 는 flash, SRAM, 장치 레지스터 등에 대한 접근 제한 가능 runtime 에 생성/변경 이 가능하다. MPU 속정은 CPU 접근만을 관리한다. priviledged / unpriviledged 모드에 따라 독립적인 설정이 가능하다. user application 이 ope

Naver Blog

[STM32] MOOC Security#Firewall

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_FIREWALL at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_FIREWALL at main · eziya/STM32_SECURITY_LAB github.com L0 / L4 모델은 네트워크의 방화벽처럼 보호영역 접근을 제어할 수 있는 Firewall 기능을 제공한다. firewall 은 SW 가 아닌 HW 기반의 보호 기능이며 동적으로 설정이 가능하다. firewall 로 설정된 보호영역의 경우 비보호 영역에서 직접 접근이 불

Naver Blog

[STM32] MOOC Security#Trustzone#1

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32L5_HAL_TRUSTZONE at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32L5_HAL_TRUSTZONE at main · eziya/STM32_SECURI... github.com Reference https://www.st.com/resource/en/application_note/an5347-arm-trustzone-features-for-stm32l5-and-stm32u5-series-stmicroelectronics.pdf 이번 글에서

Naver Blog

[STM32] MOOC Security#Trustzone#2

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32L5_HAL_TRUSTZONE at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32L5_HAL_TRUSTZONE at main · eziya/STM32_SECURI... github.com 이번글에서는 STM32L5 TrustZone 의 기본예제를 정리해보고자 합니다. * 아직 동작시키지 못한 기능 SecureFault_Handler 는 발생하는 법을 파악했으나, GTZC_IRQHandler 인터럽트가 발생하는 방법은 아직 파악하지 못했습니다. (LP

Naver Blog

[STM32] MOOC Security#TLS

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com Reference: https://tls12.xargs.org/ The Illustrated TLS 1.2 Connection Every byte of a TLS

Naver Blog

[STM32] MOOC Security#Unique ID

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_UNIQUE_ID at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_UNIQUE_ID at main · eziya/STM32_SECURITY... github.com 이번 글부터는 STM32 가 제공하는 Security 관련 기능을 정리해 보고자 합니다. MCU 에 따라 제공하는 기능이 상이하기 때문에 MCU 에 따라서 기능을 제공하는지 사전에 확인이 필요합니다. 저는 테스트를 위해서 NUCLEO-L476RG 와 NUCLEO-L55

Naver Blog

[STM32] MOOC Security#Flash & SRAM WRP

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_SRAM_WRP at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_SRAM_WRP at main · eziya/STM32_SECURITY_LAB github.com Flash & SRAM WRP 기능을 활용하면 악의적으로 주요 데이터가 변조되는 것을 차단할 수 있다. RDP 옵션과 함께 사용하는 경우에는 Flash 와 SRAM 에 위치하는 secret 데이터의 읽기 및 쓰기를 완전히 차단할 수도 있다. 허가되지 않은 Flash 메모

Naver Blog

[STM32] MOOC Security#PCROP

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_PCROP at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_PCROP at main · eziya/STM32_SECURITY_LAB github.com PCROP 는 Proprietary Code ReadOut Protection 의 약자이다. 특정 Flash 영역에 존재하는 코드를 보호할 수 있다. RDP 와 유사하지만 전체 영역에 적용되지 않으며 특정 영역 지정하여 읽기 보호를 할 수 있다. PCROP 로 지정된 영역은 실행만

Naver Blog

[STM32] MOOC Security#RDP

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com RDP 보호기능을 이용해서 코드의 복제, 리버스엔지니어링 등을 차단 모든 STM32 시리즈에서 RDP 기능 제공 STM32 시리즈에 따라서 Flash RDP 외 R

Naver Blog

[STM32] MOOC Security#Unique Boot Entry

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_BOOT_ENTRY at main · eziya/STM32_SECURITY_LAB https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - STM32_SECURITY_LAB/TEST_PROJECTS/STM32_HAL_BOOT_ENTRY at main · eziya/STM32_SECURIT... github.com STM32 의 Option Bits 및 Boot Pin 설정을 통해 boot location 을 제한하여 security 를 확보하기 위한 방법에 대하여 기술하고 있습니다. L5 의 경우에는 Trustzone 기술과 연계되어 있어어 아래 설명만으로 세부사항을 이해하기

Naver Blog

[STM32] MOOC Security#Asymmetric Cryptography

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com Asymmetric Cryptography - 대칭 방식과 달리 비대칭 암호화는 private, public 2개의 키를 사용한다. - 비대칭은 대칭과 비교할 때

Naver Blog

[STM32] MOOC Security#Diffie-Hellman

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com 앞선 글에서는 대칭키를 비대칭키를 이용해서 전달하는 방법을 사용하였는데 이와 다른 방식으로 Diffie-Hellman 알고리즘이 있습니다. 1) 서로 공유하는 노란

Naver Blog

[STM32] MOOC Security#Symmetric Cryptography

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com 대표적인 알고리즘은 TDES, AES 가 있다. Simple 한 연산만 사용하기 때문에 빠르게 동작하므로 대용량 데이터 암호화에 적합하다. TDES 는 단순하게 말

Naver Blog

[STM32 HAL] RTOS + LwIP + MQTT Client update for STM32CubeIDE 1.9.0

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32F4_HAL_LWIP_LAB/tree/master/STM32F4_HAL_ETH_MQTT_CLIENT_NEW STM32F4_HAL_LWIP_LAB/STM32F4_HAL_ETH_MQTT_CLIENT_NEW at master · eziya/STM32F4_HAL_LWIP_LAB STM32 HAL LwIP Testing. Contribute to eziya/STM32F4_HAL_LWIP_LAB development by creating an account on GitHub. github.com https://blog.naver.com/eziya76/221938551688 [STM32 HAL] RTOS + LwIP + MQTT Client ※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github

Naver Blog

[STM32] MOOC Security#Asymmetric Cryptography

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com 대표적인 비대칭 알고리즘인 RSA 는 쉽게 설명하면 N = P * Q 에서 N 을 알고 있을 때 P 와 Q 에 해당하는 커다란 소수를 알아내기 불가능하다는 사실에

Naver Blog

[STM32] MOOC Security#Integrity (HASH)

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com 해시 함수를 사용하여 Integrity 를 보장할 수 있다. 해시 함수만으로는 Authentication 을 보장할 수 없으므로 대칭/비대칭 알고리즘을 함께 섞어서

Naver Blog

[STM32] MOOC Security#Authentication

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com Authentication 은 내가 대화하는 대상이 누구인가 확인하는 절차이다. Authentication 도 대칭, 비대칭 암호화 모두를 이용하여 가능하다. HM

Naver Blog

[STM32 HAL] TFTP IAP

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32F4_HAL_LWIP_LAB GitHub - eziya/STM32F4_HAL_LWIP_LAB: STM32 HAL LwIP Testing STM32 HAL LwIP Testing. Contribute to eziya/STM32F4_HAL_LWIP_LAB development by creating an account on GitHub. github.com 사용 보드 : NUCLEO-F429ZI IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 근래에 예전에 테스트 해 보았던 TFTP IAP 가 현재 CubeMx 에서 동작하지 않는다는 이야기가 있어서 제 개인적으로도 다시 한번 정리해 보는 차원에서 최신 CubeMx 와 LwIP 로 테스트를 해

Naver Blog

[STM32 LL] SPI EEPROM (25LC010A)

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 SPI EEPROM 예제를 LL 드라이버로 테스트해 보고자 합니다. 기존에 STM32 HAL 드라이버, PIC, AVR 등으로 테스트 해 보았던 글에 조금 더 상세한 내용이 있으니 참고 하시면

Naver Blog

[STM32 LL] SPI u8g2

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 기존에 HAL 드라이버로 테스트 해 보았던 u8g2 라이브러리를 LL 드라이버로 테스트해 보고자 합니다. [STM32 HAL] SPI#Protocol + SSD1306 OLED + u8g2 l

Naver Blog

[STM32 LL] I2C BME280

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 기존에 HAL 드라이버로 테스트 해 보았던 BME280 라이브러리를 LL 드라이버로 테스트해 보고자 합니다. [STM32 HAL] I2C#Protocol + BME280 Reference: M

Naver Blog

[STM32 LL] IWDG

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 IWDG 를 LL 드라이버로 테스트해 보고자 합니다. IWDG 동작 관련 이론은 아래 글을 참고하시면 될 것 같습니다. [STM32 HAL] IWDG + WWDG Watchdog Referen

Naver Blog

[STM32 LL] WWDG

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 WWDG 를 LL 드라이버로 테스트해 보고자 합니다. WWDG 동작 관련 이론은 아래 글을 참고하시면 될 것 같습니다. [STM32 HAL] IWDG + WWDG Watchdog Referen

Naver Blog

[STM32] MOOC Security#Symmetric Cryptography

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/Introduction_to_security.html - GitHub - eziya/STM32_SECURITY_LAB: https://www.st.com/content/st_com/en/support/lea... github.com 앞으로 당분간 ST MOOC 트레이닝 중 Security 관련 내용을 나누어서 정리해 보고자 합니다. 보안이 없다면 Eve 는 Alice 와 Bob 사이의 비밀도

Naver Blog

[STM32 LL] ADC Single Conversion Polling

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 ADC Single Conversion 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-

Naver Blog

[STM32 LL] ADC Single Conversion Interrupt

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 ADC Single Conversion 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-

Naver Blog

[STM32 LL] ADC Continuous Conversion DMA

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 ADC Single Conversion 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-

Naver Blog

[STM32 LL] DAC

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 DAC 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. DAC: OUT2 2. DAC Out2 Configuration 을 enable 한다. 3. Clock

Naver Blog

[STM32 LL] DAC DMA

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 DAC DMA 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. DAC: OUT2 2. DAC Out2 Configuration 을 enable 한다. 이번에는

Naver Blog

[STM32 LL] RTC Alarm

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 RTC Alarm 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. USART2: 115200 8-N-1 RTC: enable 2. RTC 를 enable 하고

Naver Blog

[STM32 LL] RTC Timestamp

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 RTC Timestamp 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. USART2: 115200 8-N-1 RTC: enable 2. RTC 를 enable

Naver Blog

[STM32 LL] RTC Wakeup

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 RTC Wakeup 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. USART2: 115200 8-N-1 RTC: enable PA0: GPIO Input, S

Naver Blog

[STM32 LL] General Timer

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 General Timer 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-1 PD12:

Naver Blog

[STM32 LL] General Timer Output Compare

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 General Timer Output Compare 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 1152

Naver Blog

[STM32 LL] General Timer PWM

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 General Timer PWM 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-1 PD

Naver Blog

[STM32 LL] Basic Timer

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 Basic Timer 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 아래와 같다. PA2/PA3: USART2 Asynchronous 115200 8-N-1 PD12: GP

Naver Blog

[알고리즘] 백준 2565

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이번 문제는 최장 증가 수열 (LIS) 문제로 서로 전기줄이 겹쳐지지 않게 최대 개수의 전기줄을 설치하는 문제이다. 아래 그림에서 i 번째 지점에서 이미 전기줄이 배치되어 있다고 할 때, i 보다 작은 j 지점 전기줄의 오른쪽 위치는 i 번째 전기줄의 오른쪽 위치보다 값이 작아야 겹쳐지지 않게된다. 문제 풀이를 위해서는 우선 left, right 로 구성된 전기줄 line 리스트를 left 점 기준으로 정렬한다. dp[i] 는 1로 초기화 된 상

Naver Blog

[알고리즘] 백준 11657

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 일반적으로 최단거리 알고리즘은 dijikstra 를 이용해서 풀이가 가능하다. 하지만 문제에 음의 cost 가 있는 경우에는 dijikstra 를 이용하여 풀이가 불가하며 Bellman-Ford 알고리즘을 적용해야 한다. 벨먼-포드 알고리즘 - 나무위키 0 역링크 토론 편집 역사 ACL 벨먼-포드 알고리즘 최근 수정 시각: 2021-11-19 22:30:27 분류 알고리즘 1 . 개요 2 . 의사 코드 1. 개요 [편집] 벨먼-포드 알고리즘은 가

Naver Blog

[알고리즘] 백준 1697

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이번 문제는 완전탐색 문제이다. N 에서 K 지점까지 이동하는 방법은 아래 3가지 이다. 1) N+1 (한 칸 앞으로 이동) 2) N-1 (한 칸 뒤로 이동) 3) N*2 (2배 점프) BFS 로 탐색하기 때문에 이미 다른 경로를 타고 해당 노드가 visited 처리되어 있는 경우에는 현재 cost 보다 작을 수 밖에 없기 때문에 재방문할 필요가 없다. import java.io.BufferedReader; import java.io.IOExce

Naver Blog

[알고리즘] 백준 2170

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이번 문제는 line sweeping 문제이다. 아래 그림과 같이 여러 개의 라인이 있을 때 (A,C') 와 (D,D') 라인의 길이의 합을 찾아내는 문제이다. 라인을 먼저 left 기준으로 정렬한 후 시작한다. left 기준으로 정렬하였기 때문에 우선 (A,A') 선으로 left, right 가 결정되고 두 점의 길이 result 가 계산된다. 이후 (B,B') 선을 비교할 때 B 가 A' 보다 작기 때문에 두 선은 겹치는 상태인 것을 알 수

Naver Blog

[알고리즘] 백준 5419

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이번 문제는 line sweep 과 세그먼트 트리가 결합된 문제이다. 북서풍을 이용해서 이동이 가능하기 때문에 아래와 같이 남동쪽에 있는 노드로만 이동이 가능하다. 이번 문제 풀이에는 3가지 핵심 풀이법이 사용된다. 1) line sweep 알고리즘을 활용하여 탐색 범위 축소 2) segment tree 알고리즘을 활용하여 중복 계산 제거 3) segment tree 구성 시 index 값으로 처리하여 배열 크기 축소 첫번째 풀이의 핵심은 lin

Naver Blog

[알고리즘] 직선의 교차점

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 직선의 교차점을 탐색하는 문제에 대해서 매우 잘 설명한 동영상이 있어 아래 링크를 첨부합니다. 직선의 교차점의 개수를 line sweep 알고리즘을 응용하여 처리한다. 위 동영상에서 설명하는 알고리즘 동작으로 아래 예제를 처리하면 다음과 같이 동작한다. 모든 점들을 x, y 순방향으로 정렬한 후 아래와 같이 정렬된 순서로 처리한다. 1) 가로선 (1,1) 점의 Y 값 1을 Set 에 넣는다. Set = {1} 2) 가로선 (2,2) 점의 Y 값

Naver Blog

[알고리즘] LeetCode 218

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이번 문제는 위와 같이 건물이 겹칠 때 외부 border line 만을 뽑아내는 문제이다. 풀이를 위한 핵심사항은, 1) line sweeping 을 응용하여 사각형의 각 점을 x축 순방향, y축 역방향으로 set 에 정렬한다. 2) 좌표를 입력시 left 측의 높이는 양수로 right 측의 높이는 음수로 입력하여 정렬 시, left 측 좌표가 우선 처리되도록 하며 부호를 이용하여 좌우 판단을 할 수 있도록 한다. 3) 높은 건물이 우선하도록 역

Naver Blog

[알고리즘] 백준 2206

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 일반적인 최소 비용은 dijikstra 로 풀이하지만 이 문제의 경우에는 한칸 이동하는 비용이 동일하게 1 이기 때문에 BFS 를 사용한다. 아래 그림처럼 위로 이동하는 경우 1의 비용이 들지만 우회하는 경우 절대 더 작은 비용으로 방문하는 것이 불가하기 때문에 BFS 수행시 위 방향으로 이동을 먼저하도록 우선 큐에 넣어준다. 이 문제에서 또다른 핵심은 로켓을 사용해서 벽을 뚫고 방문했는지 사용하지 않은 상태에서 방문했는지를 추가적으로 관리해주는

Naver Blog

[알고리즘] 백준 2461

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 이 문제는 M개의 원소로 이루어진 N개의 그룹에서 각각 한 개씩을 뽑아서 조합을 만들 때, 해당 조합의 Min, Max 값의 차이가 최소가 되는 값을 찾는 문제이다. 완전탐색으로 풀면 결국 M^N 번 조합을 순서대로 만들어서 찾을 수 있지만 이를 줄이기 위해서 PriorityQueue 를 사용한다. 풀이 순서는 다음과 같다. 1) 각 그룹 내 원소들을 정렬해 주고 각 그룹에서 최소값을 PQ에 담는다. 2) PQ 에서 나오는 값은 최소값이고 최대값

Naver Blog

[알고리즘] 백준 16993

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 부분합 최대는 dp 를 이용하여 풀이가 가능하지만 세그먼트 트리를 이용한 방법도 가능하다. 대표적인 세그먼트 트리 예는 sum 값을 만드는 예가 있지만 동일한 방식으로 sum 값이 아닌 자식 노드들의 부분합 최대값을 만들어 두는 방식도 가능하다. 노드의 left, right, max, sum 값은 좌측 노드들의 최대부분합, 우측 노드들의 최대부분합, 좌우 전체 최대 부분합 그리고 전체 합을 의미한다. 아래 그림과 같이 left, right, ma

Naver Blog

[알고리즘] 백준 5419

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 가장 기본적인 세그먼트 트리를 활용하는 구간합 문제이다. 특정 노드의 값이 바꾸었을 때, 모든 구간의 합을 재계산 하지 않고 미리 계산해 놓은 구간합 값들에 변경치 많큼을 반영해 주어 빠르게 처리하는 문제이다. update 함수를 보면 부모 노드부터 left 노드까지 diff 값만큼 값을 업데이트 해주면서 내려가는 방식을 사용한다. import java.io.BufferedReader; import java.io.IOException; impor

Naver Blog

[알고리즘] Dijikstra + 비용 변경 옵션

아래 정리하는 내용들은 대부분 다른 분들의 코드를 참고하여 작성한 코드이기 때문에 최적화 되어 있지 않으며 개인적으로 기억하기 위한 용도입니다. 혹시 문제 풀이를 위해서 검색하신 분들께서는 참고 수준으로만 읽어보시기 바랍니다. References https://swexpertacademy.com/ https://www.acmicpc.net/ https://leetcode.com/ 추천 블로그 https://zoosso.tistory.com/ 기본적인 dijikstra 문제는 dist 값을 1차원 또는 좌표인 경우 2차원으로 사용하지만 방문 비용을 변경할 수 있는 옵션이 주어지는 경우에는 아래와 같이 dist 배열에 옵션 사용 유무에 따른 차원을 추가한다. 앞서 풀이한 백준2206 문제와 유사한 문제이다. 아래 문제에서는 노드를 지나갈 때, 비용을 변경할 수 있는 옵션이 2개 주어졌고 옵션 2개에 해당하는 2개의 차원을 dist 배열에 추가하여 3차원 배열로 선언하였다. 탐색 시 최소

Naver Blog

[STM32] LwIP TcpEcho 미동작 임시 대응 (STM32CubeIDE 1.9.0 & STM32CubeMx 6.5.0)

[ 수정된 TcpEcho 테스트 프로젝트 ] https://github.com/eziya/STM32F4_HAL_LWIP_LAB/tree/master/STM32F4_LWIP_TEST STM32F4_HAL_LWIP_LAB/STM32F4_LWIP_TEST at master · eziya/STM32F4_HAL_LWIP_LAB STM32 HAL LwIP Testing. Contribute to eziya/STM32F4_HAL_LWIP_LAB development by creating an account on GitHub. github.com [ References ] https://community.st.com/s/feed/0D53W00001R3ctJSAR https://community.st.com/s/question/0D53W00001ScqS1SAJ/lwip-get-hardfaulthandler-after-update-on-stm32cubeide-v190 근래에 예전에 만들어 두었던 lw

Naver Blog

[STM32 LL] GPIO

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 오랜동안 업무에서 F/W를 개발하지 않아서 STM32 관련한 지식들을 많이 잃어버린 상황이 되어서 기억을 되살리고 새롭게 공부하지 못했던 부분도 공부를 해보고자 LL 드라이버 관련한 내용들을 정리해 보고자

Naver Blog

[STM32 LL] External Interrupt

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 External Interrupt 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 아래와 같이 핀을 설정해 준다. PA0 : EXTI0 PA12~15 : GPIO Output 2. PA0

Naver Blog

[STM32 LL] UART Polling

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 간단한 UART Echo 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. PA2, PA3 핀을 USART2 Tx/Rx 핀으로 설정합니다. 2. 동작 모드는 Asynchronous 1152

Naver Blog

[STM32 LL] UART Interrupt

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 UART Interrupt 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 UART Polling 과 동일하다. USART2 Asynchronous 115200 8-N-1 2

Naver Blog

[STM32 LL] UART DMA

※ 내용에 오류가 있을 수 있습니다. 오류에 대해서는 Feedback 부탁 드리겠습니다. https://github.com/eziya/STM32_LL_EXAMPLES GitHub - eziya/STM32_LL_EXAMPLES: STM32F4 LL Driver Examples STM32F4 LL Driver Examples. Contribute to eziya/STM32_LL_EXAMPLES development by creating an account on GitHub. github.com 사용 보드 : STM32F4-DISCO IDE : STM32CubeIDE 1.9.0 + STM32CubeMx 6.5.0 Driver Package : STM32Cube FW_F4 V1.27.0 이번 글에서는 UART DMA 예제를 LL 드라이버로 테스트해 보고자 합니다. 1. 기본 설정은 UART Polling 과 동일하다. USART2 Asynchronous 115200 8-N-1 2. DMA

Naver Blog

CI(Continuous Integration) 도입해보기

1. Continuous Integration 이란 무엇인가? - Continuous Integration(이하 CI)는 XP의 Practice...

Naver Blog

CruiseControl.Net & Nant & VSS 설치 Episode I.

이번 프로젝트에 CI(Continuous Integration)을 도입해보기 위해서 몇가지 툴에 대해서 알아보았습니다...

Naver Blog

Transparent RichTextBox in C#

I've brought this article from http://dotnetjunkies.com/WebLog/johnwood/archive/2006/07/04/transp...

Naver Blog

Windows Installation with Scripts Ep1.

본 문서에서는 각종 윈도우 설정에 관련한 Script 정보를 정리하고자 합니다. 이 작업을 하게 된 동기는 ...

Naver Blog

Windows Installation with Scripts Ep2.

================================================ 3. Configuring Remote Desktop===================...

Naver Blog

Windows Installation with Scripts Ep3.

================================================ 6. Configuring Network Adaptor Address=========...

Naver Blog

.NET Remoting 에서 서비스 객체를 Factory Pattern을 이용해 초기화 하기

Class Factory Example The class factory pattern has become a well loved idiom of object-oriented...

Naver Blog

XSD to Class & ADO.NET 사용

<xsd:schema targetNamespace="urn:schemas-microsoft-com:sql:SqlRowSet1" xmlns:schema="urn:sche...

Naver Blog

한분야에 경지에 오른다는 것

! 무엇을 하느냐 보다 얼마나 잘 할 수 있느냐가 중요하다. 재생하기 바로보기가 지원되지 않는 파일입니다...

Naver Blog

Media Center 메뉴 컨트롤 하기

[출처, Reference] http://blogs.msdn.com/astebner/archive/2006/08/04/689085.aspx 미디어 센터의 메뉴...

Naver Blog

DataGridView에서 Image Tooltip 보여주기

====================================================== 툴팁을 보여주기 위한 UserControl 클래스 ===...

Naver Blog

Transparent Label 만들기

아래 그림이 있는 PictureBox 컨트롤 위에 링크 레이블 또는 일반 레이블을 올려놓을 때 레이블의 백그라...

Naver Blog

.Net Remoting IIS Hosting

.Net Remoting 서비스를 IIS를 통해서 호스팅하기 절차 Advanced .Net Remoting 책에 나온 내용을 ...

Naver Blog

Web Services Security in The .NET Framework

Refer from http://www.15seconds.com/Issue/020312.htm 15 Seconds : Web Services Security in Th...

Naver Blog

.Net Compact Framework WebRequest Upload/Download

NET Compact Framework Improving .NET Compact Framework HTTP Communications using Ht...

Naver Blog

WebRequest Sample Code

private void button3_Click(object sender, EventArgs e) {  try {  HttpWebRequest req = (HttpWeb...

Naver Blog

WINCE ATL ActiveX

Windows CE 2.1 Technical Articles Building ActiveX Controls for Microsoft Windows CE U...

Naver Blog

Mobile Device Service Application

Pocket PC (General) Technical Articles Pocket PC ServicesIntroduction Many Pocket PC ...

Naver Blog

MSMQ on Compact Framework(WINCE)

.NET Framework 개발자 가이드 .NET Compact Framework 버전 2.0은 Windows CE의 MSMQ(메...

Naver Blog

In The Hand 의 Bluetooth Library와 OBEX를 이용한 File 전송 App

주의사항. WM은 시스템에 기본적으로 OBEX 서버를 가지고 있다. 따라서 기본 OBEX 서버를 내리지...

Naver Blog

Alpha Blending in .NET CF

http://www.codeplex.com/alphamobilecontrols http://blog.opennetcf.com/ayakhnin/PermaLink,guid,0b5a...

Naver Blog

Windows Forms 지역화

Windows Forms 프로그래밍 Visual Studio 프로젝트 시스템은 Windows Forms 응용 프로그램의 지역화...

Naver Blog

C# Anonymous Methods & The Action Object

By :__doPostBack('ctl00$ContentPlaceHolder1$ArticleHeader1$LinkButtonAuthorName','')">M...

Naver Blog

Asynchronous Programming Model in .NET Framework 2.0

Reference : http://infosysblogs.com/microsoft/2006/09/asynchronous_programming_model_3.html <met...

Naver Blog

Microsoft UI 자동화 라이브러리

MSDN 2008 Feb. Test Run Microsoft UI 자동화 라이브러리 Dr. James McCaffrey 코드 다운로...

Naver Blog

Set processor affinity programmatically in a multi-core system

Set processor affinity programmatically in a multi-core system Date: June 26th, 2008 Author: Ed...

Naver Blog

Client Profile Configuration Designer

.NET 3.5SP1 기반의 새로운 설치파일 개발 툴 아직까지 완벽하지는 않은 듯 하지만 현재 Learning V...

Naver Blog

.NET CF Process Attachment Debugging.

Enabling Attach to Process support in NetCF v2By default, support for attaching the debugger ...

Naver Blog

LG 넷하드 N2R1DD2

기존의 일반적인 NAS와 달리 토런트 서버 및 클라이언트 기능을 탑재하고 있는 NAS 이다. PC나 기...

Naver Blog

유용한 .net cf 용 pinvoke examples

Geoff SchwabExcell Data Corporation Contributors: Jonathan Wells Microsoft Corporation Re...

Naver Blog

MP3 ID3 TAG

출처 : CodeProject http://www.codeproject.com/KB/cs/Do_Anything_With_ID3.aspx Introduction...

Naver Blog

Windows7 WebService 개발을 위한 IIS 설정

출처 : http://chaoskcuf.com/entry/Vista%EC%97%90%EC%84%9C-MS-SQL-2005-%EC%84%A4%EC%...

Naver Blog

2011.7.7 ~ 7.9 울릉도 자전거 도보 여행

자전거로 한번은 가보고 싶었던 울릉도 여행 울릉도의 남쪽 해안 도로와 북쪽 해안도로는 편하게 자전거 여...

Naver Blog

Spring Framework 주요 Pattern

1. IoC / DI 패턴 - 책을 읽으면서 이해한 내용으로는 기존 Factory Pattern과 흡사하다는 점이다. ...

1 2 3 4 5 6