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

  1. 2025.06.02 LD_DEBUG=libs
  2. 2025.06.02 stm32 pwm interrupt
  3. 2025.06.01 planetary annihilation - 은하계 전쟁
  4. 2025.05.31 planetary annihilation
  5. 2025.05.31 제사
  6. 2025.05.30 opengl texture
  7. 2025.05.29 stm32 stop mode - main thread
  8. 2025.05.28 외근
  9. 2025.05.27 피곤
  10. 2025.05.26 읭? 일요일 월요일 무슨일이?
Linux API/linux2025. 6. 2. 18:03

리눅스에서 공유 라이브러리(so) 호출시 경로등을 확인하기 용이한 디버깅 변수

 

LD_DEBUG=help cat
Valid options for the LD_DEBUG environment variable are:

  libs        display library search paths
  reloc       display relocation processing
  files       display progress for input file
  symbols     display symbol table processing
  bindings    display information about symbol binding
  versions    display version dependencies
  all         all previous options combined
  statistics  display relocation statistics
  unused      determined unused DSOs
  help        display this help message and exit

To direct the debugging output into a file instead of standard output
a filename can be specified using the LD_DEBUG_OUTPUT environment
variable.

[링크 : https://bnikolic.co.uk/blog/linux-ld-debug.html]

'Linux API > linux' 카테고리의 다른 글

linux 시리얼 포트 열기(termios)  (0) 2025.10.11
linux device tree(dtb) 문법...?  (0) 2024.12.04
usb hid, hidraw  (0) 2024.03.11
linux 멀티터치 프로토콜  (0) 2024.03.08
btrfs CoW  (0) 2024.02.15
Posted by 구차니
embeded/Cortex-M3 STM2025. 6. 2. 17:23

그나저나 stm32f4xx_hal_tim.c 에서 내가 만든 파일의 함수를 호출하게해서

pwm이 끝나면 카운트를 갂아 원하는 횟수만큼 소리내려고 했는데

interrupt 내에서 호출한 변수가 증가만 하고 리셋되지 않는 이상한 현상이 발생

해결책은 나중에 찾아봐야겠다.

/* stm32f4xx_hal_tim.c */


void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
{
  ...중략
  /* TIM Update event */
  if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  {
    if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) !=RESET)
    {
      __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
      HAL_TIM_PeriodElapsedCallback(htim);
    }
  }
  ...중략
}

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

 

__HAL_TIM_CLEAR_IT(&htim3, TIM_IT_UPDATE);
__HAL_TIM_ENABLE_IT(&htim3, TIM_IT_UPDATE);

void TIM3_IRQHandler(void)
{
    if (__HAL_TIM_GET_FLAG(&htim3, TIM_FLAG_UPDATE)) {
        __HAL_TIM_CLEAR_IT(&htim3, TIM_IT_UPDATE);
        // PWM 1회 출력 후 이벤트 처리
    }
}

 

쉬운 방법으로 One pulse mode도 있다

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

stm32 pwm 주파수 계산  (0) 2025.06.05
stm32 timer로 gpio 토글하기  (0) 2025.06.05
stm32 stop mode - main thread  (0) 2025.05.29
stm32 boot loader(shipping)  (0) 2025.05.13
stm32flash  (0) 2025.05.08
Posted by 구차니

싱글 플레이 - 튜토리얼은 끝냈으니

싱글 플레이 - 은하계 전쟁 시작

그런데... 난이도 낮춰서 그런가 너무 무난(?) 하네

 

탐사하면서 기술 얻고 처음에는 4개 슬롯인데. 슬롯도 하나 늘리고

그러면서 기술 하나하나 얻으며 하는 중

Posted by 구차니

2014년에 구매했던가 그런데 이제야 해보네..

실행하면 planetary annihilation : titans 를 하라고 뜨는데

 

그래도 먼가 다른가 싶어서 싱글을 해보는데

본 게임(?)은 멀티인지라 싱글은 먼가 튜토리얼의 맛배기 수준?

 

튜토리얼로 했나 싱글로 했나 기억이 안나는데 한 번 끝내고 나니

상위 메뉴에 COMMUNITY TUTORIAL이라고 뜨게 바뀌는 듯.

 

아무튼 10년의 세월은

그 당시 꽤나 높았던 걸 내장 그래픽으로 돌리는걸 가능하게 한다는게 참.. 신기하다.

ryzen 7 5800u 내장 그래픽으로 최대 그래픽 뽑아주다니.. (물론 멀티하면 다를지도?)

 

Posted by 구차니

어우 힘들다

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

