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

  1. 2021.10.13 i.MX 8M PLUS
  2. 2021.10.13 2.7.0-rc with opencl
  3. 2021.10.12 tf release 2.7.0-rc
  4. 2021.10.11 tflite delegate
  5. 2021.10.10 MPPT 컨트롤러
  6. 2021.10.09 인산철 배터리
  7. 2021.10.08 화이자 2차 접종
  8. 2021.10.07 내일 백신 2차!
  9. 2021.10.06 피로도 하락
  10. 2021.10.05 피곤하다..
embeded/i.mx 8m plus2021. 10. 13. 11:44

오잉? 저번에 볼 땐 8M PLUS에는 cortex-M 계열 없었던 것 같은데?!?!

[링크 : https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-plus-arm-cortex-a53-machine-learning-vision-multimedia-and-industrial-iot:IMX8MPLUS]

 

음.. 그냥 내 눈이 삐꾸인걸로 -_ㅠ

[링크 : https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors:IMX8-SERIES]

 

아무튼 회사에 굴러(?) 다니는 이 녀석 사용해보려니

헐.. 무슨 디버그 포트가 이렇게 많이 인식 돼? 일단 나의 경우에는 리눅스가 COM27로 연결되었다.

[링크 : https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-plus-applications-processor:8MPLUSLPD4-EVK]

 

패키지에 들어있던 종이 쪼가리구만 -_-

첫째랑 둘째는 누구꺼냐!?

Four UART connections will appear on the PC, the third port for the Cortex-A53 core and the fourth for Cortex-M7 core system debugging.

