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 구차니

머 관행적/타성적으로 아빠는 돈 벌고 엄마는 집에서 밥차려주고라는 걸 그리긴 해왔는데


사회가 변화하니 엄마도 일하는 걸 그려라! 라고 하는 주장에는 문제가 없지만

사회가 요구하고 보여지는 성역활과 (맞벌이로 인한..)

전통적인 성역활의 충돌은 (가부장제 등)

별개의 문제로 봐야 하는게 아닐까 싶다.


하지만. 사람의 인식 자체가 편의를 위해

기본값이라는 이름의 "편견"을 지니고 이로 인해 첫인상이 사람에게 주는 영항을 무시 못하니까

고쳐 나가는게 좋긴 하겠지만, 그럼에도 불구하고 그렇게 인식/인지 자체가 구성된 것을

그렇게 손쉽게 뜯어 고치는게 옳을까? 라는 생각이 든다.


'아빠는 돈 벌고 엄마는 놀러다니고'..영유아 학습지 속 성차별

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

Posted by 구차니
Microsoft/Windows2017. 11. 21. 09:48

회사 출근해서 2주전에 구매한 녀석 이제 확인하려고 했더니

허...COEM 이라 메인보드에 박힌 녀석이니... CPU 교체도 안됨

(pci-ex x4 슬롯이 없어서 메인보드 바꾸면 라이센스 날아감..)


2주 지나서 불량 아니면 교환/환불 불가

컴퓨존 제품을 보니 죄다 pci-ex x8 + pci-ex x1 2개 이런식 구성이라

다른 메인보드 바꿔줄수도 없고 결론은 무리! ㅠㅠ


아무튼 멘탈 와사사사삭 ㅠㅠ


1. CPU를 교체해도 정품인증이 풀리나요?(메인보드 변경없음)

라이선스 종류에 따라 다릅니다. OEM, COEM은 메인보드나 CPU 하나라도 교체 하시면 사용권이 소멸 되고 RETAIL 은 상관없습니다. 윈도우즈10 업그레이드 전 이전 운영체제인 Windows 7 또는 8.1의 라이선스에 종류에 따라 인증 유무가 결정된다고 하네요. 자신의 pc가 어떤 라이선스 방식을 사용하는지 확인할 수 있습니다. 

[링크 : https://answers.microsoft.com/.../cpu교체시/985952a2-1e98-4ddd-931c-3d9430633649]


+

근데 동일 CPU로 바꾸면 상관없으려나?

그거 관련 검색은 안나오네. 극단적이지만 cpu 불량으로(오버 등으로)

동일 메인보드에 CPU도 동일 모델로 하면 cpu 시리얼은 달라지지만 같으니까 상관없는지 정보가 없다 ㅠㅠ

Posted by 구차니

upis, 더블하트, 스펙트라 호환...

[링크 : http://blog.naver.com/sk57533/220240476394]


와이드 젖병끼리는 호환된다고..

[링크 : http://blog.naver.com/2005_01_08/220960018399]

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

스펙트라 젖병소독기 사용리뷰  (2) 2018.01.07
락티나 유축기 대여품 사용  (0) 2017.11.23
유축기 대여 관련  (0) 2017.11.20
완전 방전..  (0) 2017.11.16
유모차 시어터(?) 끝버전 ㅋㅋ  (0) 2017.10.24
Posted by 구차니

여러업체꺼 써보고 리뷰..

일단 메델라가 1위라서 그런지 평이 좋은 편..

각시밀 쓰는데 아내는 젖꼭지가 아프다고 갈라지고 그래서 고민중

[링크 : http://joyforever0.blog.me/50177467683]


남양주에서는 2015년 즈음에 위생문제로 중단이라고 하고(전화해봄)

[링크 : http://www.nyj.go.kr/main/183?action=read&action-value=7fd0cc497b13a9560580f4ccdda7ccaa]


렌트는 일단 소모품은 구매해야 하는데.. 메델라는 비싸다 ㅠㅠ

[링크 : http://mothersmilk.co.kr/index.html]

[링크 : https://kkh0346.cafe24.com/index.html] 여기 서비스 하는거 맞나?



어.. 다시 보니 medela 홈페이지 자체가 "맥진모유수유클럽" 이었네?

여기서 지점별로 유료로 대여 서비스를 하고 있는 거였나 보네..

(다르게 표현하면, 기기는 염가에 대여하고 소모품 팔아서 이득을 내는 쪽)

[링크 : http://www.medela.co.kr/] 1위

[링크 : http://www.spectrababy.com/] 2위

[링크 : http://www.gaksimil.com/main/index] 등수 모름...

Posted by 구차니
개소리 왈왈2017. 11. 19. 20:39

똑같이 튜브에 담겨 있고

비슷하게 생겨 먹은 녀석인데

하나는 연고고

하나는 크림이라 찾아봄


부테나 크림

에스로반 연고



연고와 크림은 무슨 차이가 있나요? 

연고의 기제는 친유성(기름성분)이어서 피부에 좀 더 오래 머물러 건조감 방지, 윤활작용이 있습니다. 크림의 기제는 친수(水)성이어서 피부에 잘 스며들어 접히는 등의 부위에 적용하기 적합합니다.

[링크 : http://anam.kumc.or.kr/dept/main/bbsView.do?CID=1072&cPage=1&MENU_ID=003010...D]

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

네이트온 불안정  (0) 2018.03.12
와 신천지  (0) 2018.02.03
사마귀 수술  (0) 2017.11.17
color gamut  (0) 2017.10.05
그냥 살아만 있는 것  (0) 2017.09.14
Posted by 구차니
파일방2017. 11. 18. 15:52

Xsplit

얘는 비디오 믹서

[링크 : https://www.xsplit.com/ko/]


OBS(Open Broadcast Software) studio

얘는 크로마키

[링크 : https://obsproject.com/]



[링크 : https://tgd.kr/41202]

'파일방' 카테고리의 다른 글

photoscape X for win10/free  (2) 2018.04.27
파일이름 일괄 변경하기  (0) 2017.12.15
wysiwyg editor  (0) 2017.09.21
win32 시리얼 후킹/모니터링 프로그램  (0) 2017.09.18
롯데마트 CM송 -_-a  (2) 2017.08.21
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 구차니
개소리 왈왈2017. 11. 17. 17:07

3주(21)일 이내에 와서 하면 보험처리 안되니 나중에 오라고 하네

그리고, 마취가 정말 꽤 아픈데

레이저로 제거하는 자체는 정말 어떠한 감각도 느껴지지 않는다.

냄새로만 오징어 굽는 냄새가 솔솔 날뿐


아무튼, 일주일간 물 닿게 하지 말고

매일매일 드레싱 하라는데, 정작 항생제는 이틀치 밖에 안주네?

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

와 신천지  (0) 2018.02.03
연고 크림 차이?  (0) 2017.11.19
color gamut  (0) 2017.10.05
그냥 살아만 있는 것  (0) 2017.09.14
넷피스24 메일..진짜일까?  (0) 2017.09.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 구차니