피곤 개피곤!!  (0) 2025.06.12
필터 구매  (0) 2025.06.06
외근  (0) 2025.05.28
피곤  (0) 2025.05.27
기절 기절 기절  (0) 2025.05.25
Posted by 구차니
Programming/openGL2025. 5. 30. 09:14

어렵다. 함수들 하나하나 찾아보고 머하는건지 맞춰봐야 할 듯.

 

Name
glGenTextures — generate texture names

C Specification
void glGenTextures( GLsizei n,
  GLuint * textures);
 
Parameters
n
Specifies the number of texture names to be generated.

textures
Specifies an array in which the generated texture names are stored.

[링크 : https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGenTextures.xhtml]

 

Name
glBindTexture — bind a named texture to a texturing target

C Specification
void glBindTexture( GLenum target,
  GLuint texture);
 
Parameters
target
Specifies the target to which the texture is bound. Must be one of GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_BUFFER, GL_TEXTURE_2D_MULTISAMPLE or GL_TEXTURE_2D_MULTISAMPLE_ARRAY.

texture
Specifies the name of a texture.

[링크 : https://registry.khronos.org/OpenGL-Refpages/gl4/html/glBindTexture.xhtml]

 

void glTexStorage2D( GLenum target​, GLint levels​, GLint internalformat​, GLsizei width​, GLsizei height​ );
Valid target​s: GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, or GL_TEXTURE_1D_ARRAY.
For 1D array textures, the number of array layers in each mipmap level is the height​ value. For rectangle textures, the number of mipmap levels must be 1.
void glTexStorage3D( GLenum target​, GLint levels​, GLint internalformat​, GLsizei width​, GLsizei height​, GLsizei depth​ );
Valid target​s: GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_CUBE_MAP_ARRAY (this requires GL 4.0 or ARB_texture_cube_map_array)
For 2D array textures, the number of array layers in each mipmap level is the depth​ value.
For 2D cubemap array textures, the number of cubemap layer-faces is the depth​, which must be a multiple of 6. Therefore, the number of individual cubemaps in the array is given by depth​ / 6.

[링크 : https://www.khronos.org/opengl/wiki/Texture_Storage]

 

glTexImage2D(GL_TEXTURE_RECTANGLE, 0, internalformat​, width​, height​, 0, format​, type​, data​);

[링크 : https://www.khronos.org/opengl/wiki/Rectangle_Texture]

 

 

'Programming > openGL' 카테고리의 다른 글

openGL 은선제거  (0) 2025.07.29
openGL 스터디용 gemini 생성 코드  (0) 2025.07.16
blender in openGL  (0) 2025.04.28
opengl glortho gluperspective  (0) 2023.08.28
glReadPixels() 와 glUseProgram()  (0) 2022.11.17
Posted by 구차니
embeded/Cortex-M3 STM2025. 5. 29. 10:54

stm32 에서 gpio 핸들러에다가 stop mode 들어가게 해놨더니 작동안되서 찾아보니

main thread에서 stop이 들어가야 작동한다고 한다.

 

flag 세워주고 main loop에서 처리하면 끝

[링크 : https://community.st.com/t5/stm32-mcus-products/enter-exit-stop-mode-with-one-gpio-pin/td-p/621929]

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

stm32 timer로 gpio 토글하기  (0) 2025.06.05
stm32 pwm interrupt  (0) 2025.06.02
stm32 boot loader(shipping)  (0) 2025.05.13
stm32flash  (0) 2025.05.08
stm32 timer로 gpio 에 연결된 led on/off  (0) 2025.03.26
Posted by 구차니

집오니 퇴근시간 -_ㅠ

머 퇴근하니 바로 순간이동 한 느낌이라 나쁘진 않네

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

필터 구매  (0) 2025.06.06
제사  (0) 2025.05.31
피곤  (0) 2025.05.27
기절 기절 기절  (0) 2025.05.25
날씨가..  (0) 2025.05.24
Posted by 구차니

어우 지쳐

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

제사  (0) 2025.05.31
외근  (0) 2025.05.28
기절 기절 기절  (0) 2025.05.25
날씨가..  (0) 2025.05.24
개 목욕  (0) 2025.05.10
Posted by 구차니
개소리 왈왈/블로그2025. 5. 26. 23:19

엥 갑자기 왜 2일 연속? 무슨일이 벌어지고 있는거야?

 

그나저나 죄다 직접유입 머지?

'개소리 왈왈 > 블로그' 카테고리의 다른 글

게을러졌어..  (0) 2025.07.16
도메인 연장  (0) 2025.06.04
해피콩.. 나태해졌군 ㅠㅠ  (0) 2025.05.26
엥 통계 오류났.....나  (4) 2025.05.13
카카오 다 죽었네 -_-  (2) 2025.02.26
Posted by 구차니