'embeded'에 해당되는 글 1341건

  1. 2017.11.21 avrdude + usbasp 테스트
  2. 2017.11.18 avrdude 실행 안됨
  3. 2017.11.17 keil bootloader example - avr/atmel
  4. 2017.11.13 avrdude -U 옵션
  5. 2017.11.13 USBasp 설치
  6. 2017.11.09 RTL - Register-transfer level
  7. 2017.11.09 reVISION / zynq 웨비나
  8. 2017.11.08 piwall / yodeck
  9. 2017.11.08 rpi dual spi lcd
  10. 2017.10.30 USB UART - CH340 2
embeded/AVR (ATmega,ATtiny)2017. 11. 21. 13:37

커맨드 최종버전...

퓨즈 비트를 먼저 셋팅하고 리부팅 하고 나서, 플래시에 데이터를 쓴다~ 라는 설정 (들어있는 비트는 기본값 임)

일단 내가 가진 usbasp는 -B 옵션으로 SCK 변경이 안되서 좀 더 실험을 해봐야 함...

D:\avrdude>avrdude -v -cusbasp -pm64 -Ulfuse:w:0xC1:m -Uhfuse:w:0x99:m -Uefuse:w:0xFF:m -Ulock:w:0x3F:m -E reset && avrdude -v -cusbasp -pm64 -Uflash:w:atmega64.hex:i 



avrdude는 프로그램 종료시 기본으로 reset을 건다는데..

-E exitspec[,…]

By default, AVRDUDE leaves the parallel port in the same state at exit as it has been found at startup. This option modifies the state of the ‘/RESET’ and ‘Vcc’ lines the parallel port is left at, according to the exitspec arguments provided, as follows:


reset

The ‘/RESET’ signal will be left activated at program exit, that is it will be held low, in order to keep the MCU in reset state afterwards. Note in particular that the programming algorithm for the AT90S1200 device mandates that the ‘/RESET’ signal is active before powering up the MCU, so in case an external power supply is used for this MCU type, a previous invocation of AVRDUDE with this option specified is one of the possible ways to guarantee this condition.


noreset

The ‘/RESET’ line will be deactivated at program exit, thus allowing the MCU target program to run while the programming hardware remains connected.


vcc

This option will leave those parallel port pins active (i. e. high) that can be used to supply ‘Vcc’ power to the MCU.


novcc

This option will pull the ‘Vcc’ pins of the parallel port down at program exit.


d_high

This option will leave the 8 data pins on the parallel port active (i. e. high).


d_low

This option will leave the 8 data pins on the parallel port inactive (i. e. low).


Multiple exitspec arguments can be separated with commas. 

