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 구차니
개소리 왈왈/컴퓨터2017. 11. 12. 09:54


전에 있었던 문제가 또 발생한거네..

2014/07/05 - [개소리 왈왈/컴퓨터] - 크아아아앙!! 풀뱅크!!!



오기가 돋아서 찾아 보니..

M3 78T5663EH3-CF7 / K4T1G084QE

M3 78T5663QZ3-CF7 / K4T1G084QQ

Revision만 6세대(E)와 17세대(Q)로 차이가 난다.



[링크 : http://pdf1.alldatasheet.com/datasheet-pdf/view/347885/SAMSUNG/M378T5663EH3.html]

[링크 : http://pdf1.alldatasheet.com/datasheet-pdf/view/347884/SAMSUNG/M378T5663QZH3.html]


gangged / ungangged 로 해결은 되는데..

도대체 저 세대 차이는 머지?

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

intel 에게 힘든 2분기 째 인가?  (0) 2018.01.03
Intel Management Engine(ME) 취약점 관련  (0) 2017.11.28
으앙 컴퓨터 죽음 -_ㅠ  (0) 2017.11.11
주말에 노트북 때를 벗김  (0) 2017.07.17
잉여템 득템?  (0) 2017.04.16
Posted by 구차니
개소리 왈왈/컴퓨터2017. 11. 11. 21:40

하드 고장나서 못 켠지 년 단위가 되어가는 녀석..

오늘 켜보니

화면도 안나오고

먼가.. 삑 소리도 안나고.. 상태가 이상하다?!

ㅠㅠ


아.. 우울해 ㅠㅠ

Posted by 구차니
Programming/C Win32 MFC2017. 11. 10. 18:27

win10 에서는 바로 적용되는 hidpi의 적용과

win7에서는 최소한 로그아웃해야 하는 녀석이긴 하지만


아무튼 win32 에서도 dpi 변경시에 이벤트가 날아 온다는 거군..

다만 win32는 vs2012 이후에 적용이 되는 것 같은데


찾다보니 win7 대응으로 vs2010 이고

win8  이후에 대응을 위해 vs2012 출시 된 거 같으니

그런 지원 기능 차이가 생기는 걸려나?


그래서 vs2008이 vista 대응이라 개판인건가!?

(찾아보니. 비스타 지원용.. 그래서 그렇게 vs2008도 망작이었던 게냐...)

[링크 : https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#2008]


case WM_DPICHANGED

    // Find the button and resize it 

    HWND hWndButton = FindWindowEx(hWnd, NULL, NULL, NULL); 

    if (hWndButton != NULL) 

    { 

        UpdateButtonLayoutForDpi(hWndButton); 

    } 

}  

[링크 : https://msdn.microsoft.com/ko-kr/library/windows/desktop/dn312083(v=vs.85).aspx]


어? 지원범위로는 win7 에서는 해당 이벤트가 발생하지 않을테니..

초기 실행시 CreateWindow에서 

Minimum supported client Windows 8.1 [desktop apps only]


이 놈도.. win8 이상..

GetDpiForMonitor()

[링크 : https://msdn.microsoft.com/ko-kr/library/windows/desktop/dn280510(v=vs.85).aspx]


이 놈은 win10 이상.. -_-

GetDpiForWindow()

[링크 : https://msdn.microsoft.com/en-us/library/windows/desktop/mt748624(v=vs.85).aspx]


[링크 : https://msdn.microsoft.com/en-us/library/windows/desktop/mt843498(v=vs.85).aspx] win32

   [링크 : https://blogs.msdn.microsoft.com/vcblog/2010/03/11/mfc-applications-now-default-to-being-dpi-aware/]

[링크 : https://docs.microsoft.com/en-us/dotnet/framework/winforms/high-dpi-support-in-windows-forms] winform

[링크 : https://msdn.microsoft.com/ko-kr/library/windows/desktop/ee308410(v=vs.85).aspx] wpf


+

2017.11.13

GetDeviceCaps(hdcScreen, LOGPIXELSX);

GetDeviceCaps(hdcScreen, LOGPIXELSY); 

[링크 : https://stackoverflow.com/questions/12652835/getting-actual-screen-dpi-ppi-under-windows]


int GetDeviceCaps(

  _In_ HDC hdc,

  _In_ int nIndex

);


LOGPIXELSX

Number of pixels per logical inch along the screen width. In a system with multiple display monitors, this value is the same for all monitors.

LOGPIXELSY

Number of pixels per logical inch along the screen height. In a system with multiple display monitors, this value is the same for all monitors.


Minimum supported client

Windows 2000 Professional [desktop apps only] 

[링크 : https://msdn.microsoft.com/ko-kr/library/windows/desktop/dd144877(v=vs.85).aspx]


음.. win7 에서는 96dpi로 기본 설정된다고 하는데

변경하면 저게 다르게 나오려나?

[링크 : https://www.techrepublic.com/.../get-a-better-view-in-windows-7-by-adjusting-dpi-scaling/]

'Programming > C Win32 MFC' 카테고리의 다른 글

정체 불명의.. 메시지 WM_DEVMODECHANGE  (0) 2017.11.13
윈도우 ini 파일 사용하기  (0) 2017.11.13
cedit ctrl-a 단축키 사용하기  (0) 2017.11.08
mfc sleep 주의  (0) 2017.11.08
win32 usb class  (0) 2017.11.03
Posted by 구차니
개소리 왈왈/독서2017. 11. 10. 10:03

끌리는 책 하나와

읽어볼까 하던 책 하나


아래는 맨스플레인을 널리 퍼지게 한 책


페미니즘의 검은 오해들

[링크 : https://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788965641889]

[링크 : http://blog.aladin.co.kr/haesung/9031567] 리뷰가 끌리게 함


남자들은 자꾸 나를 가르치려 든다

[링크 : http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788936472634]

'개소리 왈왈 > 독서' 카테고리의 다른 글

책 - 졸혼시대  (0) 2017.11.15
책 - 남자들은 자꾸 나를 가르치려 든다  (0) 2017.11.13
책 - 경이감을 느끼는 아이로 키우기  (0) 2017.10.30
책 - 가장 멍청한 세대  (0) 2017.10.27
책 - 아빠행복수업  (0) 2017.10.26
Posted by 구차니

일단 제목과는 달리, 기존의 법은 유지한 채

승인을 득했을 시에는 야간비행, 시계외 비행을 허용한다 였네..

즉, 취미로 마음대로 야간에 날릴 수 있는건 아니란 점 ㅠㅠ


국토교통부는 10일부터 드론 규제 개선과 지원근거 마련 등 드론 산업 육성을 위한 제도를 시행한다고 9일 밝혔다.

드론의 야간 및 육안거리 밖 운행을 승인받기 위해서는 ▲ 드론의 성능과 제원 ▲ 조작 방법 ▲ 비행 계획서 ▲ 비상상황 매뉴얼 등 관련 서류를 국토부에 제출해야 한다.

[링크 : http://v.media.daum.net/v/20171109110113248]


강원 영월, 전남 고흥, 경남 고성, 충북 보은, 부산 영도, 대구 달성, 전북 전주에서 자유로운 비행을 허용한다. 야간비행은 물론이고 450m 상공으로 드론을 날릴 수 있는 것.

[링크 : http://www.newspim.com/news/view/20171018000231]

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 구차니
Programming/VHDL2017. 11. 9. 09:33

FPGA - Field-programmable gate array

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


CPLD - Complex Programmable Logic Device

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



여기 내용이 맞는진 모르겠지만..

CPLD(altera)는 로직을 굳혀서 별도의 외부 플래시가 필요없고

FPGA(xilinx)는 FPGA내 SRAM에 외부 플래시의 내용을 올리는 방식이라 외부 플래시기 필수인가?

(일단 artix-7나 kintex-7는 외부 플래시 필수이긴 하니..)

[링크 : http://cooa.tistory.com/entry/20048324430]


+

MAX V 라는 녀석인데

보드에 i2c / spi eeprom이 실장되지 않은 채 판매가 되고 있다.

CPLD 내부에 플래시가 들었거나 로직 게이트 자체를 바로 프로그래밍 하는 개념 인가?

별도의 외부 프로그램을 적재할 공간이 존재하지 않는 것이 xilinx와의 차이로 보인다.


[링크 : https://www.altera.com/.../manual/rm_maxv_cpld_dev_board.pdf]

    [링크 : https://www.altera.com/products/boards_and_kits/dev-kits/altera/kit-max-v.html]

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

VHDL 문법 공부중 1  (0) 2017.12.10
VHDL 문법 관련  (0) 2017.12.08
VHDL 문법  (0) 2017.12.07
xilinx fpga with vhdl verilog  (0) 2017.12.02
CPLD, FPGA  (0) 2009.12.17
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 구차니
Programming/C Win32 MFC2017. 11. 8. 17:34

음.. 그냥.. 기본 단축키가 아니었던건가 -ㅁ-?


[링크 : http://blog.naver.com/sjplus/220436689165]

'Programming > C Win32 MFC' 카테고리의 다른 글

윈도우 ini 파일 사용하기  (0) 2017.11.13
hidpi 지원 - winform wpf mfc  (2) 2017.11.10
mfc sleep 주의  (0) 2017.11.08
win32 usb class  (0) 2017.11.03
CEdit 내용 지우기와 메모리 사용량  (0) 2017.10.26
Posted by 구차니