:::: MENU ::::
Browsing posts in: Development

System Workbench for STM32

System Workbench for STM32를 설치하는 방법은 2가지이다. 인스톨 프로그램으로 설치하는 방법과 기존에 설치되어 있는 이클립스에 설치하는 방법이 있다.

인스톨 프로그램

  • System Workbench for STM32를 링크에서 다운로드 한다.
  • 다운로드 받은 바이너리 파일의  퍼미션을 수정후 파일을 실행한다.

chmod 755 install_sw4stm32.run then ./install_sw4stm32.run

문제는 이렇게 설치를 하다가 다음과 같은 에러메시지가 나오고 더 이상 진행이 되지 않는다.

이클립스에서 추가하는 방법

  • 이클립스에서“Help >> Install New Software”를 선택
  • http://ac6-tools.com/Eclipse-updates/org.openstm32.system-workbench.update-site-v2를 입력하고, 이름은 System Workbench for STM32 – Bare Machine edition으로 한다.

  • 인스톨 전에 다음과 같이 맥의 게이트키퍼를 disable후 설치를 하고, 설치후 enable한다.

#To disable
sudo spctl –master-disable
#To enable
sudo spctl –master-enable

시작하기

  • File -> New -> Project… -> C/C++ -> C Project
  • 프로젝트 이름을 정하고, 프로젝트 타입은 AC6 STM32 MCU project를 선택한다.

  • 다음 스텝에서 프로그래밍을 할 보드를 선택한다.
  •  StdPeriph 또는 Cube Hal을 사용할 수 있다.

기타

참고


Inkscape 듀얼모니터 문제

맥용 Inkscape를 듀얼모니터에서 사용하면 프로그램이 각각의 모니터에서 사라진다. 문제의 원인은 Xquartz의 버그라고 하는데, 미션컨트롤에서 “각각의 Spaces가 있는 디스플레이” 설정을 해제하고 재부팅하면 된다.


LCD 타입별 특징

Display Type TN LCD HTN LCD STN LCD FSTN LCD
Advantage cheapest cheaper a big  view angle have all the advantage of STN
A wide range of applications a wiser view angle than TN Diversity of display mode a better background color
easy to produce easy to produce It can realize multichannel drive and large amount of displayed information
best effect in display Black and white
Disadvantage a small view angle a small view angle a few more manufacturing process have all the disadvantage of STN
simple display mode ordinary display effect a high requirement for raw material a higher cost than STN
low contrast ratio low contrast ratio a high requirement for manufacturing process and equipment
The liquid crystal molecules twist angle 900 1100 2100-2550 2100-2550
contrast ratio acceptable good better best
Bios statics-1/16 1/8-1/16 1/16 above 1/64 above
Display positive white background and black letter white background and black letter yellow and green background and black letter (yellow and green  film) white background and black letter
negative black background and white letter black background and white letter blue background and white letter (blue film) black background and white letter
price cheapest cheaper cheap high


출처:  
https://www.displaybly.com/lcd-news/the-comparison-of-tn-htn-stn-fstn-lcd/

 


TMC2100 모터드라이버

TMC2100 스텝 모터드라이버는 다음과 같은 특징이 있다. 특히 stealthChop이라는 기능으로 모터의 소음을 줄여준다.

FEATURES AND BENEFITS

  • 2-phase stepper motors up to 2.0A coil current (2.5A peak) Standalone Driver
  • Step/Dir Interface with microstep interpolation microPlyerTM
  • Voltage Range 4.75… 46V DC
  • Highest Resolution 256 microsteps per full step
  • stealthChopTM for extremely quiet operation and smooth motion
  • spreadCycleTM highly dynamic motor control chopper Integrated Current Sense Option
  • Standstill Current Reduction
  • Full Protection & Diagnostics (two outputs)
  • Small Size 5x6mm2 QFN36 package or TQFP48 package

모터의 전류제한을 위한 설정

Formulas for calculating the values:

Irms = (Vref * 1.77A) / 2.5V

Irms = Vref * 0.71

Imax = 1.41 * Irms

Vref = (Irms * 2.5V) / 1.77A

Vref = Irms * 1.41

Vref = Imax

Example: A voltage of 1.0V at the VREF pin sets the motor current to 0,71A Irms / 1A Imax.

Vref = (Irms * 2.5V) / 1.77A

1V = (0,71A * 2.5V) / 1.77A

주의사항

모듈의 경우 제조사마다 연결이 조금씩 다를 수있으니 제조사의 가이드를 확인해야 함

관련자료



AC 전원

교류용 전선(3선)의 극성

접지선(EARTH) 

중립선(NEUTRAL) –

전력선(LIVE)        +

퓨즈는 전력선(LIVE)에 연결한다.

Hi-link사의 AC/DC 컨버터 모듈

데이터 시트에 AC연결이 어떻게 되는지 안나와 있는데, 위쪽이 N(Neutral)이고 아래핀이 L(Live)이다.

어떤 블로거의 이 모듈과 관련해서 테스트한 자료1 – Conducted emission fail 됨. 그래서 이후에 테스트한 자료 <= 결론은 싼 중국 파워제품을 무턱대로 사용하면 인증에서 골치아픔. 🙁

 



중국산 FTDI 보드 개조

Silab기반의 Serial to USB보드는 문제가 있어서 FTDI 기반의 보드를 구매하려다 보니, Sparkfun사의 보드는 18,000원이나 한다. 그래서 디바이스 마트에서 구매한 4,000원 짜리 중국산 보드.   뒷면에 점퍼로 3.3V로 변환이 가능하다고 해서, 당연히 TXD 시그널도 3.3V 라고 생각을 했는데, 5V 레벨이다. ㅠㅠ

그냥 USB로부터 5V 입력을 VDDIO(#4)에 같이 연결하고 3V3OUT(#17)를 출력에 연결을 해놨는데, 칩을 떼고 VDDIO에 연결된 5V패턴을 자르고 3V3OUT을 연결하면 시그널 레벨들도 3.3V가 된다.



맥 OS X에서 Mail 초기화

맥 OS X에서 Mail 초기화 – Mail 이 시작하자마자 다운되는 경우 필요하다.

  • 시스템환경설정 > 인터넷 계정에서 사용하는 이메일을 잠시 비활성화
  • (CMD + SHIFT + G) ~/Library/Mail 폴더를 삭제
  • ~/Library/Preferences/com.apple.mail-shared.plist 삭제
  • ~/Library/Containers/com.apple.mail 폴더 삭제
  • 터미널에서 프로퍼티리스트 캐시를 초기화

    killall -SIGTERM cfprefsd

  • Mail을 재시동 후 계정 활성화

Pages:12345678...24