embeded/Cortex-M4 Ti2016. 11. 2. 19:19

32.768kHz를 달았는데

10분에 10초 빨라짐..

도대체 머가 문제일까...


//*****************************************************************************

//

// Macros defining oscillator configuration options for the

// HibernateClockConfig() function.

//

//*****************************************************************************

#define HIBERNATE_OSC_LFIOSC    0x00080000

#define HIBERNATE_OSC_LOWDRIVE  0x00000000

#define HIBERNATE_OSC_HIGHDRIVE 0x00020000

#define HIBERNATE_OSC_DISABLE   0x00010000

#define HIBERNATE_OUT_WRSTALL   0x20000000

#define HIBERNATE_OUT_SYSCLK    0x00000001

#define HIBERNATE_OUT_ALT1CLK   0x00000002 


드라이버 상에서

LOWDRIVER / HIGHDRIVER는 12pF / 24pF 관련설정이고 기본은 12pF(LOW)

OSC_DISABLE은 아래의 OSCBYP 쪽인데.. 설정을 하던 안하던 동일하다..

설정문제일까.. 클럭문제일까..


일단 32.7인데 33k 정도 잡히는거 봐서 빠른게 당연한건가 싶기도 하고

오실로스코프 한계일지도 모르지만 클럭이 날뛰면서 60k로도 잡히고 1M급으로도 날뛰어서

머가 문제인지... ㅠㅠ



+

RTC trim으로 조절하라는데 끄응...

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


어떻게 보면.. 0x7FFF는 32,767이고 

32.768kHz 에서 카운터로 사용하는 녀석이라 빠른 만큼 조절해주면

1초를 맞출수는 있는데.. 그래도 어느정도는 하드웨어로 맞추는게 낫지 않으려나...


extern void HibernateRTCTrimSet(uint32_t ui32Trim); 




계산을 해보니 1분 = 60초에 1초가 더 빨라지는 식이니

32768hz * 60 = 1분

32768/60 = 546.1333 이니

대충.. 32222 = 0x7DDE로 trim을 설정하면 시간이 맞아 지려나?

미네랄 여전히 똑같이 빠르네 -_-

(2분 확인)


미친척 더해보자? ㅋㅋ

0x8222


---

0xFFFE 로 했는데도 속도에 차이가 없는걸 보면 다른 설정을 건드려야

trim이 적용 되는 걸..지도?

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

tm4c 하이버네이트 소스...  (0) 2016.12.20
tm4c rtc trim...  (0) 2016.11.23
tm4c hibernate module 초기화 관련..  (0) 2016.11.01
32.768kHz 크리스탈과 1Mohm 저항 유무에 따른 파형 차이  (0) 2016.10.28
tm4c FIFO 길이  (0) 2016.10.26
Posted by 구차니
embeded/Cortex-M4 Ti2016. 11. 1. 11:04

예전에는 다른거(timer라던가 uart라던가) 초기화 다 하고

hibernate 모듈을 해주어도 부팅이 문제가 없었는데

tm4c 되면서 그런가.. 안켜짐!


아무튼 초기화 루틴중 hibernate 쪽을 가장 앞으로 놓고

SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);

if(HibernateIsActive())

