'잡동사니'에 해당되는 글 13454건

  1. 2024.07.22 STM32 HSEM (Hardware SEMaphore)
  2. 2024.07.22 오랫만에 해피빈 기부
  3. 2024.07.22 STM32H757 User configuration
  4. 2024.07.22 STM32CubeProgrammer
  5. 2024.07.22 postgresql 15.7 on rpi
  6. 2024.07.21 카페 마카우
  7. 2024.07.21 postgresql cli
  8. 2024.07.20 비비비
  9. 2024.07.19 닌텐도 스위치 조이콘 부품 도착
  10. 2024.07.19 XMLHttpRequest 가로채기
embeded/Cortex-M7 STM2024. 7. 22. 14:45

multi CPU를 위한 하드웨어 세마포어 인듯.

그러니까.. 싱글 코어이거나, 이기종 CPU가 아니라면 달려있는 이유가 없는 모듈

 

[링크 : https://www.st.com/resource/en/product_training/STM32WB-System-Hardware-Semaphore-HSEM.pdf]

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

STM32H750 operation mode  (0) 2024.07.22
STM32 MPU(Memory Protection Unit)  (2) 2024.07.22
STM32H757 User configuration  (0) 2024.07.22
STM32CubeProgrammer  (0) 2024.07.22
stm32h757xi / stm32h757i-eval  (0) 2024.07.19
Posted by 구차니
개소리 왈왈/블로그2024. 7. 22. 14:12

또 사라지는 해피빈이 생겨난다고 알람이 와서 기부.

가끔 광고 눌러서 받는 해피빈이라. 돈 안들이고 생색내는 기분.

 

Posted by 구차니
embeded/Cortex-M7 STM2024. 7. 22. 14:00

이전에 메뉴얼 뒤지다 발견한 BCM7/BCM4는 어디서 접근이 가능한지, 설정이 가능한지 찾질 못했는데

프로그램 하나 설치하니 해피하게 해결.. -_-

[링크 : https://www.st.com/resource/en/application_note/an5557-stm32h745755-and-stm32h747757-lines-dualcore-architecture-stmicroelectronics.pdf]

 

왼쪽 세번째 아이콘 OB가 Option Bytes 인데

거기서 User Configuration 항목에 BCM4 / BCM7을 발견할 수 있다.

[링크 : https://blog.naver.com/chandong83/221652968153]

[링크 : https://www.st.com/en/development-tools/stm32cubeprog.html]

[링크 : https://blog.naver.com/chcbaram/221597488638]

 

+

  HAL_FLASH_Unlock();
  HAL_FLASH_OB_Unlock();
  HAL_FLASHEx_OBGetConfig(&OBInit);

  OBInit.OptionType = OPTIONBYTE_CM7_BOOTADD;
  OBInit.BootAddr0 = 0x08010000;
  OBInit.BootConfig = OB_BOOT_ADD0;
  HAL_FLASHEx_OBProgram(&OBInit);
  HAL_FLASH_OB_Launch()

[링크 : https://community.st.com/t5/stm32-mcus-products/stm32h745-set-cm7-boot-addr0-from-cm4/td-p/654791]

 

+

void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit)
{
  pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_BOR;

  /*Get WRP*/
  pOBInit->WRPSector = FLASH_OB_GetWRP();

  /*Get RDP Level*/
  pOBInit->RDPLevel = FLASH_OB_GetRDP();

  /*Get USER*/
  pOBInit->USERConfig = FLASH_OB_GetUser();

  /*Get BOR Level*/
  pOBInit->BORLevel = FLASH_OB_GetBOR();
}

[링크 : https://github.com/fboris/STM32Cube_FW_F4/blob/master/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c#L341]

 

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

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

  uint32_t WRPSector;         /*!< Specifies the sector(s) to be write protected.
                              The value of this parameter depend on device used within the same series */

  uint32_t Banks;        /*!< Select banks for WRP activation/deactivation of all sectors.
                              This parameter must be a value of @ref FLASHEx_Banks */        

  uint32_t RDPLevel;     /*!< Set the read protection level.
                              This parameter can be a value of @ref FLASHEx_Option_Bytes_Read_Protection */

  uint32_t BORLevel;     /*!< Set the BOR Level.
                              This parameter can be a value of @ref FLASHEx_BOR_Reset_Level */

  uint8_t  USERConfig;   /*!< Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. */

} FLASH_OBProgramInitTypeDef;

[링크 : https://github.com/fboris/STM32Cube_FW_F4/blob/master/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h#L106]

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

STM32 MPU(Memory Protection Unit)  (2) 2024.07.22
STM32 HSEM (Hardware SEMaphore)  (0) 2024.07.22
STM32CubeProgrammer  (0) 2024.07.22
stm32h757xi / stm32h757i-eval  (0) 2024.07.19
FT5336 - 정전식 터치 i2c  (0) 2021.07.06
Posted by 구차니
embeded/Cortex-M7 STM2024. 7. 22. 12:45

별도의 독립 프로그램이다... -_-

리눅스 버전 받으면 zip으로 받아지고, 압축풀면 아래와 같이 exe와 linux 파일이 생기는데

 

linux는 900kb 정도로 용량이 작아서 쉘 스크립트 치곤 크네.. 하고 봤더니 ELF 실행파일.

그냥 ./SetupSTM32CubeProgrammer-2.17.0.linux 로 실행하면 된다.

$ file *
SetupSTM32CubeProgrammer-2.17.0.exe:   PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows
SetupSTM32CubeProgrammer-2.17.0.linux: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=bcc7be207b463b7b004b10f7078d9d2be84d3902, with debug_info, not stripped
jre:                                   directory

 

UI 색상 왜이래.. 다크모드라 그런가?

[링크 : https://www.st.com/en/development-tools/stm32cubeprog.html]

[링크 : https://blog.naver.com/chcbaram/221597488638]

 

귀찮아서 기본값으로 설치했는데.. 프로그램 등록이 되지 않아 수동으로 실행해야 한다.

GUI는 아래의 명령어로 실행하면 된다.

~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ ./STM32CubeProgrammer

 

 

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

STM32 HSEM (Hardware SEMaphore)  (0) 2024.07.22
STM32H757 User configuration  (0) 2024.07.22
stm32h757xi / stm32h757i-eval  (0) 2024.07.19
FT5336 - 정전식 터치 i2c  (0) 2021.07.06
stm32f4 otg update bin file  (0) 2021.07.02
Posted by 구차니

예전 centos 할 때 랑은 또 경로가 달라져서 헷갈리네

 

설정 변경

# cat /etc/postgresql/15/main/pg_hba.conf 
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     md5
# IPv4 local connections:
host    all             all             127.0.0.1/32            scram-sha-256
# IPv6 local connections:
host    all             all             ::1/128                 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all             ::1/128                 scram-sha-256

 

서비스 재기동

$ sudo systemctl restart postgresql

 

postgres 계정으로 로그인 후 계정 및 database 생성

pi@raspberrypi:~ $ sudo su - postgres
postgres@raspberrypi:~$ psql
psql (15.7 ( 15.7-0+deb12u1))
Type "help" for help.

postgres=# create user username with password 'userpassword';
CREATE ROLE
postgres=# create database userdb;
CREATE DATABASE
materials=> \q
postgres@raspberrypi:~$

 

일반 계정에서 특정 사용자로 로그인

pi@raspberrypi:~ $ psql -U username userdb
Password for user username: 
psql (15.7 ( 15.7-0+deb12u1))
Type "help" for help.

userdb=> \q

 

[링크 : https://zipeya.tistory.com/entry/postgresql-DB생성-및-접속-시-Peer-authentication에러-발생-시-해야할-것]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
phppgadmin  (0) 2024.07.23
postgresql cli  (0) 2024.07.21
psql copy to  (0) 2020.02.10
postgresql 제약조건 관련  (0) 2020.02.07
Posted by 구차니

앵무새 카페 다녀옴

사장님이 친절은 하신데 자꾸 속마음 말풍선이 보이는 느낌 ㅋㅋ

 

사장님 : 흐지믈르그...!

 

 

1인 1 음료 하면 얼마를 있던 상관없고, 만져보러 들어갈수도 있지만

대형조류라 치악력이 강해서 주인이 직접 넘겨주지 않는 이상 크게 다칠수 있어

자유롭게 만져볼순 없어서 좀 아쉽지만, 대부분은 보기만 하고 팔이나 어깨에 올려볼 수 있다는게 큰 장점!

[링크 : https://cafemacaw.co.kr/]

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

자유이긴 한데..  (0) 2024.07.27
으어어 개 피곤  (0) 2024.07.26
비비비  (0) 2024.07.20
이게 먼일이다냐  (2) 2024.07.18
비. 아니 폭우  (0) 2024.07.17
Posted by 구차니

이전에는 대부분 pgadmin 이라는 웹기반으로 사용하다 보니 콘솔에서 쓸 방법 찾는 중

 

[링크 : https://www.postgresql.org/docs/current/app-psql.html]

[링크 : https://kwomy.tistory.com/m/9]

[링크 : https://kugancity.tistory.com/m/entry/postgre-sql-command-line에서-사용하기]

 

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
psql copy to  (0) 2020.02.10
postgresql 제약조건 관련  (0) 2020.02.07
postgresql database / table 복제 및 동기화  (0) 2020.02.07
Posted by 구차니

덥고 비오고 난리네

그래도 개들 산책시킬 시간정도는 나게 적당히(?) 바닥이 마르고나서 비가 오니 다행

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

으어어 개 피곤  (0) 2024.07.26
카페 마카우  (0) 2024.07.21
이게 먼일이다냐  (2) 2024.07.18
비. 아니 폭우  (0) 2024.07.17
머했지?  (0) 2024.07.07
Posted by 구차니
게임/닌텐도 스위치2024. 7. 19. 23:20

오른쪽 조이콘의 sync / LR / SR 버튼인가?

그쪽 fpcb가 끊어져서 교체.

역시나.. 다 분해해서 조립해야 하는 극악의 난이도 -_-

내 손이 이렇게 굵었나 다시 고민하게 된다.

 

다 조립하고 나니 핀셋을 발견했다..

Posted by 구차니
Programming/web 관련2024. 7. 19. 18:29

'Programming > web 관련' 카테고리의 다른 글

웹 브라우저에서 웹 캠 띄우기  (0) 2024.09.24
three.js  (0) 2024.09.19
web worker  (0) 2024.07.19
mirage.js - api mockup  (0) 2024.07.19
웹 브라우저 쿠키  (0) 2024.03.27
Posted by 구차니