[링크 : http://www.nongnu.org/avrdude/user-manual/avrdude_4.html]

[링크 : http://www.avrfreaks.net/forum/avrdude-reset-command[]



atmega64에서 avrdude로 테스트

-p에서 칩을 정해주지 않으면 실행이 되지 않는다.

D:\avrdude>avrdude -patmega64 -cusbasp


avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: error: program enable: target doesn't answer. 1

avrdude: initialization failed, rc=-1

         Double check connections and try again, or use -F to override

         this check.



avrdude done.  Thank you.

D:\avrdude>avrdude -patmega64 -cusbasp


avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.02s


avrdude: Device signature = 0x1e9602 (probably m64)


avrdude: safemode: Fuses OK (E:FF, H:C9, L:FF)


avrdude done.  Thank you.



D:\avrdude>avrdude -patmega64 -v -cusbasp


avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch


         System wide configuration file is "D:\avrdude\avrdude.conf"


         Using Port                    : usb

         Using Programmer              : usbasp

         AVR Part                      : ATmega64

         Chip Erase delay              : 9000 us

         PAGEL                         : PD7

         BS2                           : PA0

         RESET disposition             : dedicated

         RETRY pulse                   : SCK

         serial program mode           : yes

         parallel program mode         : yes

         Timeout                       : 200

         StabDelay                     : 100

         CmdexeDelay                   : 25

         SyncLoops                     : 32

         ByteDelay                     : 0

         PollIndex                     : 3

         PollValue                     : 0x53

         Memory Detail                 :


                                  Block Poll               Page                       Polled

           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

           eeprom         4    20    64    0 no       2048    8      0  9000  9000 0xff 0xff

           flash         33     6   128    0 yes     65536  256    256  4500  4500 0xff 0xff

           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00

           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00


         Programmer Type : usbasp

         Description     : USBasp, http://www.fischl.de/usbasp/


avrdude: auto set sck period (because given equals null)

avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: error: program enable: target doesn't answer. 1

avrdude: initialization failed, rc=-1

         Double check connections and try again, or use -F to override

         this check.



avrdude done.  Thank you.

D:\avrdude>avrdude -patmega64 -v -cusbasp


avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch


         System wide configuration file is "D:\avrdude\avrdude.conf"


         Using Port                    : usb

         Using Programmer              : usbasp

         AVR Part                      : ATmega64

         Chip Erase delay              : 9000 us

         PAGEL                         : PD7

         BS2                           : PA0

         RESET disposition             : dedicated

         RETRY pulse                   : SCK

         serial program mode           : yes

         parallel program mode         : yes

         Timeout                       : 200

         StabDelay                     : 100

         CmdexeDelay                   : 25

         SyncLoops                     : 32

         ByteDelay                     : 0

         PollIndex                     : 3

         PollValue                     : 0x53

         Memory Detail                 :


                                  Block Poll               Page                       Polled

           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

           eeprom         4    20    64    0 no       2048    8      0  9000  9000 0xff 0xff

           flash         33     6   128    0 yes     65536  256    256  4500  4500 0xff 0xff

           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00

           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00


         Programmer Type : usbasp

         Description     : USBasp, http://www.fischl.de/usbasp/


avrdude: auto set sck period (because given equals null)

avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.03s


avrdude: Device signature = 0x1e9602 (probably m64)

avrdude: safemode: hfuse reads as C9

avrdude: safemode: efuse reads as FF


avrdude: safemode: hfuse reads as C9

avrdude: safemode: efuse reads as FF

avrdude: safemode: Fuses OK (E:FF, H:C9, L:FF)


avrdude done.  Thank you.


-Ulock:r:-:i 로 lock 비트나 fuse 비트를 읽어서 콘솔로 출력가능 함

D:\avrdude>avrdude -patmega64 -cusbasp -Ulock:r:-:i


avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.03s


avrdude: Device signature = 0x1e9602 (probably m64)

avrdude: reading lock memory:


Reading | ################################################## | 100% 0.02s


avrdude: writing output file "<stdout>"

:010000003FC0

:00000001FF


avrdude: safemode: Fuses OK (E:FF, H:C9, L:FF)


avrdude done.  Thank you. 

[링크 : http://shawnhymel.com/622/quick-tip-reading-fuse-bits-in-an-arduino/]


일단.. -p 옵션의 칩이 다르면 중단한다.(avr studio랑 같네..)

D:\avrdude>avrdude -patmega128 -cusbasp -Ulock:r:-:i


avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% -0.00s


avrdude: Device signature = 0x1e9602 (probably m64)

avrdude: Expected signature for ATmega128 is 1E 97 02

         Double check chip, or use -F to override this check.


avrdude done.  Thank you. 


다 읽는데 35초 정도? 늦게 걸리길래 속도 업해보려고 하니 지원을 하지 않는다고 한다. ㅠㅠ

D:\avrdude>avrdude -patmega64 -cusbasp -Uflash:r:dump.hex:i -B 0.6


avrdude: set SCK frequency to 1500000 Hz

avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.03s


avrdude: Device signature = 0x1e9602 (probably m64)

avrdude: reading flash memory:


Reading | ################################################## | 100% 35.25s


avrdude: writing output file "dump.hex"


avrdude: safemode: Fuses OK (E:FF, H:C9, L:FF)


avrdude done.  Thank you. 

D:\avrdude>avrdude -patmega64 -cusbasp -Uflash:r:dump.hex:i -B 2


avrdude: set SCK frequency to 375000 Hz

avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.05s


avrdude: Device signature = 0x1e9602 (probably m64)

avrdude: reading flash memory:


Reading | ################################################## | 100% 35.25s


avrdude: writing output file "dump.hex"


avrdude: safemode: Fuses OK (E:FF, H:C9, L:FF)


avrdude done.  Thank you.


일단 펌웨어 업데이트 시도는 해봐야 할 듯...

[링크 : http://tmlgt.blog.me/220332919733]

[링크 : http://blog.lincomatic.com/?p=1480]



+

초기값 셋팅이 atmega4에서 아래와 같이 나오는데

맞는진 확인해 봐야겠지만.. intel HEX 포맷을 기반으로 읽으려니 빡쳐서 hexa로 출력!

avrdude: safemode: Fuses OK (E:FD, H:99, L:E1

D:\avrdude>avrdude -patmega64 -cusbasp  -v -Ulock:r:-:i

avrdude: writing output file "<stdout>"

:010000003FC0

:00000001FF

D:\avrdude>avrdude -patmega64 -cusbasp  -v -Ulock:r:-:h

avrdude: writing output file "<stdout>"

0x3f


그걸 계산기에 때려 넣으니 아래와 같이 나온다.

internal RC 1MHz 이고 Lockbit는 0xFF인데

bit 7/6이 사용 불가인지 0x3F가 실질적인 기본 값인 것으로 보인다.


[링크 : http://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega64]

[링크 : ]http://eleccelerator.com/...?chip=atmega64&LOW=E1&HIGH=99&EXTENDED=FD&LOCKBIT=3F]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avrisp mk2 / avrisp mk2 clone / stk500 clone  (0) 2017.11.21
avr unlock 관련  (0) 2017.11.21
avrdude 실행 안됨  (0) 2017.11.18
keil bootloader example - avr/atmel  (0) 2017.11.17
avrdude -U 옵션  (0) 2017.11.13
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 11. 18. 13:19

저 에러 자체가 win64/win32 호환 문제라는데

64bit 깔린데서 하나는 실행되고 하나는 안되는건

도대체 머가 문제인 거야?



+

2017.11.20


(x64와 x86 연결 문제를 야기하는)xinput.dll이 문제거나, 권한 문제거나

[링크 : http://freewisdoms.com/how-to-fix-0xc000007b-application-error/]

    [링크 : https://www.youtube.com/watch?v=lIvPZjzAi_w]

    [링크 : https://www.youtube.com/watch?v=ZO_Tyjjf8BI]

[링크 : https://stackoverflow.com/questions/10492037/the-application-was-unable-to-start-correctly-0xc000007b]

[링크 : https://forums.sketchup.com/t/windows-7-0xc000007b-error-on-startup/12323/7]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avr unlock 관련  (0) 2017.11.21
avrdude + usbasp 테스트  (0) 2017.11.21
keil bootloader example - avr/atmel  (0) 2017.11.17
avrdude -U 옵션  (0) 2017.11.13
USBasp 설치  (0) 2017.11.13
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 11. 17. 16:03

어느거 기준인진 좀 코드를 분석해 봐야 할 듯?


프로젝트 파일 뜯어 보니

 Device (AT89C51ID2)

 Vendor (Atmel)

크앙... AT89C51 8051계열용이네.. ㅠㅠ


[링크 : http://www.keil.com/download/docs/52.asp]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avrdude + usbasp 테스트  (0) 2017.11.21
avrdude 실행 안됨  (0) 2017.11.18
avrdude -U 옵션  (0) 2017.11.13
USBasp 설치  (0) 2017.11.13
avr 저전압 감지  (0) 2017.08.11
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 11. 13. 16:06

-U 옵션이 무지 복잡해 보이는데

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500 -PCOM6 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

2016/04/06 - [embeded/arduino(genuino)] - 아두이노 부트로더 굽기?


아래 내용으로 해석을 해보면..

lock / fuse bit(extended/high/low) 를 Write 하고 immediate 모드로 해당 값을 쓰도록 한다 정도?

-Ulock:w:0x3F:m

-Uefuse:w:0x05:m

-Uhfuse:w:0xDA:m

-Ulfuse:w:0xFF:m



-U memtype:op:filename[:format]

Perform a memory operation. Multiple ‘-U’ options can be specified in order to operate on multiple memories on the same command-line invocation. The memtype field specifies the memory type to operate on. Use the ‘-v’ option on the command line or the part command from terminal mode to display all the memory types supported by a particular device. Typically, a device’s memory configuration at least contains the memory types flash and eeprom. All memory types currently known are:


calibration

One or more bytes of RC oscillator calibration data.


eeprom

The EEPROM of the device.


efuse

The extended fuse byte.


flash

The flash ROM of the device.


fuse

The fuse byte in devices that have only a single fuse byte.


hfuse

The high fuse byte.


lfuse

The low fuse byte.


lock

The lock byte.


signature

The three device signature bytes (device ID).


fuseN

The fuse bytes of ATxmega devices, N is an integer number for each fuse supported by the device.


application

The application flash area of ATxmega devices.


apptable

The application table flash area of ATxmega devices.


boot

The boot flash area of ATxmega devices.


prodsig

The production signature (calibration) area of ATxmega devices.


usersig

The user signature area of ATxmega devices.


The op field specifies what operation to perform:


r

read the specified device memory and write to the specified file


w

read the specified file and write it to the specified device memory


v

read the specified device memory and the specified file and perform a verify operation


The filename field indicates the name of the file to read or write. The format field is optional and contains the format of the file to read or write. Possible values are:


i

Intel Hex


s

Motorola S-record


r

raw binary; little-endian byte order, in the case of the flash ROM data


e

ELF (Executable and Linkable Format), the final output file from the linker; currently only accepted as an input file


m

immediate mode; actual byte values specified on the command line, separated by commas or spaces in place of the filename field of the ‘-U’ option. This is useful for programming fuse bytes without having to create a single-byte file or enter terminal mode. If the number specified begins with 0x, it is treated as a hex value. If the number otherwise begins with a leading zero (0) it is treated as octal. Otherwise, the value is treated as decimal.


a

auto detect; valid for input only, and only if the input is not provided at stdin.


d

decimal; this and the following formats are only valid on output. They generate one line of output for the respective memory section, forming a comma-separated list of the values. This can be particularly useful for subsequent processing, like for fuse bit settings.


h

hexadecimal; each value will get the string 0x prepended.


o

octal; each value will get a 0 prepended unless it is less than 8 in which case it gets no prefix.


b

binary; each value will get the string 0b prepended.


The default is to use auto detection for input files, and raw binary format for output files.


Note that if filename contains a colon, the format field is no longer optional since the filename part following the colon would otherwise be misinterpreted as format.


As an abbreviation, the form -U filename is equivalent to specifying -U flash:w:filename:a. This will only work if filename does not have a colon in it. 

[링크 : http://www.nongnu.org/avrdude/user-manual/avrdude_4.html]

[링크 : http://www.ladyada.net/learn/avr/avrdude.html]


생각해보니.. 양산용으로 avrdude를 이용해서

초기에 fuse bit 설정 -> 리부팅 -> 빠른 속도로 굽기 이런식으로 

해두고 옵션파일을 ini에 저장하도록 해서 fuse bit나 mcu 종류별로 관리하도록 하면

편할 거 같은데 avrdude용 gui front end 한번 작성해볼까..

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avrdude 실행 안됨  (0) 2017.11.18
keil bootloader example - avr/atmel  (0) 2017.11.17
USBasp 설치  (0) 2017.11.13
avr 저전압 감지  (0) 2017.08.11
avr bod(Brown out Detect)  (0) 2017.08.11
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 11. 13. 14:54

아래 링크에서 zadig를 받아서 실행하면 아래와 같이 뜨는데

[링크 : http://zadig.akeo.ie/] 드라이버


USBasp 를 찾아서 (USB ID 16C0 05DC)

드라이버를 WinUSB 에서 libusbk로 바꾼후 install driver를 하면 된다..(꽤나 삽질했네 -_-)


WinDriver로 깔면 아래와 같이 에러가 발생하면서 장치를 못 찾는다

C:\win32_executable>avrdude -cusbasp -Pusb -pm128 -v


avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch


         System wide configuration file is "C:\win32_executable\avrdude.conf"


         Using Port                    : usb

         Using Programmer              : usbasp

avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'


avrdude done.  Thank you.


libusbk로 깔고 나서 해결 -_-

C:\win32_executable>avrdude -cusbasp -Pusb -pm128 -v


avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch


         System wide configuration file is "C:\win32_executable\avrdude.conf"


         Using Port                    : usb

         Using Programmer              : usbasp

         AVR Part                      : ATmega128

         Chip Erase delay              : 9000 us

         PAGEL                         : PD7

         BS2                           : PA0

         RESET disposition             : dedicated

         RETRY pulse                   : SCK

         serial program mode           : yes

         parallel program mode         : yes

         Timeout                       : 200

         StabDelay                     : 100

         CmdexeDelay                   : 25

         SyncLoops                     : 32

         ByteDelay                     : 0

         PollIndex                     : 3

         PollValue                     : 0x53

         Memory Detail                 :


                                  Block Poll               Page                       Polled

           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

           eeprom         4    12    64    0 no       4096    8      0  9000  9000 0xff 0xff

           flash         33     6   128    0 yes    131072  256    512  4500  4500 0xff 0xff

           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00

           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00


         Programmer Type : usbasp

         Description     : USBasp, http://www.fischl.de/usbasp/


avrdude: auto set sck period (because given equals null)

avrdude: warning: cannot set sck period. please check for usbasp firmware update.

avrdude: error: program enable: target doesn't answer. 1

avrdude: initialization failed, rc=-1

         Double check connections and try again, or use -F to override

         this check.



avrdude done.  Thank you.

[링크 : http://www.fischl.de/usbasp/]

[링크 : http://download.savannah.gnu.org/releases/avrdude/] avrdude

[링크 : https://rlogiacco.wordpress.com/2016/09/01/usbasp-windows-10/]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

keil bootloader example - avr/atmel  (0) 2017.11.17
avrdude -U 옵션  (0) 2017.11.13
avr 저전압 감지  (0) 2017.08.11
avr bod(Brown out Detect)  (0) 2017.08.11
avr pwm 관련  (0) 2017.04.19
Posted by 구차니
embeded/FPGA - ALTERA2017. 11. 9. 13:35

단순하게 보면.. VHDL이나 베릴로그로 짠걸 RTL이라고도 표현한다는데..

먼지 감이 안오네..


[링크 : https://en.wikipedia.org/wiki/Register-transfer_level]

[링크 : http://aboutmadlife.blogspot.com/2014/11/what-is-rtl.html]

'embeded > FPGA - ALTERA' 카테고리의 다른 글

de0-nano / nios2  (0) 2017.12.06
microblaze (xilinx) Nios II (altera)  (0) 2017.12.05
Cyclone IV,V (terasic de0-nano)  (0) 2017.12.05
xilinx USB cable 드럽게 비싸네  (0) 2017.12.05
EPCS, EPCQ  (0) 2017.12.03
Posted by 구차니
embeded/FPGA - XILINX2017. 11. 9. 08:55

가입하면 볼 수 있고

IE 에서만 보이지 크롬에서는 안보이네.. ㅠㅠ 플래시 예외해줘야 하나?

예외처리 해주니 잘 나오네

망할 플래시


[링크 : http://www.e4ds.com/webinar_detail.asp?idx=379]

[링크 : http://www.e4ds.com/webinar_detail.asp?idx=389]


zynq ultrascale+ .... 엄청 비싸 보이는구만?


[링크 : https://www.xilinx.com/products/silicon-devices/soc.html]

[링크 : https://www.xilinx.com/products/silicon-devices/soc/zynq-ultrascale-mpsoc.html]


2495$ 엌ㅋㅋ

[링크 : https://www.xilinx.com/products/boards-and-kits/device-family/nav-zynq-ultrascale-mpsoc.html]

'embeded > FPGA - XILINX' 카테고리의 다른 글

xilinx bitstram ecryption  (0) 2018.01.23
xilinx artix-7 프로젝트 빌드해봄  (0) 2018.01.07
xilinx vivado / ISE 라이센스 관련  (0) 2017.12.19
digilent Arty A7  (0) 2017.12.10
xilinx Bitstram Length와 Logic cell  (0) 2017.12.08
Posted by 구차니
embeded/raspberry pi2017. 11. 8. 08:24

piwall은 2015년 부터 보아오던건데

소스까진 공개되도 구성이 어떻게 된다 라는 그런게 잘 안보여서 찾다보니..


결론은.. rpi + hdmi 모니터 + ethernet

마스터 장치 혹은 라즈베리에서 ffmpeg을 통해서 동영상 스트리밍 해주고

슬레이브(tile) 들은 그걸 받아서 단순하게 omxplayer를 통해 재생해주는 식으로 보인다.

Installing the software

If the master is not a Raspberry Pi then just install ffmpeg or avconv on your machine. 

[링크 : http://www.piwall.co.uk/information/installation]

    [링크 : http://www.piwall.co.uk/information/6-features-and-benefits]


그런 이유로 piwall은 동영상을 틀 수 밖에 없고

네트워크로 보여줄 부분만 crop 하는 식으로 보내서 자유롭게 설정이 가능하지만

(토막낸 여러개를 비정형적으로 라던가)

동영상이 아니면 불가능하고, 하나의 동영상만 재생이 가능하는 식의 제한이 있는 것으로 보인다

(그런데 핵융합로 같은건 하나가 아닌거 같았는데..)


그걸 뛰어넘기 위해 다른 회사가 먼가를 하는데

대충 내용만 보여서.. HDMI over Ethernet 기술을 통해 어쩌구 하는데

HDbitT 라는 프로토콜을 통해 랜으로 HDMI 데이터를 쏘고

[링크 : http://www.hdbitt.org/what-is-hdbitt.html]


받는 쪽은 어떻게 한다는건진 좀 이해를 못함..

What you need

Firstly, you need to get a few things in order for your video wall to work and to avoid messing up your network. Here is the list of required hardware:

  • A Yodeck player for each screen of the video wall
  • Another Yodeck player (as “Master”) that will play back the actual content
  • An HDMI-to-IP video streamer – we recommend Lenkeng LKV373A (sender only, costs about $36)
  • A Network router – no special specs, just having a LAN and a WAN port will do
  • One Network switch to connect all of the above 

구성으로 봐서는.. HDMI to IP video streamer 라고 하니

rpi의 HDMI 출력을 HDMI to IP video streamer로 넣고

slave yodeck player들은 HDbitT 프로토콜이 broadcast로 전송되니

그걸 받아서 재생해야 할 위치들만 자르고 키워서 보여준다 라는 개념인가?


[링크 : https://www.yodeck.com/news/video-wall-support/]

[링크 : https://www.yodeck.com/news/video-wall-using-raspberry-pi/]

    [링크 : http://www.lenkeng.net/Index/detail/id/149]

'embeded > raspberry pi' 카테고리의 다른 글

블투 동글이 비싸!  (0) 2018.02.17
라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
rpi dual spi lcd  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
Posted by 구차니
embeded/raspberry pi2017. 11. 8. 07:59

닌텐도 3ds xl 보고는 리눅스에서 듀얼 모니터 + 듀얼 터치로 해서 가능할까?

하는 마음에 찾아보는데 은근 자료가 없다.


rpi spi는 2개 선택가능하다는데 

The Raspberry Pi is equipped with one SPI bus that has 2 chip selects. 

[링크 : https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md]


chip select만 잘해주고, 리셋만 해주면 이론적으론 가능하니 어딘가 있지 않을까 싶은데 은근 없네?

Unfortunately, there is no schematic, however wiring is pretty simple:


LCD0      - RPi

SDO(MISO) - MISO/GPIO9, pin21 (common)

LED       - 5V through 1k resistor, pin 2 (common)

SCK       - CLK/GPIO11, pin23 (common)

SDI(MOSI) - MOSI/GPIO10, pin19 (common)

D/C       - GPIO24, pin18

RESET     - GPIO25, pin22

CS        - CE0/GPIO8, pin24

GND       - GND, pin 6 (common)

VCC       - 3.3V, pin 1 (common)


LCD1      - RPi

SDO(MISO) - MISO/GPIO9, pin21 (common)

LED       - 5V through 1k resistor, pin 2 (common)

SCK       - CLK/GPIO11, pin23 (common)

SDI(MOSI) - MOSI/GPIO10, pin19 (common)

D/C       - GPIO18, pin12

RESET     - GPIO23, pin16

CS        - CE1/GPIO7, pin26

GND       - GND, pin 6 (common)

VCC       - 3.3V, pin 1 (common) 

[링크 : https://youtu.be/wxJpWRPKe-g]


x-input을 이용해서 모니터 별로 입력 장치를 할당하면

터치 모니터 두개를 해도 문제 없다고 한다.

[링크 : https://askubuntu.com/questions/51445/how-do-i-calibrate-a-touchscreen-on-a-dual-monitor-system]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
piwall / yodeck  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
어엌.. 라즈베리 gedit 이쁜데?  (0) 2017.09.16
Posted by 구차니
embeded2017. 10. 30. 08:51

FTDI 칩셋은 일단 비싸서 잘 못 쓰고 (싼게 5천원 선)


Prolific PL2303은 시중에 풀린게 PL2303-HX라서(싼건 2천원 선) 업자가 칩셋까지 알고 파는게 아닌데다

윈도우 8 이상에서는 사용중지 되었고 (홈페이지 보니 위조칩인듯?)

개조드라이버 써서 쓰면 먼가 불안정해서 win10에서 쓰기 힘든 문제가 있는데

[링크 : http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41]


CH340 이라는 솔루션이 4천원대로 조금비싸지만 WHQL 인증으로 win8 이상은 기본설치가 된다고 한다.

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A813570269]


사서 꽂아만 보다보니. 안정성은 모르겠네..


아무튼 CH340 이거.. win7에서는 드라이버 깔아줘야 한다.

win10에서는 바로 CH340 이라고 인식되고 깔린다.





[링크 : http://www.wch.cn/download/CH341SER_ZIP.html]



+ 2017.10.31

기존의 prolific이나 ftdi 보다 나은게..

사용중에 확 뽑아 버려도 뽑힌걸 잘 인식해서 putty가 튕긴다. 이 점은 좋은듯?

(최악의 경우 다른 칩셋은 OS가 뻗는 경우도...)


+

gnd 연결안하면 신호를 못 받는 경우도 있다.

대신 gnd 연결하면 usb 제거시 인식 안하고 다른 것들 처럼 안 튕김.. 접지가 문제인가?



+

2018.01.11

쓸일이 있어서 꽂아보니 인식을 못하네 -_-

[  183.443734] usb 1-1.4: Product: USB2.0-Serial

[  183.444729] usb 1-1.4: can't set config #1, error -32

[  183.523097] usb 1-1.4: USB disconnect, device number 15

[  183.820540] usb 1-1.4: new full-speed USB device number 16 using dwc_otg

[  183.953830] usb 1-1.4: New USB device found, idVendor=1a86, idProduct=7523

[  183.953846] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0


'embeded' 카테고리의 다른 글

avr과 8051 DMIPS?  (0) 2018.01.26
프로그램 영역(code) 변수 저장하기  (0) 2018.01.15
nuvoton cortex-m0 ISD9160 LDROM  (0) 2017.10.17
DSO Nano 리뷰 찾아보니..  (0) 2017.10.16
프로세서별 연산량 벤치마크(float)  (0) 2017.04.19
Posted by 구차니