본문 바로가기

2020/0813

STM32 DMA를 통한 I2C Receive시 Hard Fault 문제 STM32CubeMX로 코드를 생성하고 Linux Machine 과 연결한 뒤 HAL_I2C_Slave_Receive_DMA 으로 읽기를 시작한다. Linux Machine에서 i2cdetect 명령을 실행하면 STM32에서는 Hard Fault가 발생한다. https://community.st.com/s/question/0D50X0000BTcGDf/bug-report-fix-hal-i2c-interrupt-handler-not-working 비슷한 문제인거 같다. stm32f1xx_hal_i2c.c의 I2C_DMAAbort에서 /* Clear Complete callback */ hi2c->hdmatx->XferCpltCallback = NULL; hi2c->hdmarx->XferCpltCallback.. 2020. 8. 29.
ERROR: Cannot read register while CPU is running 디버깅 오류 STM32 개발하는데 CubeIDE로는 잘 되다가 IDE를 Clion으로 바꾼 뒤 ST-Link도.. J-Link도.. 디버깅이 안되는 문제가 있어서 계속 삽질했다. 그런데 원인이 너무 허무했다...ㅠㅠ 아래 내용을 지우지 않아서였다. stm32f1xx_hal_msp.c 파일 중.. /** DISABLE: JTAG-DP Disabled and SW-DP Disabled */ __HAL_AFIO_REMAP_SWJ_DISABLE(); 알고 있는 내용이었긴 했지만 왜 이걸 지우지 않았는지...ㅠㅠ 추가로 clion 에서 디버깅하려면 https://github.com/nagelkl/clion_embedded nagelkl/clion_embedded Embedded Development on STM32 with .. 2020. 8. 29.
rtcwake (suspend)시 Display 안켜지는 문제 아직까지 답을 못찾았다...ㅠㅠ https://01.org/linuxgraphics/gfx-docs/drm/admin-guide/pm/sleep-states.html System Sleep States — The Linux Kernel documentation System Sleep States Sleep states are global low-power states of the entire system in which user space code cannot be executed and the overall system activity is significantly reduced. Sleep States That Can Be Supported Depending on its configuration an.. 2020. 8. 24.
postfix Received 헤더 삭제 serverfault.com/a/998993/212942 Remove/hide client sender ip from postfix? I'm trying to hide the client IP from emails sent from postfix. here is an example of what I mean: Received: from mail.[removed].com (adsl-75-37-61-254.dsl.frs2ca.sbcglobal.net [75.37.61.254]) ( serverfault.com 참고.. github.com/jc-lab/mailserver-docker jc-lab/mailserver-docker Contribute to jc-lab/mailserver-docker develop.. 2020. 8. 21.
Clion "Cannot create directory" 오류 Clion에서 이런 오류가 났다... Cannot create directory [Failed to reload] 열심히 구글링을 해봐도 권한문제, Deployment 경로문제.. 라는데 해결이 안되었다. alpine에서 작업중이었는데 몇몇 패키지가 없어서였다. # apk add coreutils rsync 으로 해결되었다. ... 하지만... No files or folders found to process 이란 오류가...ㅠㅠ # apk add tar 으로 해결되었다. 2020. 8. 20.
SHIM & GRUB Secure Boot 분석 GRUB's secure boot rhboot리포의 grub2에서는 secure boot에 대한 검증이 없다. 하지만 ubuntu에서 설치한 grub2는 secure boot가 켜져 있을 때 vmlinuz가 디지털 서명이 되어있지 않으면 "error: ... has invalid signature" 오류가 발생하며 부팅이 중단된다. https://github.com/jc-lab/ubuntu-grub2 위 리포는 grub 2.04에 ubuntu의 patch들을 적용한 것이다. linux 명령 실행 https://github.com/jc-lab/ubuntu-grub2/blob/9b548a0d629038d4b19ab678e167669dd29c0628/grub-core/loader/i386/efi/linux.c.. 2020. 8. 16.
반응형