'잡동사니'에 해당되는 글 13454건
- 2024.09.05 삐그덕
- 2024.09.04 STM32H757 전원 설정
- 2024.09.04 STM32 / no MCU device found
- 2024.09.03 STM32CubeIDE alt func
- 2024.09.03 택 스위치(TACTILE SWITCH)
- 2024.09.02 freecad part move
- 2024.09.02 로봇 좌표계, TCP ... 2?
- 2024.09.02 TMP116, TMP117
- 2024.09.01 개털밈 2
- 2024.08.31 개털밈
아니 무슨.. STM32F 시리즈에서는 이런거 본적도 없는데, 전원 옵션이 존재해?
입력이야 PCB 설계쪽에서 할일이긴 한데
cubeide 에서 보다보니 RCC에서 power parameters
PW_LDO_SUPPLY 등이 존재하길래 왜(?) 이런거 까지 sw에서 설정해야 하는게 멘붕중
'embeded > Cortex-M7 STM' 카테고리의 다른 글
code alignement factor? (0) | 2024.09.06 |
---|---|
DEBUG_JTRST (0) | 2024.09.06 |
STM32 / no MCU device found (0) | 2024.09.04 |
STM32CubeIDE alt func (0) | 2024.09.03 |
stm32h757i-eval 데모 펌웨어 굽기 (0) | 2024.08.07 |
STM32에 프로그램 작성을 위해
CubeIDE 에서 DEBUG를 넣지 않으면 디버깅, 프로그래밍 잘 하다가 어느순간
"no MCU device found" 에러가 발생하며 CPU가 먹통이 되는 경우가 갑자기 발생
AVR 인공호흡(?) 처럼 검색해보니
boot0 핀을 이용해서 다른 번지로 부팅을 하게 하면, JTAG이나 SWD이 사용하지 않도록 설정된 프로그램이 실행되지 않아
정상적으로 JTAG/SWD로 접근할 수 있게 된다.
[링크 : https://progdev.tistory.com/16]
PB3(SWO)가 영향을 주는 편이라고
'embeded > Cortex-M7 STM' 카테고리의 다른 글
DEBUG_JTRST (0) | 2024.09.06 |
---|---|
STM32H757 전원 설정 (0) | 2024.09.04 |
STM32CubeIDE alt func (0) | 2024.09.03 |
stm32h757i-eval 데모 펌웨어 굽기 (0) | 2024.08.07 |
stm32cubeide 빌드할 소스 추가하기 (0) | 2024.08.01 |
cubeIDE 에서 설정할 때 기본으로 잡혀있는 핀이 있는데
그게 아닌 다른 것을 설정하려면 alternative function 으로 지정해서 pin mux 설정이 되어야 한다.
CubeIDE 에서는 ioc 파일 열어 gui 에서 대충~ 핀 설정해주고 기능 enable 시키면 알아서 매핑되어 생성된다.
[링크 : https://m.blog.naver.com/harkjael/222315747541]
해당 alt func는
_AF_ 라는 접두를 붙여서 msp 소스에 구현된다.
else if(huart->Instance==USART1) { /* USER CODE BEGIN USART1_MspInit 0 */ /* USER CODE END USART1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_USART1_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**USART1 GPIO Configuration PB14 ------> USART1_TX PB15 ------> USART1_RX */ GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF4_USART1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* USER CODE BEGIN USART1_MspInit 1 */ /* USER CODE END USART1_MspInit 1 */ } ... GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_5|GPIO_PIN_6; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF5_SPI4; HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); |
stm32h7xx_hal_gpio_ex.h
#define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_SPI5 ((uint8_t)0x05) /* SPI5 Alternate Function mapping */ #define GPIO_AF5_SPI6 ((uint8_t)0x05) /* SPI6 Alternate Function mapping */ #define GPIO_AF5_CEC ((uint8_t)0x05) /* CEC Alternate Function mapping */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ #define GPIO_AF4_I2C4 ((uint8_t)0x04) /* I2C4 Alternate Function mapping */ #if defined(I2C5) #define GPIO_AF4_I2C5 ((uint8_t)0x04) /* I2C5 Alternate Function mapping */ #endif /* I2C5*/ #define GPIO_AF4_TIM15 ((uint8_t)0x04) /* TIM15 Alternate Function mapping */ #define GPIO_AF4_CEC ((uint8_t)0x04) /* CEC Alternate Function mapping */ #define GPIO_AF4_LPTIM2 ((uint8_t)0x04) /* LPTIM2 Alternate Function mapping */ #define GPIO_AF4_USART1 ((uint8_t)0x04) /* USART1 Alternate Function mapping */ #if defined(USART10) #define GPIO_AF4_USART10 ((uint8_t)0x04) /* USART10 Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ #endif /*USART10*/ #define GPIO_AF4_DFSDM1 ((uint8_t)0x04) /* DFSDM Alternate Function mapping */ #if defined(DFSDM2_BASE) #define GPIO_AF4_DFSDM2 ((uint8_t)0x04) /* DFSDM2 Alternate Function mapping */ #endif /* DFSDM2_BASE */ #define GPIO_AF4_DCMI ((uint8_t)0x04) /* DCMI Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ #if defined(PSSI) #define GPIO_AF4_PSSI ((uint8_t)0x04) /* PSSI Alternate Function mapping */ #endif /* PSSI */ #if defined(OCTOSPIM) #define GPIO_AF4_OCTOSPIM_P1 ((uint8_t)0x04) /* OCTOSPI Manager Port 1 Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ #endif /* OCTOSPIM */ |
stm32h7xx_hal_msp.c 에서 핀 설정이 변경되는데, 파일 이름의 msp는 mcu 지원 패키지의 약자랜다.
msp - mcu support package
'embeded > Cortex-M7 STM' 카테고리의 다른 글
STM32H757 전원 설정 (0) | 2024.09.04 |
---|---|
STM32 / no MCU device found (0) | 2024.09.04 |
stm32h757i-eval 데모 펌웨어 굽기 (0) | 2024.08.07 |
stm32cubeide 빌드할 소스 추가하기 (0) | 2024.08.01 |
STM32H75I-EVAL (0) | 2024.08.01 |
하드웨어 하시는 분 왈 : 대각선으로 찍으면 대개 확인이 쉽다고
1,2가 같고 3,4가 같은줄 알았는데 (붙는 같은 면이니..)
1,3이 같고 2,4가 같네? (흐르는 전기에서 따서 한다고 하면 머...)
[링크 : https://www.mouser.kr/datasheet/2/670/ts04-2586192.pdf]
통상 택 스위치라고 하는데
tactile(촉각) switch 가 원래 명칭인 듯.
'이론 관련 > 전기 전자' 카테고리의 다른 글
합성저항, 목표저항 계산 (0) | 2025.01.07 |
---|---|
edge detector (0) | 2024.11.15 |
spi 통신 cpol cpha (0) | 2024.08.28 |
NPN TR.... 2? (0) | 2024.08.20 |
BJT - bipolar junction transistor (0) | 2024.08.13 |
파트를 옮기기 위해서는 part가 아니라 draft로 가서 이동 아이콘 눌러 이동시키면 된다.
'프로그램 사용 > freecad' 카테고리의 다른 글
freecad 예제 (0) | 2024.11.09 |
---|---|
freecad touchpad (0) | 2024.09.25 |
freecad - part design (0) | 2024.08.30 |
CSG(Constructive solid geometry) freecad (0) | 2024.08.30 |
freecad 사용법 다시.. (2) | 2024.08.29 |
툴 기준인데.. 반대로 툴이 소모되는 경우라면 어떻게 해야하지?
그리고 다빈치 로봇처럼 그 구멍을 고정해서 들락날락 해야 하는 경우는 TCP로 안되는건가?
set_tool_reference([x, y, z, rx, ry, rz]) //Set tool coordinate system set_end_type(1) //Set the end coordinate system type as tool Assume that the tool coordinate system T is not rotated relative to O' (rx = ry = rz = 0) Assume that the origin of the tool coordinate system T is in the coordinate system O’ at (x = 0, y = 0, z = 100mm) The final tool coordinate system parameter is set_tool_reference(0, 0, 100, 0, 0, 0) |
[링크 : https://docs.elephantrobotics.com/docs/gitbook-en/2-serialproduct/2.1-280/Kinematics&Coordinate.html]
'embeded > robot' 카테고리의 다른 글
로봇 tcp 확인 (0) | 2025.04.25 |
---|---|
elephantrobotics Mycobot-pi atom (0) | 2024.07.11 |
elephant robotics cobot python api (0) | 2023.12.21 |
산업로봇과 협동로봇의 차이 (0) | 2023.12.21 |
오일러 각 / 짐벌락 / 쿼터니언 (0) | 2023.12.21 |
레지스터 상으로는
EEPROM3 -> Temperature Offset Register
EEPROM4 -> EPROM3 로 변경됭 것 외에는 큰 차이는 없는 느낌
[링크 : https://www.ti.com/lit/ds/symlink/tmp116.pdf]
[링크 : https://www.ti.com/lit/ds/symlink/tmp117.pdf]
Configuration Register에서는
TMP117에 Soft Reset 추가
EEPROM3 -> Temperature offset
EEPROM3 -> EEPROM4
NIST traceability? 때문에 지우거나 쓰지 말라는 것으로 변경
다만 TMP116은
EEPROM1을 NIST traceability용으로 쓴다.
기능적으로는 soft reset을 제외하면 차이 없는것 같고
정밀도 등을 제외하면 별반 차이 없는 녀석일듯?
'회사일' 카테고리의 다른 글
RAMS (0) | 2022.10.19 |
---|---|
imx8m plus (0) | 2021.08.27 |
항암제 (0) | 2020.01.03 |
postgresql regexp_matches 로 HGVS g. c. p. 잡아내기 (0) | 2020.01.01 |
compound heterozygosity (0) | 2019.12.21 |