embeded/Cortex-M4 Ti2016. 9. 28. 20:00

lm3s에서 tm4c로 바꾸었는데.. (아니 바꾸는 중?)

웬지 모르게 uart1의 RX가 5byte buffer(fifo)를 가지고 덜 뱉어내는 기분?


분명히


UARTFIFODisable(UART0_BASE);

UARTFIFODisable(UART1_BASE);


을 해줘서 둘다 fifo를 껐는데도 왜이러지? ㅠㅠ


[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/323362]

[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/264861]


[링크 : http://www.deyisupport.com/.../an01296-Differences-Between-TM4C123x-and-TM4C129x-MCUs.pdf]

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c123 rtc hibernate module  (0) 2016.09.28
lm3s tm4c 시스템 클럭 차이점  (0) 2016.09.24
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
tm4c 에서 8 MHz 클럭으로 adc 작동...  (0) 2016.09.24
Posted by 구차니

안되는건가? ㅠㅠ

기본적으로 hostname에서 조회하는거라

저번에 wins 통해서 resolve한게 정상이 아니었던거 같기도 하고.

테스트 해볼게 많네.. ㅠㅠ


[링크 : http://wiki.maemo.org/Distcc?pagewanted=all]

[링크 : https://forums.gentoo.org/viewtopic-t-130450-start-0.html]

[링크 : http://distcc.samba.narkive.com/NKokMWjn/discovering-the-distccd-hosts-on-a-dhcp-lan]

[링크 : https://debian-administration.org/article/112/Speed_up_compiling_software_with_distcc]


+

dhcp통해 hostname 업데이트 하기

이게 편리해보이네

[링크 : http://askubuntu.com/questions/104918/how-to-get-the-hostname-from-a-dhcp-server]

Posted by 구차니

영 안되네..

odroid 커널 빌드 해보려고 하는데

CC=distcc make -j8 해도

make -j8 CC=distcc 해도 안되서

이래저래 찾아 보는중


$ time make -j8 CC=distcc

kernel compilation using single machine :

real 50m55.498s

user 71m4.967s

sys 6m55.030s


kernel compilation using three machines:

real 28m21.146s

user 17m32.862s

sys 4m35.537s 


[링크 : http://linuxdeveloper.blogspot.com/2012/03/distributed-kernel-compilation-in.html]

[링크 : http://askubuntu.com/.../how-to-speed-up-compilation-of-ubuntu-apps-make-cmake-gcc]

[링크 : http://pointclouds.org/documentation/advanced/distcc.php]


역시.. 진리(?)의 makefile 수정 뿐인가?

Edit the Makefile 

Fire up your favourite editor and load /usr/src/linux/Makefile. Find this section:

Code:

# Include the make variables (CC, etc...) 


And change "gcc" in the CC line to 

Code:


CC              = $(CROSS_COMPILE)distcc 


Append this line to the section: 

Code:


DISTCC_HOSTS=slave1 slave2 slave3 ... slaveN  


[링크 : https://forums.gentoo.org/viewtopic-p-7189488.html]

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

distcc zeroconf 와 avahi  (0) 2016.10.17
distcc 를 DHCP 에서..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
distcc 크로스 컴파일/커널 빌드 관련  (0) 2016.09.13
distcc 로 valgrind-3.6.1 컴파일 실패?  (0) 2014.12.12
Posted by 구차니
embeded/raspberry pi2016. 9. 26. 20:55

커널 빌드 할 때

arm-linux-gnueabihf-gcc

이런걸 볼 수 있는데

ARM용 리눅스에 있는 gcc 패키지랑은 차이가 있을까?


$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10) 


~/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin $ arm-linux-gnueabihf-gcc -v

Using built-in specs.

COLLECT_GCC=arm-linux-gnueabihf-gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10)


비교해보니 차이가 없다?!?

즉, 우분투에 들은 gcc는 커널빌드 하는데 써도 문제 없는 동일한 녀석이다 라는거?


[링크 : http://stackoverflow.com/.../arm-gcc-toolchain-as-arm-elf-or-arm-none-eabi-what-is-the-difference]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=99127]

[링크 : http://elinux.org/Raspberry_Pi_Kernel_Compilation]

[링크 : http://elinux.org/RPi_Linaro_GCC_Compilation]


+

~/tools/arm-bcm2708 $ ll

total 20

drwxr-xr-x 7 pi pi 4096 Sep 26 23:28 arm-bcm2708hardfp-linux-gnueabi

drwxr-xr-x 7 pi pi 4096 Sep 26 23:26 arm-bcm2708-linux-gnueabi

drwxr-xr-x 8 pi pi 4096 Sep 26 23:28 arm-rpi-4.9.3-linux-gnueabihf

drwxr-xr-x 7 pi pi 4096 Sep 26 23:30 gcc-linaro-arm-linux-gnueabihf-raspbian

drwxr-xr-x 7 pi pi 4096 Sep 26 23:29 gcc-linaro-arm-linux-gnueabihf-raspbian-x64 


일단은 다 x86/x86-64용 크로스컴파일러네..

$ file arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc

arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=e2801f48a84144e2b40d6083baac317057662b3c, stripped


$ file arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc

arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=7b34f10a2af2e57b673121196522143f50868487, stripped


$ file arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=e0df943f126fe91df411d950dd26652126a1e06d, stripped

$ file gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped

 $ file gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=04d49c97b46fb3d971e496e6721137f6bab56342, stripped

얘는 라즈베리 gcc 패키지

 $ file /usr/bin/gcc-4.9

/usr/bin/gcc-4.9: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=f711b7c3e25f3a887b6908bb3ef6d1cefba92340, stripped



Posted by 구차니

한번 오랫만에 시간이 나서 마음먹고 해보려는데

에러! ㅠㅠ

다음번에 재시도를 해봐야지..


$ distcc-pump --startup

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option


$ distcc-pump make -j8 CC=ditscc

__________Using distcc-pump from /usr/bin

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option 


어디서 저 옵션이 들어가나 뒤져보니 목록에 옵션으로 넣는거였네..

conf 파일에는 불가능하려나? zeroconf로 받아온다거나?


DISTCC_HOSTS=",cpp" 

[링크: https://wiki.archlinux.org/index.php/Distcc]


+ 2016-09-26

[링크 : https://forums.gentoo.org/...?sid=0b18b85927db5c54fa1bff47ee829527]

Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 12:19

lm3s1607 메인 클럭 트리

tm4c1231 메인 클럭 트리

PLL 이후 DIV400 이라는 녀석이 추가 되었다.


데이터 시트 상으로는 2_5 이런식으로 되어 있는 클럭으로 설정하면 80MHz를 쓸 수 있을 것 같은데

막상 설정해보니 부팅이 안되네.. 다른 무언가가 있는건가?

(아니면 새로뜬 보드가 잘못 설계되었거나?)


런치패드에서 빌드가 되어서 돌아가는 거 봐서는..

회로 레벨에서 무언가 차이가 있는 건가?

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

tm4c123 rtc hibernate module  (0) 2016.09.28
tm4c uart fifo/buffer 문제  (0) 2016.09.28
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
tm4c 에서 8 MHz 클럭으로 adc 작동...  (0) 2016.09.24
lm3s tm4c 내장 온도센서 범위  (0) 2016.09.24
Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 11:39

데이터 시트 / 메뉴얼? 상에는 일단 16MHz 크리스탈과

하이버네이트 모듈을 위한 32.768KHz 의 크리스탈이 달려있는데


16MHz 짜리는 검은색 반도체 같이 생겨 먹었고

32.768KHz 짜리는 일반적인 깡통형이다.


걍.. 16MHz 짜리 쓸까.. 속편하게..


[링크 : http://www.ti.com/lit/ug/spmu296/spmu296.pdf]






Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 11:27

와.. 손 데는 줄 -_-


코드는 작동하는데

원인불명으로 온도가 80~90도 정도 까지 3~4초 내로 치솟는다..


근데.. 얘가 ADC 떄문인지 먼진 모르겠는데..

아무튼 ADC 자체가 작동하는 걸봐서는..

System Clock 이라서 OSC와는 별개로 작동하는게 아닌가 싶다.


뜨거워지는 원인을 찾아야겠네...




2016/05/20 - [embeded/Cortex-M4 Ti] - TM4C1231E6PM ADC


'embeded > Cortex-M4 Ti' 카테고리의 다른 글

lm3s tm4c 시스템 클럭 차이점  (0) 2016.09.24
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
lm3s tm4c 내장 온도센서 범위  (0) 2016.09.24
lm3s -> tm4c i2c 마이그레이션... 망할!  (2) 2016.09.22
tm4c tivaware 버전관련  (0) 2016.09.01
Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 11:08

lm3s

2.7V ~ 0.3V

-55C ~ 125C



tm4c

2.5V ~ 0.833V

-40C ~ 85C




예제 소스상에서도

tm4c

    uint32_t pui32ADC0Value[1];

    ui32TempValueC = ((1475 * 1023) - (2250 * pui32ADC0Value[0])) / 10230;


lm3s

    unsigned long ulADC0_Value[1];

    ulTemp_ValueC = ((1475 * 1023) - (2250 * ulADC0_Value[0])) / 10230;



하지만 수식 자체는 변화하지 않았는데


인터넷 뒤져보니 온도가 마이너스로 나온다고 해서 비슷한 유형 발견!

[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/427716]

[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/277685]


아무튼 실험적으로

ulTemp_ValueC = (1475 - (75 * 33 * ulADC0_Value) / 4096) / 10;

이렇게 쓰긴 해보는데 맞나 모르겠네...



일단 열풍기로 50도 맞추고 측정해 보니까 대충은 맞게 나오는 듯

Posted by 구차니

ccd는 영상을 받는 방법이라고 한다면

cmos는 반도체 공정이긴 하지만 좀 심하게 많이 다른 의미로 쓰는 듯?


아무튼 ccd는 데이터가 아날로그로 나오지만 글로벌 셔터개념이라면

cmos는 셀 별로 adc가 달려서 디지털로 나온다. 하지만 기본은 롤링 셔터. 글로벌 셔터도 가능



[링크 : http://petapixel.com/2016/05/10/infographic-difference-cmos-ccd-sensors/]

[링크 : http://www.diffen.com/difference/CCD_vs_CMOS]

[링크 : https://www.teledynedalsa.com/imaging/knowledge-center/appnotes/ccd-vs-cmos/]

'이론 관련 > 사진 광학 관련' 카테고리의 다른 글

ir corrected lens ld low dispersion  (0) 2017.07.04
EF 마운트 별 플랜지 차이(?)  (0) 2017.04.03
크롭바디 EF / EF-S 렌즈 화각 테스트  (0) 2016.08.29
back focus  (0) 2016.07.22
eos m 다중노출 미지원  (0) 2016.05.26
Posted by 구차니