embeded/Cortex-M7 STM2024. 9. 6. 18:21

디버깅 관련 정보가 들어있는 곳이라는데

NUCLEO-G474RE\Exe\Project.axf: Warning: L6775W: stl_sch_main.o(.debug_frame) has FDEs which use CIEs which are not in this section.

 

"이 섹션에 존재하지 않는 CIEs를 사용하는 FDEs가 section name에 존재한다." 라고 해석하면 맞나?

L6775W:<objname>(<secname>) has FDEs which use CIEs which are not in this section.

[링크 : https://developer.arm.com/documentation/100074/0613/linker-errors-and-warnings/list-of-the-armlink-error-and-warning-messages]

 

CIE 는 모든 익셉션 핸들러들이 공통적으로실행하게되는 초반의 바이트코드들을 의미하고
FDE 는 익셉션이 발생한 위치별로 catch 로 가기위해 복구해야하는스택프레임이 달라지는부분이 반영되는 코드들이다.

[링크 : https://daehee87.tistory.com/468]

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

stm32 modbus  (0) 2024.09.26
SPI NSS, NSSP mode  (0) 2024.09.11
code alignement factor?  (0) 2024.09.06
DEBUG_JTRST  (0) 2024.09.06
STM32H757 전원 설정  (0) 2024.09.04
Posted by 구차니
embeded/Cortex-M7 STM2024. 9. 6. 18:18

keil 에서 빌드했더니 왜 1이 나온게 있지?

00000208 0000000c ffffffff CIE
  Version:               1
  Augmentation:          ""
  Code alignment factor: 2
  Data alignment factor: -4
  Return address column: 14

 

 

[링크 : https://community.st.com/t5/stm32-mcus-products/code-alignment-questions/td-p/63653]

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

SPI NSS, NSSP mode  (0) 2024.09.11
FDE CIE  (0) 2024.09.06
DEBUG_JTRST  (0) 2024.09.06
STM32H757 전원 설정  (0) 2024.09.04
STM32 / no MCU device found  (0) 2024.09.04
Posted by 구차니
embeded/Cortex-M7 STM2024. 9. 6. 12:43

NRST랑 머가 다른가 해서 찾아봤더니

NJTRST 는 JTAG 부분만 리셋을 한다고

[링크 : https://community.st.com/t5/stm32-mcus-products/jtrst-and-nrst-of-stm32-mcu/td-p/627177]

 

왼쪽은 JTAG, 오른쪽은 SWD

RESET은 MCU 전체 리셋이고 JTAG 에만 nTRST가 존재한다.

 

[링크 : https://www.segger.com/products/debug-probes/j-link/technology/interface-description/]

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

FDE CIE  (0) 2024.09.06
code alignement factor?  (0) 2024.09.06
STM32H757 전원 설정  (0) 2024.09.04
STM32 / no MCU device found  (0) 2024.09.04
STM32CubeIDE alt func  (0) 2024.09.03
Posted by 구차니
embeded/Cortex-M7 STM2024. 9. 4. 21:56

아니 무슨.. STM32F 시리즈에서는 이런거 본적도 없는데, 전원 옵션이 존재해?

입력이야 PCB 설계쪽에서 할일이긴 한데

 

cubeide 에서 보다보니 RCC에서 power parameters

PW_LDO_SUPPLY 등이 존재하길래 왜(?) 이런거 까지 sw에서 설정해야 하는게 멘붕중

 

 

[링크 : https://www.st.com/resource/en/application_note/an5307-getting-started-with-stm32h7a37b3-line-and-stm32h7b0-value-line-microcontroller-hardware-development-stmicroelectronics.pdf]

'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
Posted by 구차니
embeded/Cortex-M7 STM2024. 9. 4. 15:04

STM32에 프로그램 작성을 위해

CubeIDE 에서 DEBUG를 넣지 않으면 디버깅, 프로그래밍 잘 하다가 어느순간

"no MCU device found" 에러가 발생하며 CPU가 먹통이 되는 경우가 갑자기 발생

 

AVR 인공호흡(?) 처럼 검색해보니

boot0 핀을 이용해서 다른 번지로 부팅을 하게 하면, JTAG이나 SWD이 사용하지 않도록 설정된 프로그램이 실행되지 않아

정상적으로 JTAG/SWD로 접근할 수 있게 된다.

[링크 : https://progdev.tistory.com/16]

 

PB3(SWO)가 영향을 주는 편이라고

[링크 : https://blog.naver.com/crucian2k3/221533654464]

'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
Posted by 구차니
embeded/Cortex-M7 STM2024. 9. 3. 19:46

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

[링크 : https://community.st.com/t5/stm32cubemx-mcus/hal-peripheral-msp-init-why-does-stm32cubeide-generated-code-not/td-p/219207]

 

'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
Posted by 구차니
embeded/robot2024. 9. 2. 18:15

툴 기준인데.. 반대로 툴이 소모되는 경우라면 어떻게 해야하지?

그리고 다빈치 로봇처럼 그 구멍을 고정해서 들락날락 해야 하는 경우는 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]

[링크 : https://m.blog.naver.com/fa-story/222492370824]

'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
Posted by 구차니
embeded/raspberry pi2024. 8. 27. 16:13

결국은 systemd에 등록인데..

python 프로그램의 경우 pip -g로 인스톨 해서 전역으로 하지 않으면

대부분(?) 에러가 나던데.. 그건 언급이 없네

 

cd /lib/systemd/system/
sudo nano hello.service
The service definition must be on the /lib/systemd/system folder. Our service is going to be called "hello.service":

[Unit]
Description=Hello World
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/hello_world.py
Restart=on-abort

[Install]
WantedBy=multi-user.target

Here we are creating a very simple service that runs our hello_world script and if by any means is aborted is going to be restarted automatically. You can check more on service's options in the next wiki: https://wiki.archlinux.org/index.php/systemd.

Now that we have our service we need to activate it:

sudo chmod 644 /lib/systemd/system/hello.service
chmod +x /home/pi/hello_world.py
sudo systemctl daemon-reload
sudo systemctl enable hello.service
sudo systemctl start hello.service

[링크 : https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 gui 재시작(lxde)  (0) 2024.09.19
라즈베리 파이 gui 자동실행  (0) 2024.09.19
pgadmin4 를 rpi에 설치하기 성공  (0) 2024.07.29
pgadmin3 안되잖아?!  (0) 2024.07.26
rpi pico ADC 범위  (0) 2024.07.16
Posted by 구차니
embeded/esp322024. 8. 13. 15:46

'embeded > esp32' 카테고리의 다른 글

esp32devkitc v4  (0) 2025.01.06
esp32cam sdio wifi  (0) 2024.09.11
esp32 at 소스 빌드(윈도우)  (0) 2023.12.19
esp32 at source 빌드(리눅스)  (0) 2023.12.19
esp-idf on linux  (0) 2023.12.19
Posted by 구차니
embeded/Cortex-M7 STM2024. 8. 7. 15:21

파일을 올리기 전에

 

EL 이라고 써있는 External Loaders를 선택해서

 

stm32h747로 검색하면 나오는 보드가 있는데 해당 보드를 선택후 플래시를 진행하면 정상적으로 구워진다.

 

플래시를 활성화할수 있는 코드를 external loader에서 실행해주는 것 같고

로더가 먼저 실행된 후 내부 플래시와 외부 NOR flash에 구워지는 것으로 보인다.

757(보안 모듈 있음) 747(보안모듈 없음) 차이므로 보드가 다르다고 하더라도 문제는 없을듯 하다.

 

[링크 : https://community.st.com/t5/stm32-mcus-products/nor-flash-memory-in-stm32h747i-eval-board/td-p/629797]

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

STM32 / no MCU device found  (0) 2024.09.04
STM32CubeIDE alt func  (0) 2024.09.03
stm32cubeide 빌드할 소스 추가하기  (0) 2024.08.01
STM32H75I-EVAL  (0) 2024.08.01
stm32cubeide 펌웨어 업데이트 이후 자동 재시작  (2) 2024.07.25
Posted by 구차니