embeded/Cortex-M3 STM2025. 6. 30. 11:17

iwdg는 내부 rc 클럭으로 작동을 하는 부분으로 stop이나 standby 모드에서도 작동한다.

즉, 절전모드 하려면 iwdg는 조금은 더 주의 깊게 설정해야 한다는 의미인데...

 

wwdg 는 window 라서 특정 시간대에만 와치독을 리셋할 수 있게 한다.

너무 빠르게 리셋해도 전체 시스템이 리셋되고, 너무 늦어도 리셋된다.

작동 시간이 일정하다면 wwdg를 쓰면 될 것 같기한데...

 

Independent watchdog
The independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. It is clocked from an independent 40 kHz internal RC and as it operates independently of the main clock, it can operate in Stop and Standby modes. It can be used either as a watchdog to reset the device when a problem occurs, or as a free-running timer for application timeout management. It is hardware- or software-configurable through the option bytes. The counter can be frozen in debug mode.

Window watchdog
The window watchdog is based on a 7-bit downcounter that can be set as free-running. It can be used as a watchdog to reset the device when a problem occurs. It is clocked from the main clock. It has an early warning interrupt capability and the counter can be frozen in debug mode.

[링크 : https://www.st.com/resource/en/datasheet/stm32f103c8.pdf]

 

 

 

[링크 : https://pineenergy.tistory.com/138]

[링크 : https://electronics.stackexchange.com/questions/123080/independent-watchdog-iwdg-or-window-watchdog-wwdg]

[링크 : https://community.st.com/t5/stm32-mcus-products/iwdg-vs-wwdg/td-p/451732]

'embeded > Cortex-M3 STM' 카테고리의 다른 글

HAL_FLASH_Program  (0) 2025.07.21
stm32cubeide build analyzer  (0) 2025.07.21
stm32f wwdg iwdg 그리고 stop mode  (0) 2025.06.27
stm32 cubeide ioc gen  (0) 2025.06.18
stm32 uart tx dma  (0) 2025.06.18
Posted by 구차니

LG는 이래저래 싫은데

그렇다고 SK 가기도 싫고 참 어렵다.. -_-

 

아무튼 SK / KT 유심 각각 2개 구매하고

다음달에 바로 요금제 변경 ㄱㄱ 해야겠다.

Posted by 구차니
Linux/Ubuntu2025. 6. 28. 13:52

lutris 까진 설치했는데 battle.net 에서 45%를 못 넘기고 뻗는다.

걍 윈도우 설치하는게 속 편하려나..

찾아보니 윈도우 보다 사양이 많이 올라간다고 하니 흐음...

 

[링크 : https://leedaeeun.tistory.com/108]

'Linux > Ubuntu' 카테고리의 다른 글

csvtool  (0) 2025.07.11
ubuntu dhcp lease log  (0) 2025.07.01
netplan  (0) 2025.03.06
ubuntu 24.04 네트워크 연결 중 문제  (0) 2025.02.26
ubuntu evince(pdf 뷰어/문서보기), gedit 검색  (0) 2024.11.25
Posted by 구차니

리눅스에서 윈도우용 게임을 보면 install이 비활성화 되어있는데

우클릭해서 속성(properties...) 눌러 호환성(compatability) 에서 체크해주면

 

INSTALL 버튼이 활성화 된다.

proton hotfix가 기본설정되는게 그냥 기본이니 써보면 될려나?

 

[링크 : https://nerd-in-bong.tistory.com/11]

Posted by 구차니

니어 오토마타랑 할인이 끝나서 다음에 사야지 했는데

7월 11일 까지 여름 할인 추가요~ -_- 이런

 

그 와중에 homeworld : deserts of kharak 할인 90% 혹하는데?

Posted by 구차니
embeded/Cortex-M3 STM2025. 6. 27. 17:27

iwdg가 wdg_sw 설정되는줄 알았는데.. iwdg가 software랑 hardware로 나눠지는 듯.. 찾아봐야겠네

 

Option Byte는 아래의 api를 통해 접근할수 있고

HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit)

 

UserConfig 변수내에 bit 단위로 설정되도록 되어있다.

typedef struct
{
uint32_t OptionType; /*!< OptionType: Option byte to be configured.
This parameter can be a value of @ref FLASHEx_OB_Type */

uint32_t WRPState; /*!< WRPState: Write protection activation or deactivation.
This parameter can be a value of @ref FLASHEx_OB_WRP_State */

uint32_t WRPPage; /*!< WRPPage: specifies the page(s) to be write protected
This parameter can be a value of @ref FLASHEx_OB_Write_Protection */

uint32_t Banks; /*!< Select banks for WRP activation/deactivation of all sectors.
This parameter must be a value of @ref FLASHEx_Banks */
 
uint8_t RDPLevel; /*!< RDPLevel: Set the read protection level..
This parameter can be a value of @ref FLASHEx_OB_Read_Protection */

#if defined(FLASH_BANK2_END)
uint8_t USERConfig; /*!< USERConfig: Program the FLASH User Option Byte:
IWDG / STOP / STDBY / BOOT1
This parameter can be a combination of @ref FLASHEx_OB_IWatchdog, @ref FLASHEx_OB_nRST_STOP,
@ref FLASHEx_OB_nRST_STDBY, @ref FLASHEx_OB_BOOT1 */
#else
uint8_t USERConfig; /*!< USERConfig: Program the FLASH User Option Byte:
IWDG / STOP / STDBY
This parameter can be a combination of @ref FLASHEx_OB_IWatchdog, @ref FLASHEx_OB_nRST_STOP,
@ref FLASHEx_OB_nRST_STDBY */
#endif /* FLASH_BANK2_END */

uint32_t DATAAddress; /*!< DATAAddress: Address of the option byte DATA to be programmed
This parameter can be a value of @ref FLASHEx_OB_Data_Address */
 
uint8_t DATAData; /*!< DATAData: Data to be stored in the option byte DATA
This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF */
} FLASH_OBProgramInitTypeDef;

 

STOP 모드 들어가면 리셋걸리지 않게 하려면 해당 OB로 설정해주어야 하나..

/** @defgroup FLASHEx_OB_IWatchdog Option Byte IWatchdog
* @{
*/
#define OB_IWDG_SW ((uint16_t)0x0001) /*!< Software IWDG selected */
#define OB_IWDG_HW ((uint16_t)0x0000) /*!< Hardware IWDG selected */
/**
* @}
*/

/** @defgroup FLASHEx_OB_nRST_STOP Option Byte nRST STOP
* @{
*/
#define OB_STOP_NO_RST ((uint16_t)0x0002) /*!< No reset generated when entering in STOP */
#define OB_STOP_RST ((uint16_t)0x0000) /*!< Reset generated when entering in STOP */
/**
* @}
*/

/** @defgroup FLASHEx_OB_nRST_STDBY Option Byte nRST STDBY
* @{
*/
#define OB_STDBY_NO_RST ((uint16_t)0x0004) /*!< No reset generated when entering in STANDBY */
#define OB_STDBY_RST ((uint16_t)0x0000) /*!< Reset generated when entering in STANDBY */

 

HAL_FLASHEx_OBGetConfig()
HAL_FLASH_OB_Unlock()
HAL_FLASH_Unlock()
HAL_FLASH_OB_Launch()

[링크 : https://blog.naver.com/eziya76/220988141146]

[링크 : https://community.st.com/t5/stm32-mcus/how-to-program-stm32-option-bytes-with-the-hal-api/ta-p/49660]

 

IWDG는 option byte에 설정 가능 - 설정하면 리부팅 필요 혹은 강제로 리부팅됨

[링크 : https://m.blog.naver.com/kim1417/221461254045]

[링크 : https://pineenergy.tistory.com/138]

 

The Independent watchdog can not be stopped in any processor mode. You have to wake up regularly to reload the watchdog. What you can do is change the prescaler to maximum so the watchdog is counting slowly.
IWDG will only be stopped if you disconnect the controller from the power supply.

[링크 : https://stackoverflow.com/questions/53334571/disabling-stm32-hal-iwdg-or-wwdg-watchdog-before-stop-mode]

 

stm32g 의 경우인데 f에 없는 플래그가 존재한다.

[링크 : https://community.st.com/t5/stm32-mcus-products/iwdg-disable-during-sleep-stop/td-p/95106]

 

+

2025.07.31

stm32f1xx_hal.h 에서 찾은 건데..

FREEZE 로 된걸 해주면 stp 모드에서 동결되려나? 그런데 debug mode 래서 언제 쓸수 있는지 찾아봐야 할 듯.

/**
* @brief WWDG Peripherals Debug mode
*/
#define __HAL_DBGMCU_FREEZE_WWDG() SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_WWDG_STOP)
#define __HAL_DBGMCU_UNFREEZE_WWDG() CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_WWDG_STOP)

/**
* @brief IWDG Peripherals Debug mode
*/
#define __HAL_DBGMCU_FREEZE_IWDG() SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_IWDG_STOP)
#define __HAL_DBGMCU_UNFREEZE_IWDG() CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_IWDG_STOP)

'embeded > Cortex-M3 STM' 카테고리의 다른 글

stm32cubeide build analyzer  (0) 2025.07.21
stm32 wwdg, iwdg 차이  (0) 2025.06.30
stm32 cubeide ioc gen  (0) 2025.06.18
stm32 uart tx dma  (0) 2025.06.18
stm32 pwm 주파수 계산  (0) 2025.06.05
Posted by 구차니

갖고 싶은것

1. 스팀덱

2. 닌텐도 1 중고 (니어 오토마타를 위해!)

3. 스팀 게임 (니어 레플리칸트, 니어 오토마타 60% 할인 7월 11일 까지)

4. de10-nano 혹은 cyclone V 계열 fpga

5. zynq 계열 fpga

 

배우고 싶은 것

1. openGL

2. VHDL, verilog (xilinx, altera)

3. vulkan

4. blender, freecad

 

그냥 먼가 욕심은 많은데 체력이 없어서 그런가,게임도 이제 던지고 멍때리고만 있다.

그나마 비 안오면 자전거라도 조금씩 늘리고 있었는데 왕창 비가 올 예정이고

가을에는 춘천 가보는걸 목표로(!) 조금씩 체력을 길러야 숨쉰채로 살아남을수 있을듯..

 

스팀덱은 노트북으로 대체하려고 했으나 무거워서 하지도 못해 지름을 누르지 못하고 있고

닌텐도 2는 너무 비싸고 1은 그래도 중고로 12만원~15만원 대에 보여서 고민

니어 오토마타도 산다고 할진 모르겠지만 갖고 싶고

스토리상 연관이 있다고 하니 니어 레플리칸트도 갖고 싶고..

 

그냥 다 욕심인걸까..

AI 시대에 머가 중요한데 싶으면서도

그냥 한땀한땀 손으로 쌓아올리고 싶기도 하고.. 참 모르겠다. 

 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

어우 피곤  (0) 2025.08.05
절래절래  (0) 2025.07.09
이번달 k-pass 환급액은 적겠군..  (0) 2025.06.26
외근  (0) 2025.06.17
오늘도 피곤  (0) 2025.06.13
Posted by 구차니
embeded/FPGA - XILINX2025. 6. 27. 16:16

pynq가 더 싸게 팔리는데 차이가 없다면 pynq를 사서 arty 이미지를 써서 가지고 노는것도 방법일 듯?

 

Between PYNQ Z1 and Arty Z7, the only difference is that the PYNQ has a microphone and Arty Z7 doesn't, otherwise they are identical from the specs point of view.

[링크 : https://forum.digilent.com/topic/20727-what-zynq-7020-board-would-you-recommend-zybo-arty-z7-pynq-z1/]

[링크 : https://www.reddit.com/r/FPGA/comments/fkumbh/is_the_arty_a7_or_a_similarly_priced_zynq_board/]

 

 

arty z7의 경우

HDMI in / out이 있는게 장점 인듯.

[링크 : https://digilent.com/reference/learn/programmable-logic/tutorials/arty-z7-hdmi-in-demo?srsltid=AfmBOop1w1FTtQP9bF_ssIaZuOXVLJhOrn1Kda292FBD_9-p5f0ogsbE]

'embeded > FPGA - XILINX' 카테고리의 다른 글

zynq vitis openCL  (0) 2025.06.27
EBAZ4205 zynq  (0) 2025.03.25
xilinx vdma  (0) 2025.01.16
ftdi jtag  (0) 2023.07.22
xilinx zynq jtag  (2) 2023.07.21
Posted by 구차니
embeded/FPGA - XILINX2025. 6. 27. 16:06

대충(?) 보기에는

openCL로 작성한 kernel을 vivado hls 에서 읽어들여

하드웨어로 synthesis 하고 그걸 메모리에 연결해서(AXI) 그냥 제어해버리는 컨셉인 듯

 

그렇게 생겨난 IP를 회로로 구성해서 zynq에 넣어서 작동하면 끝

[링크 : https://svenssonjoel.github.io/pages/zynq_hls_opencl/index.html]

'embeded > FPGA - XILINX' 카테고리의 다른 글

pynq 와 arty  (0) 2025.06.27
EBAZ4205 zynq  (0) 2025.03.25
xilinx vdma  (0) 2025.01.16
ftdi jtag  (0) 2023.07.22
xilinx zynq jtag  (2) 2023.07.21
Posted by 구차니
embeded/FPGA - ALTERA2025. 6. 27. 16:05

하나 갖고 싶긴한데... 매물도 잘 없고 비싸단 말이지..

[링크 : https://download.terasic.com/downloads/cd-rom/de1-soc/linux_BSP/OPENCL18.1/DE1-SoC_OpenCL_v05.pdf]

 

통합되어 있진 않지만 openCL kernel을 작성하고

AOCL(altera offline compiler)를 통해서 aocx가 나오면 그걸 fpga에 올려서 돌리는 듯?

[링크 : https://ftp.intel.com/Public/Pub/fpgaup/pub/Teaching_Materials/current/Tutorials/OpenCL_On_DE_Series_Boards.pdf]

'embeded > FPGA - ALTERA' 카테고리의 다른 글

terasic sockit  (0) 2023.11.06
HSMC(High Speed Mezzanine Card)  (0) 2023.10.02
altera(intel fpga) m9k m10k  (0) 2023.05.14
altera uart ip  (0) 2023.05.14
altera - partial reconfigure  (0) 2023.04.24
Posted by 구차니