'embeded > odroid' 카테고리의 다른 글
오드로이드 XU4 그리고 라즈베리 3 (2) | 2018.09.14 |
---|---|
odroid 케이스 + 파워 도착! (2) | 2018.09.12 |
오랫만에 지름! (2) | 2018.09.07 |
odroid eMMC / SD 리더 호환성 (0) | 2018.05.14 |
odroid u3 저전력은 안되나.. (0) | 2018.04.22 |
오드로이드 XU4 그리고 라즈베리 3 (2) | 2018.09.14 |
---|---|
odroid 케이스 + 파워 도착! (2) | 2018.09.12 |
오랫만에 지름! (2) | 2018.09.07 |
odroid eMMC / SD 리더 호환성 (0) | 2018.05.14 |
odroid u3 저전력은 안되나.. (0) | 2018.04.22 |
걍 미는게 편할까.. 업데이트 하는게 편할까..
경고를 보고 하는 절차를 보니 걍 밀고 새로 설정하는게 편하겠는데..?
[링크 : https://linuxconfig.org/raspbian-gnu-linux-upgrade-from-jessie-to-raspbian-stretch-9]
raspbian stretch - node.js (0) | 2018.09.13 |
---|---|
라즈베리 3B stretch 한글 설정 (0) | 2018.09.13 |
node.js on rpi (0) | 2018.09.11 |
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기 (4) | 2018.09.10 |
라즈베리 파이 SPI 속도 (0) | 2018.05.18 |
내 라즈베리가 버전이 구버전인지 심각하게 구버전이 설치된다.. -_-
그런 이유로 컴파일 해서 할거 아니라면 일단 포기
(혹은 배포판 버전업?)
$ sudo apt-get install nodejs npm $ node --version v0.10.29 |
---
아무 생각없이 했더니 에러가 난다 -ㅁ-
$ npm install -g express-generator npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/usr/local/lib/node_modules', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/express-generator', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/lib/nodejs/fstream/lib/writer.js:171:23', npm ERR! '/usr/lib/nodejs/mkdirp/index.js:46:53', npm ERR! 'Object.oncomplete (fs.js:107:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 4.9.35-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "express-generator" npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules npm ERR! fstream_path /usr/local/lib/node_modules/express-generator npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules' npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/npm-debug.log npm ERR! not ok code 0 |
그런데.. 윈도우용 node랑은 verbose mode 설정이 다른건가?
이런 설치 메시지를 윈도우 용에서는 본적이 없네?
$ sudo npm install -g express-generator /usr/local/bin/express -> /usr/local/lib/node_modules/express-generator/bin/express-cli.js express-generator@4.16.0 /usr/local/lib/node_modules/express-generator ├── sorted-object@2.0.1 ├── commander@2.13.0 ├── ejs@2.5.7 ├── mkdirp@0.5.1 (minimist@0.0.8) └── minimatch@3.0.4 (brace-expansion@1.1.11) $ npm i node-rtsp-stream-es6 node-rtsp-stream-es6@1.0.6 node_modules/node-rtsp-stream-es6 ├── jsmpeg@1.0.0 └── ws@1.1.5 (options@0.0.6, ultron@1.0.2) $ npm install ws node-rtsp-stream-es6 ws@6.0.0 node_modules/ws └── async-limiter@1.0.0 node-rtsp-stream-es6@1.0.6 node_modules/node-rtsp-stream-es6 ├── jsmpeg@1.0.0 └── ws@1.1.5 (options@0.0.6, ultron@1.0.2) $ npm install jsmpeg jsmpeg@1.0.0 node_modules/jsmpeg |
그나저나 아무생각이 없었는데..
라즈베리 debian에 ffmpeg이 없네?
[링크 : https://github.com/.../(RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-acceleration]
라즈베리 3B stretch 한글 설정 (0) | 2018.09.13 |
---|---|
라즈비안 업데이트 (0) | 2018.09.11 |
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기 (4) | 2018.09.10 |
라즈베리 파이 SPI 속도 (0) | 2018.05.18 |
라즈베리 2B + waveshare 35a + MAME 0.182 (0) | 2018.05.18 |
USB 사운드 카드가 잠시 생겨 일단 테스트 해보고 싶은 마음에 찾아보니..
arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav -V mono aplay --device=plughw:1,0 test.wav |
[링크 : https://www.instructables.com/id/How-to-Record-Voice-With-USB-Microphone-Then-Play-/]
speaker-test -c2 -D plughw:1,0 |
[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/testing-audio]
[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/recording-audio]
[링크 : https://scribles.net/voice-recording-on-raspberry-pi/]
[링크 : https://linux.die.net/man/1/arecord]
+
[433655.786504] usb 1-1.4: new full-speed USB device number 4 using dwc_otg [433655.924800] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=013c [433655.924820] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [433655.924831] usb 1-1.4: Product: USB PnP Sound Device [433655.936390] input: USB PnP Sound Device as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:013C.0001/input/input1 [433656.007216] hid-generic 0003:0D8C:013C.0001: input,hidraw0: USB HID v1.00 Device [USB PnP Sound Device] on usb-3f980000.usb-1.4/input3 [433656.114545] usbcore: registered new interface driver snd-usb-audio |
$ arecord -l **** List of CAPTURE Hardware Devices **** card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 |
$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 |
일단 해보는데 극성이 문제인지
그냥은 안되고 마이크 쇼트 시키니 볼륨 메터가 뜨긴 한다.
결론 : 되긴하는데 마이크를 잘 골라야 할지도?
+
2019.09.11
윈도우에서 꽂으니 아래와 같은 식별자로 뜬다.
일단은(?) CM108 인듯?
[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/figure-out-your-chipset]
[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=74982]
라즈비안 업데이트 (0) | 2018.09.11 |
---|---|
node.js on rpi (0) | 2018.09.11 |
라즈베리 파이 SPI 속도 (0) | 2018.05.18 |
라즈베리 2B + waveshare 35a + MAME 0.182 (0) | 2018.05.18 |
odroid u3 headless setup중 문제.. (0) | 2018.05.14 |
아내님 윤허를 받았으니
(얼마에 어떤거 지른다고 말하진 않음 ㅋㅋㅋ)
Power 지름!
XU4 살리기 프로젝트인데 소심해서.. eMMC는 다음기회에..
XU4 케이스는.. 나사가 없다는 이유로 한번 더 사고(일단 검은색이라 마음에 안드는 것도 있음)
U3 랑 공용으로 쓰기 위해 UART 모듈 사고(흑.. 개 비싸 ㅠㅠ)
C2 케이스는.. 라즈베리 3B용으로 맞길 빌어 보는 중(어짜피 5천원인데 머..)
배송은 다음주 화요일쯤 이라고 하니 느긋하게 기다려 봐야지 머 ㅠㅠ
아.. 집으로 보내지 말걸 그랬나?
odroid 케이스 + 파워 도착! (2) | 2018.09.12 |
---|---|
odroid U3 stretch (0) | 2018.09.11 |
odroid eMMC / SD 리더 호환성 (0) | 2018.05.14 |
odroid u3 저전력은 안되나.. (0) | 2018.04.22 |
odroid u3 mediawiki 설치해보니.. (0) | 2018.04.19 |
win8에서는 4.50 이후 버전이나
win10에서는 5.16a 이후를 쓰라는 듯?
RESOLUTIONUpdate MDK-ARM to version 4.50 or later. Note: Any µVision version older than v4.50 is not recommended for use with Windows 8x or Windows 10. MDK-ARM V5.16a was tested with Windows 10, see MDK-ARM System Requirements. |
cavium thunderX / thunderX2 (0) | 2020.09.18 |
---|---|
thunderX 아키텍쳐 (0) | 2020.09.16 |
ARM MPMC(multiport memory controller) (0) | 2018.03.19 |
AMBA AXI (0) | 2018.01.30 |
keil build 관련 검색 (0) | 2017.12.06 |
아는분에게 받은거
라즈베리 3B
ODROID XU4
아쏴~ 아쏴~
ODROID XU4
67900 VAT 별도
[링크 : https://www.hardkernel.com/main/products/prdt_info.php?g_code=G143452239825]
라즈베리 파이 3B
41500 VAT 별도
[링크 : http://eleparts.co.kr/goods/view?no=3824868]
라즈베리 파이 3B+
43000 VAT 별도
[링크 : http://eleparts.co.kr/goods/view?no=5980692]
아무튼 어댑터는 조만간 받기로 했고
어댑터 포함하면 근 13만원 이상어치 +_+!
xu4와 u3 어댑터는 호환 안되는 듯
[링크 : https://www.hardkernel.com/main/products/prdt_info.php?g_code=G134111972476]
[링크 : https://www.hardkernel.com/main/products/prdt_info.php?g_code=G146977556615]
solidrun CuBox-i2w (0) | 2019.03.10 |
---|---|
udoo 보드 (0) | 2018.11.29 |
avr과 8051 DMIPS? (0) | 2018.01.26 |
프로그램 영역(code) 변수 저장하기 (0) | 2018.01.15 |
USB UART - CH340 (2) | 2017.10.30 |
책에서 본거 처럼(구버전 기준이긴 했지만)
최대 작동 클럭이 rpm 미터 처럼 똭 뜨지 않아서 찾아 보는중
timequest는 구버전에서의 time analzyer의 상품명(?) 이런건가?
The TimeQuest timing analyzer is a powerful ASIC-style timing analysis tool that validates the timing performance of all logic in a design using industry standard constraint, analysis, and reporting methodology Synopsis Design Constraints (SDC) tool command language (Tcl) |
[링크 : https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/manual/mnl_sdctmq.pdf]
먼가 찾아서 막 누르다 보니 이런게 나오네 -ㅁ-?
[링크 : ftp://ftp.altera.com/up/pub/Intel_Material/15.1/Tutorials/VHDL/Timequest.pdf]
[링크 : https://www.altera.com/en_US/pdfs/literature/ug/ug_tq_tutorial.pdf]
암튼 현재로서는 Timing Analyzer로만 표기가 된다.
컴파일 하다 보면 아래와 같은 Timing Analyzer 항목이 보이는데
타이밍 모델은 온도에 따른 작동 속도가 있고
speed grade별로 시뮬레이션을 하는데 영향을 주는 요소인 것으로 보인다.
speed grade / supply voltage / junction temperature
Intel FPGAs must operate in a continuum of conditions. These conditions include the die junction temperature, which varies depending upon the design's requirements. Commercial parts have a legal range of 0°C to 85°C and industrial parts have a legal range of -40°C to 100°C. There are even wider temperature ranges, such as those for automotive and military devices. Another aspect of the operating conditions is the voltage supply levels. The most critical voltages for maintaining FPGA performance is the Vcc and the various I/O supplies. Each of the supply voltages has a legal operating range. For example, a subset of Stratix® IV FPGAs has a valid Vcc range of 0.87 V to 0.93 V. The third aspect of the operating conditions is the relative speed of each FPGA versus the limit of the speed grade with which it is marked. This is one aspect that the designer has no control over. It should also be noted that devices within one speed grade can still differ slightly in performance, predominantly due to variation in the manufacturing process. All devices, however, are guaranteed to be faster than the limit of the speed grade. |
[링크 : https://www.altera.com/en_US/pdfs/literature/wp/wp-01139-timing-model.pdf]
APEX FPGA quartus 지원 버전 (0) | 2020.06.22 |
---|---|
지름신 쫒아내기 (0) | 2020.06.19 |
altera quartus2 simulation 도움말 (0) | 2018.06.28 |
modelsim 시뮬레이션과 initial (0) | 2018.06.27 |
modelsim 길이 측정하기 (0) | 2018.06.27 |
C:\intelFPGA_lite\18.0\quartus\common\help
경로에 pdf로 존재한다.
tutorial_quartusii_simulation_verilog.pdf
내용을 정리하자면
Step 1. Quartus2에서 New 하고 나서 Verification/Debugging Files에
University Program VWF를 선택하여 추가
Step 2. 아래와 같은 시뮬레이션 웨이브폼 에디터가 똭!
Step 3. 우측 패널에 우클릭하여 노드나 버스를 추가하는데
Step 4. 수동으로 추가는 불가능하고 "Node Finder"를 통해서 찾아서 추가해야 한다.
Step 5. 처음에는 아무것도 안나오는데 List를 누르면 전체 핀 목록이 뜬다.
Step 6. 모니터링 할 노드들을 추가해주고 나면 아래와 같이 뜨는데
일단 클럭이 있어야 작동하는 녀석들이 많으니 위에 시계모양 아이콘을 누르면(Overwrite Clock)
Step 7. 클럭을 쓸수 있는데 망할(?) Hz 단위가 아니라 시간 단위니 적절히 계산해서 넣어준다
(50MHz는 Period 20ns)
Step 8. 그럼 아래와 같이 클럭이 표현된다.
Step 9. 시뮬레이션을 하려면 Quartus 2 옵션 설정에서 EDA 툴을 설정해주어야 하는데
설치시에 ModelSim Altera Starter 버전을 설치했다면 아래 경로에서 찾으면 된다.
Step 10. 그래프(?)의 그리드 크기는 Edit - Grid Size에서 설정하는데
그리드는 보여주기 위한 시간 단위이다.
1us 정도가 한계인데 단위를 바꾸어서 해봐도 이걸 늘리는 법은 모르겠다.
Step 11. 시뮬레이션 시간은 End Time으로 설정되는데
최대 100us 까지 밖에 설정을 할 수 없도록 되어 있는 것으로 보인다.
Step 12. 아무튼 설정할거 했으면 Simulation 에서 Run 으로 시작하는건 누르면 되는데
상단 아이콘 바에도 있으니 편한대로 하면 된다.
Step 13. 시뮬레이션을 누르면 아래와 같이 vwf 파일 저장안되었다고 경고 뜨는데
괜히 다른 이름으로 바꾸면 실행안되니 그냥 기본값으로 저장을 해주는게 속 편하다
Step 14. 아무튼 저정하고 나면 아래와 같이 테스트벤치를 생성해서 알아서 돌리는데
Step 15. 한참을 먼가 하고 나면 아래와 같이 sim.vwf 확장자로 다른 창이 뜬다.
(근데 멀 잘못했나.. 영 안뜨네?)
아무튼.. 왜 안되는지는 좀 더 고민해봐야 겠네... ㅠㅠ
지름신 쫒아내기 (0) | 2020.06.19 |
---|---|
timequest time analyzer? (0) | 2018.06.28 |
modelsim 시뮬레이션과 initial (0) | 2018.06.27 |
modelsim 길이 측정하기 (0) | 2018.06.27 |
de0-nano LVDS (0) | 2018.06.26 |
당연히(?) initial은 있어야 하는데
모듈내에서 사용하는 reg 변수들에 대해서도 처리가 되어 있지 않으면
값이 X가 나오면서 garbage 값이라 처리를 못하는 것으로 보인다.
예전에 구한 소스인데, 시뮬레이션 안되던거 혹시나 해서
모듈내에 사용되는 reg 변수를 0으로 초기화 해주니 시뮬레이션이 잘 진행된다.
module vga640x480( input clk, input rst, output [7:0] LED, output reg hsync, output reg vsync, output [3:0] r, output [3:0] g, output [3:0] b ); reg clk25; reg [9:0] horizontal_counter; reg [9:0] vertical_counter; reg [9:0] X; reg [9:0] Y; wire [7:0] red; wire [7:0] green; wire [7:0] blue; initial begin horizontal_counter = 0; vertical_counter = 0; end assign r[3:0] = ((horizontal_counter >= 144) && (horizontal_counter < 784) && (vertical_counter >=39) && (vertical_counter < 519)) ? red : 4'b000;
assign g[3:0] = ((horizontal_counter >= 144) && (horizontal_counter < 784) && (vertical_counter >=39) && (vertical_counter < 519)) ? green : 4'b000;
assign b[3:0] = ((horizontal_counter >= 144) && (horizontal_counter < 784) && (vertical_counter >=39) && (vertical_counter < 519)) ? blue : 4'b000; assign red = ((horizontal_counter >= 144)&&(horizontal_counter < 344) ) ? 4'b1111 : 4'b0000; assign green = ((horizontal_counter >= 344)&&(horizontal_counter < 544) ) ? 4'b1111 : 4'b0000; assign blue = ((horizontal_counter >= 544)&&(horizontal_counter < 784) ) ? 4'b1111 : 4'b0000; always @(posedge clk) begin if (clk25 == 0) begin clk25 <= 1; end else begin clk25 <= 0; end end always @(posedge clk25) begin
if ((horizontal_counter > 0) && (horizontal_counter < 97))// -- 96+1 begin hsync <= 0; end else begin hsync <= 1; end
if ((vertical_counter > 0 ) && (vertical_counter < 3 )) //-- 2+1 begin vsync <= 0; end else begin vsync <= 1; end
horizontal_counter <= horizontal_counter+1;
if (horizontal_counter == 800) begin vertical_counter <= vertical_counter+1; horizontal_counter <= 0; end
if (vertical_counter == 521) begin vertical_counter <= 0; end
end endmodule |
timequest time analyzer? (0) | 2018.06.28 |
---|---|
altera quartus2 simulation 도움말 (0) | 2018.06.28 |
modelsim 길이 측정하기 (0) | 2018.06.27 |
de0-nano LVDS (0) | 2018.06.26 |
dual purpose pins (0) | 2018.06.20 |