{

    HibernateIntClear(HibernateIntStatus(0));

return;


이렇게 처리해주니 일단 부팅은 정상적으로 잘 진행된다.

(몇번 껏다 켜야 겨우 부팅이 되었음)

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

tm4c rtc trim...  (0) 2016.11.23
tm4c rtc 빨라...  (0) 2016.11.02
32.768kHz 크리스탈과 1Mohm 저항 유무에 따른 파형 차이  (0) 2016.10.28
tm4c FIFO 길이  (0) 2016.10.26
tm4c hibernate module oscillator 관련  (0) 2016.10.26
Posted by 구차니
embeded/raspberry pi2016. 10. 31. 16:38

예전에 eMMC 어댑터를 이용해서 rpi에 연결했을때

깜박이지도 않았는데

SD.CARD.DET 핀 자체가 탐지되지 않으면 SD가 없는걸로 간주하고 배째는게 아닐까 싶은데

(그러니까 핀인식이 안되면 SD 읽을 시도조차 하지 않음?)

나중에 머라도 덧대서 한번 다시 시도는 해봐야 할 듯?



[링크 : https://www.raspberrypi.org/.../Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf]

[링크 : http://electronics.stackexchange.com/.../how-can-i-hardware-protect-a-microsd-from-writing-to]


Check the ACT LED to determine if the Pi is booting

The ACT LED is essential in determining if the Pi can actually read from the card. It indicates that it can read from the card by blinking, If the ACT LED doesn't blink quickly in an irregular pattern for at least twenty seconds, this indicates that the Pi cannot read from the SD card, and that booting is not taking place. By the way, It doesn't matter if the ACT LED initially starts on or off. It is only the blinking of the ACT LED that is significant. A dim ACT LED also has no significance beyond the fact that you are using a B. From the model B+ onwards, the LED is driven differently, and it wont be dim.


With no SD card inserted, note how the ACT LED behaves (hint, it won't blink!). Now insert a programmed card and that behaviour should change. If it does not, this indicates that Pi cannot see the necessary files on the SD card. For a demonstration, watch this video of a model B: the ACT LED is the one on the left-hand side. Note that on later models the ACT LED will start on on power up, instead as off like the model B. 


With working firmware, Meaning the PI can read files from the card, the ACT LED will flicker intermittently for 20-30 seconds. The LED is actually driven by the software read from the card using a dedicated GPIO pin turning it on whenever the card is read. It can also blink in a regular "Morse" pattern, which usually indicates an error condition. See the Additional Information section at the end of this post for details.  


[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=58151]

Posted by 구차니
embeded/odroid2016. 10. 29. 22:47

저번에 X 시작 제대로 안된거

아무래도.. 용량 부족해서

패키지 깔다가 오류 난듯 -_-


원인은.. 언어팩 설치 하면서 gimp랑 libreoffice쪽 언어팩이 용량 왕창 잡아 먹은거..

'embeded > odroid' 카테고리의 다른 글

odroid fb Driver  (0) 2016.11.03
odroid u3 - mali 400  (0) 2016.11.02
X 시작을 못하는 이유..2  (0) 2016.10.25
X 시작을 못하는 이유..?  (0) 2016.10.24
odroid에서 blender 재시도.. 실패 -_-  (0) 2016.10.23
Posted by 구차니
embeded/Cortex-M4 Ti2016. 10. 28. 09:23

4.19MHz에서는 1Mohm 문제 없었는데

32.768kHz에서는 아래와 같이 파형이 완전 차이가 난다.


흰색(ref)가 32.768k + 1Mohm

노란색이 32.768k + 저항없음



결론 : lm3s1607 -> tm4c123 마이그레이션 중 hibernate module 클럭에서 저항은 빠져야 함


+

lm3s1607 데이터 시트상 회로

X1에 평행하게 RL이 존재하는데 저항 용량은 알아서?


tm4c1231e6pm 데이터 시트상 회로

X1에 평행한 RL이 사라졌다.

LM3S devices support a 4.194304-MHz crystal. This crystal is not supported for TM4C devices,
however a 32.768-kHz crystal is supported. In addition, an external load resistor is not required
  

[원본 : spma049a.pdf]

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

tm4c rtc 빨라...  (0) 2016.11.02
tm4c hibernate module 초기화 관련..  (0) 2016.11.01
tm4c FIFO 길이  (0) 2016.10.26
tm4c hibernate module oscillator 관련  (0) 2016.10.26
tm4c 비교표  (0) 2016.10.26
Posted by 구차니
embeded/Cortex-M4 Ti2016. 10. 26. 18:10

기본값은

RX 0x02

TX 0x10


라이브러리에서 확인하면

#define UART_FIFO_TX4_8         0x00000002  // Transmit interrupt at 1/2 Full

#define UART_FIFO_RX4_8         0x00000010  // Receive interrupt at 1/2 Full


1/2이 차면 한번씩 인터럽트를 발생시키게 되어 있다.

Posted by 구차니
embeded/Cortex-M4 Ti2016. 10. 26. 17:17




main clk

0~2.6V


hibernate clk

0.5~1.2v


문제 없어야 하는거 아닌가?

~HIB도 계속 high도 도대체 머가 문제지.. ㅠㅠ


+


[링크 : http://www.ti.com/lit/an/spma065/spma065.pdf]


the problem is resolved. the 1Mresistor is just the problem. thanks very much! regarding this problem, your answer is the best answer i have see in this forum.

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


+

아마도.. lm3s1607에서 4.1MHz 클럭을 쓰면서 1Mohm 저항을 달아서 섰는데

그걸 그대로 사용해서 그런걸지도?


+

2016.11.01

1M 저항 달아서 발진이 억눌리면서 안된 문제였음 -_-

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

32.768kHz 크리스탈과 1Mohm 저항 유무에 따른 파형 차이  (0) 2016.10.28
tm4c FIFO 길이  (0) 2016.10.26
tm4c 비교표  (0) 2016.10.26
tm4c HibernateEnableExpClk() 차이점  (0) 2016.10.22
tm4c ..어라? hibernate...  (0) 2016.10.20
Posted by 구차니
embeded/Cortex-M4 Ti2016. 10. 26. 14:29

희한하네..


암튼 ek-tm4c123 쪽 보다는 

dk-tm4c123 쪽이 더 비싸고 좋고(어?)

예제도 많은듯

[링크 : https://github.com/yuvadm/tiva-c/tree/master/boards/dk-tm4c123g]

[링크 : https://github.com/yuvadm/tiva-c]




[링크 : http://www.ti.com/lit/sg/spmt285d/spmt285d.pdf]

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

tm4c FIFO 길이  (0) 2016.10.26
tm4c hibernate module oscillator 관련  (0) 2016.10.26
tm4c HibernateEnableExpClk() 차이점  (0) 2016.10.22
tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c123 rtc hibernate module  (0) 2016.09.28
Posted by 구차니
embeded/odroid2016. 10. 25. 21:24

root로 로그인 하니 되서

/root/.Xauthority 를 /home/odroid 에 복사하니 되긴하는데..

기본 작업관리자라던가 전부 뜨지 않고


openbox로 구동되긴 했는지

휠 클릭은 작업공간 변경(workspace)

우클릭에서는 각종 프로그램들을 구동할 수는 있게 되어 있다.


도대체 머가 문제지.. ㅠㅠ



+

lxsession을 실행하니 원래 비슷하게 나오네..

어디선가 세션을 실행못해서 그런가?


Xwin -> openbox -> lxsession

X윈도 -> 윈도매니저 -> 세션매니저

순서로 구동이 되는건가?

'embeded > odroid' 카테고리의 다른 글

odroid u3 - mali 400  (0) 2016.11.02
odroid eMMC 8GB 작구나...  (0) 2016.10.29
X 시작을 못하는 이유..?  (0) 2016.10.24
odroid에서 blender 재시도.. 실패 -_-  (0) 2016.10.23
odorid u3 emmc+sd 설치 순서  (0) 2016.10.22
Posted by 구차니
embeded/odroid2016. 10. 24. 09:20

DDX 교체하고 나서 odroid로 암호까지 쳐도

autologin 되어있어도 못들어 가는 문제가 생기는 바람에

밀어야 하나 고쳐봐야 하나 고민..


고치는걸로 오기 발동중인데.. 확 밀어 버려? -_-


.Xauthority in the home folder of the user odroid?

[링크 : http://forum.odroid.com/viewtopic.php?f=8&t=4250]

Posted by 구차니