[링크 : https://www.nxp.com/docs/en/quick-reference-guide/8MPLUSEVKQSG.pdf]

 

Proejct - Tutorial에 Machine Learning

[링크 : https://www.nxp.com/document/guide/getting-started-with-the-i-mx-8m-plus-evk:GS-iMX-8M-Plus-EVK]

 

i.MX 8M PLUS 에는 전체 기능을 다 지원하는데

NPU를 써볼려면 eIQ를 이용해서 먼가 짓을 해야 하는 것 같고.

Cortex-M7도 있으니 (standalone 혹은 collaborative 하게 작동이 가능하다고) 이걸 이용해서 일종의 가속기화 하려나?

 

TFLite

[링크 : https://www.nxp.com/design/software/development-software/eiq-ml-development-environment/eiq-inference-with-tensorflow-lite:eIQTensorFlowLite]

 

TFLite for MCU

[링크 : https://www.nxp.com/design/software/development-software/eiq-ml-development-environment/eiq-inference-with-tensorflow-lite-micro:EIQ-TFLITE-MICRO]

 

위에서 다운로드 링크 누르니 이상한데(?)로 보내버리네

[링크 : https://mcuxpresso.nxp.com/en/welcome] cortex-M7 쓰려면 이게 필요한 듯. 이클립스 기반?

[링크 : https://source.codeaurora.org/external/imx/imx-manifest]

 

오오 i.MX 8M Plus!!

Cortex-A / GPU / NPU 오오오...

[링크 : https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf]

 

 

+

이미지 받아보니 아래와 같이 구성되어 있다.

귀찮으면 fsl-image-validation-imx-imx8mmevk.sdcard 를 sd에 구워서 켜보면 될 듯.

 

imx_m4_demos에는 bin 파일이 있는데 이건 어떻게 올려서 쓰려나?

 

MCUXpresso 안쓰면 uboot에서 해당 파일을 직접 sd에 넣어 실행하는 수 밖에 없나?

4.2 Run applications using U-Boot

This section describes how to run applications using an SD card and pre-built U-Boot image for i.MX processor.
  1. Following the steps from section 2—Embedded Linux of this Getting Started guide, prepare an SD card with a pre-built U-Boot + Linux image from the Linux BSP package for the i.MX 8M Plus processor. If you have already loaded the SD card with a Linux image, you can skip this step.
  2. Insert the SD card in the host computer (Linux or Windows) and copy the application image (for example hello_world.bin) to the FAT partition of the SD card.
  3. Safely remove the SD card from the PC.
  4. Insert the SD card to the target board. Make sure to use the default boot SD slot and double check the Boot switch setup.
  5. Connect the DEBUG UART connector on the board to the PC through USB cable. The Windows OS installs the USB driver automatically, and the Ubuntu OS will find the serial devices as well.
    See Connect USB debug cable section in Out of box for more instructions on serial communication applications.
  6. Open a second terminal on the i.MX8M Plus EVK board’s second enumerated serial port. This is the Cortex®-M7’s serial console. Set the speed to 115200 bit/s, data bits 8, 1 stop bit (115200, 8N1), no parity.
  7. Power up the board and stop the boot process by pressing any key before the U-Boot countdown reaches zero. At the U-Boot prompt on the first terminal, type the following commands.
    => fatload mmc 0:1 0x48000000 hello_world.bin
    => cp.b 0x48000000 0x7e0000 0x20000
    => bootaux 0x7e0000
    These commands copy the image file from the first partition of the SD card into the Cortex®-M7’s TCM and releases the Cortex®-M7 from reset.

 

 

리눅스에서 /sys 등으로 접근할 순 없나?

wic 파일을 win32diskimager로 구우면 되려나?

[링크 : https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf]

[링크 : https://www.nxp.com/part/8MPLUSLPD4-EVK#/]

 

MCUXpresso 로 imx8m quad 선택해서 빌드한다?

[링크 : https://www.embeddedartists.com/wp-content/uploads/2019/03/iMX8M_Working_with_Cortex-M.pdf]

'embeded > i.mx 8m plus' 카테고리의 다른 글

i.mx8m plus win iot 실행  (0) 2023.02.23
i.mx8 tensilica dsp  (0) 2023.02.07
i.mx8m plus win iot  (0) 2023.02.02
imx 8m plus NPU 에러 추적  (5) 2021.10.14
i.MX 8M PLUS tensorflow NPU  (0) 2021.10.13
Posted by 구차니

빌드해보려다가 라즈베리 4에서 실패인지 성공인지 미묘하게 완료

 

$ git clone https://github.com/tensorflow/tensorflow.git
$ cd tensorflow/
$ git checkout v2.7.0-rc0

$ mkdir ../tflite_build
$ cd ../tflite_build
$ cmake ../tensorflow/tensorflow/lite/ -DTFLITE_ENABLE_GPU=ON

[링크 : https://www.tensorflow.org/lite/guide/build_cmake]

 

문제는 rpi 3용 videocore IV는 openCL 사용자 버전이 있는데

rpi 4용 videocore VI는 아직 안나와서 쓸수가 없을 듯 ㅠㅠ

/home/pi/work/tflite_build/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")

[링크 : https://github.com/doe300/VC4CL/issues/86]

[링크 : https://github.com/Idein/py-videocore6]

[링크 : https://forums.raspberrypi.com/viewtopic.php?t=312646]

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

bazel cross compile  (0) 2022.01.27
bazel clean  (0) 2021.10.19
tf release 2.7.0-rc  (0) 2021.10.12
tflite delegate  (0) 2021.10.11
tflite gpu openCL support build fail  (0) 2021.08.31
Posted by 구차니

정식 릴리즈는 아니고 후보인데 tensorflow lite 빌드를 make 사용하지 않고

cmake나 bazel로만 되도록 변경됨.

 

[링크 : https://github.com/tensorflow/tensorflow/releases]

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

bazel clean  (0) 2021.10.19
2.7.0-rc with opencl  (0) 2021.10.13
tflite delegate  (0) 2021.10.11
tflite gpu openCL support build fail  (0) 2021.08.31
tf lite cmake  (0) 2021.08.27
Posted by 구차니

과거에도 있긴 했지만.. 도대체 이 delegate는 어떤 통로를 통해 tensorflow lite에서 사용이 가능해지는 건진 모르겠다.

 

[링크 : https://www.tensorflow.org/lite/performance/implementing_delegate]

[링크 : https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/gpu/README.md]

[링크 : https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/examples/label_image/label_image.cc]

 

 

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

2.7.0-rc with opencl  (0) 2021.10.13
tf release 2.7.0-rc  (0) 2021.10.12
tflite gpu openCL support build fail  (0) 2021.08.31
tf lite cmake  (0) 2021.08.27
tensorflow cross compile  (0) 2021.07.01
Posted by 구차니
이론 관련/전기 전자2021. 10. 10. 21:47

태양광 패널 관련해서 찾다보니 이런게 나오네..

PWM 방식도 있긴한데 MPPT가 더 효율이 좋게 최대 전력을 뽑아내주는 듯.

 

일단 솔라패널의 특성상 최대 출력 전압이 있는데

90% 정도의 전압을 뽑아낼 때 최대 전류가 나오는 듯

근데.. 어떻게 전압을 원하는 대로 빼내지?

 

[링크 : https://en.m.wikipedia.org/wiki/Maximum_power_point_tracking]

 

 

 

[링크 : https://blog.naver.com/sipeng/220035371228]

[링크 : https://electronics.stackexchange.com/.../what-is-the-best-way-to-limit-voltage-of-a-solar-panel]

[링크 : https://electronics.stackexchange.com/questions/326271/solar-charging-with-a-super-capacitor-buffer]

'이론 관련 > 전기 전자' 카테고리의 다른 글

led 와 solar panel  (0) 2022.02.22
FFT RBW - Resolution Band Width  (0) 2021.12.22
인산철 배터리  (0) 2021.10.09
220V 전원  (0) 2021.09.21
current loop  (0) 2021.09.02
Posted by 구차니
이론 관련/전기 전자2021. 10. 9. 23:01

리튬계열인데 기존에는 코발트 이런게 들어가서

LiFePO4 를 전극으로 사용하여 희소금속의 사용을 줄이는 배터리

다만 Li-ion의 3.7V보다는 낮은 전압이 걸리고 몇개 묶으면 기존의 납축전지와 동일해서 사용하는 듯.

 

[링크 : https://blog.naver.com/youni0701/221219489064]

'이론 관련 > 전기 전자' 카테고리의 다른 글

FFT RBW - Resolution Band Width  (0) 2021.12.22
MPPT 컨트롤러  (0) 2021.10.10
220V 전원  (0) 2021.09.21
current loop  (0) 2021.09.02
라즈베리 파이 3B+ USB boot  (0) 2021.08.23
Posted by 구차니

주사 맞는지도 모르고 맞음. 원장님 실력 굿!!

그나저나 물주사 아냐?! 할 정도로 1차때 수준의 맞은곳만 근육통이 느껴지는 수준

 

뽀로로 반창고는 아니지만

캐릭터 반창고 붙임 ㅋㅋ

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

휴가 2일차  (0) 2021.10.28
코로나 백신 후유증?  (0) 2021.10.20
내일 백신 2차!  (0) 2021.10.07
코로나 3273  (0) 2021.09.25
별이 병원  (0) 2021.09.18
Posted by 구차니

하루 당겨서 금요일에 맞고

회사 연차쓰고! 얼쑤!

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

코로나 백신 후유증?  (0) 2021.10.20
화이자 2차 접종  (0) 2021.10.08
코로나 3273  (0) 2021.09.25
별이 병원  (0) 2021.09.18
장보기  (0) 2021.09.12
Posted by 구차니

하루 라도 푹 잘자니. 머리가 잘 도네

요즘 어깨가 미친듯이 뭉쳐서 그랬는데 전기장판 깐다고 좀 푹신해지지 않아서

오히려 더 뭉쳤던 듯..

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

축 늘어진다아~  (0) 2021.10.17
기절  (0) 2021.10.16
피곤하다..  (0) 2021.10.05
빨간날 야근  (0) 2021.10.04
피곤엔 낮잠이 꿀잠이네  (0) 2021.10.03
Posted by 구차니

양 어깨가 나간듯..

코로나 백신 2차. 금요일로 땡겨서 맞을 예정

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

기절  (0) 2021.10.16
피로도 하락  (0) 2021.10.06
빨간날 야근  (0) 2021.10.04
피곤엔 낮잠이 꿀잠이네  (0) 2021.10.03
으아아아아 야근  (0) 2021.09.28
Posted by 구차니