'embeded'에 해당되는 글 1341건

  1. 2021.02.02 STM32F103 관련 용어
  2. 2021.01.31 rpi pico
  3. 2021.01.18 bazel on rpi
  4. 2021.01.13 gcc 버전 차이?
  5. 2021.01.13 vfp
  6. 2021.01.12 NEON 강제활성화?
  7. 2021.01.11 arm-none-eabi는 -pthread 미지원
  8. 2021.01.11 라즈베리에 GUI 환경 설치하기
  9. 2021.01.08 i.mx6quad용 gcc 옵션
  10. 2021.01.08 orange pi r1+
embeded/Cortex-M3 STM2021. 2. 2. 15:31

IWDG - Independent Watchdog

Note: The RTC, the IWDG, and the corresponding clock sources are not stopped by entering Stop or Standby mode.

 

 

클럭관련

High/Low speed External/Internal

HSE = high-speed external clock signal

HSI = high-speed internal clock signal

LSI = low-speed internal clock signal

LSE = low-speed external clock signal

 

APB1은 36MHz 클럭 최대, APB2는 72MHz 최대

다만 타이머쪽은 둘다 72MHz를 넣을 수 있다.

 

USART 번호가 없어서 모르겠지만 4.5Mbit/s 혹은 2.25Mbit/s 까지 설정이 가능하다는데

아니 USART를 Mbps 급으로 쓰는데가 있긴 한건가? ㄷㄷ

 

아 맞다.. 있긴 있었지.. -_-

2021/01/08 - [embeded] - orange pi r1+

 

 

'embeded > Cortex-M3 STM' 카테고리의 다른 글

STM32CubeIDE / HAL register callbacks  (0) 2021.02.03
STM32CubeIDE 주의사항(?)  (0) 2021.02.02
CMSIS for stm32  (0) 2018.02.12
stm32 DMA 관련글들  (0) 2017.12.11
cmsis printf  (0) 2017.01.10
Posted by 구차니
embeded/raspberry pi2021. 1. 31. 15:18

dual cortex-m0

아두이노 나노를 노리는 타겟이것 같긴한데.. python 까지 되니 넘사벽이라고 해야하려나?

그러고 보니 아두이노도 cortex-m0가 있던거 같은데 아두이노 python도 찾아봐야겠다.

 

[링크 : http://www.raspberrypi.org/products/raspberry-pi-pico/]

[링크 : http://www.raspberrypi.org/products/raspberry-pi-pico/specifications/]

 

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 서포트 규격  (0) 2021.04.20
fbset geometry, timing 수치  (0) 2021.02.19
bazel on rpi  (0) 2021.01.18
라즈베리에 GUI 환경 설치하기  (0) 2021.01.11
rpi youtube  (0) 2020.12.24
Posted by 구차니
embeded/raspberry pi2021. 1. 18. 15:25

아따.. tensorflow 하기 힘들다 -_-

[링크 : https://github.com/koenvervloesem/bazel-on-arm]

 

nano scripts/bootstrap/compile.sh
run "${JAVAC}" -classpath "${classpath}" -sourcepath "${sourcepath}" \
      -d "${output}/classes" -source "$JAVA_VERSION" -target "$JAVA_VERSION" \
      -encoding UTF-8 "@${paramfile}" -J-Xmx500M

[링크 : https://gist.github.com/EKami/9869ae6347f68c592c5b5cd181a3b205#3-build-bazel]

 

해도 안되네

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space

 

 

+

-Xms 가 그나마 Heap 전체에 대해서 설정이 가능한 옵션이 맞긴하나보네..

[링크 : https://www.samsungsds.com/kr/insights/1232761_4627.html]

 

 

+

구글에서 쓰니.. 텐서플로우도 구글꺼니 이래저래 물리는건가?

bazel 생성하는데 javac를 쓰다니 먼가 사악한(?) 놈이다 ㅠㅠ

[링크 : https://bazel.build/]

'embeded > raspberry pi' 카테고리의 다른 글

fbset geometry, timing 수치  (0) 2021.02.19
rpi pico  (0) 2021.01.31
라즈베리에 GUI 환경 설치하기  (0) 2021.01.11
rpi youtube  (0) 2020.12.24
mpicc on rpi  (0) 2020.12.15
Posted by 구차니
embeded/ARM2021. 1. 13. 14:47

라즈베리파이 내장(?) arm-arm 컴파일러

$ gcc --version 
gcc (Raspbian 8.3.0-6+rpi1) 8.3.0 
Copyright (C) 2018 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[링크 : https://gcc.gnu.org/gcc-8/]

 

i.mx6 용 크로스컴파일러

$ arm-linux-gcc --version 
arm-linux-gcc.br_real (Buildroot 2018.02.5-gee769a6) 6.4.0 
Copyright (C) 2017 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[링크 : https://gcc.gnu.org/gcc-6/]

 

시기적으로 크게 차이나는건 아니지만 상위 버전이 6.x와 8.x 차이로 커서 arm neon 관련 지원이 다른걸려나?

[링크 : https://gcc.gnu.org/releases.html]

 

+

gcc changelog 를 뒤져도 아직 발견은 못했는데...

6.x 와 8.x 의 NEON 지원에 무슨 차이가 있는게 아닐까 혹은 vertorized 관련 옵션 구현에 차이가 있나 생각이 든다.

i.mx6용으로 빌드하니 neon 옵션줘도 성능 향상이 없었는데

라즈베리용으로 빌드하니 i.mx6에서 돌릴때 성능 향상이 발생했다.

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

ARMv9 SVE2  (0) 2021.05.15
cortex-a9 하드웨어 Divider가 없어?!  (0) 2021.03.18
vfp  (0) 2021.01.13
NEON 강제활성화?  (0) 2021.01.12
softfp와 hardfp  (0) 2020.12.10
Posted by 구차니
embeded/ARM2021. 1. 13. 13:48

vfp

뒤에 붙는 D32 D16 F16은 다시 자세히 보니

Double / Float 와 몇개의 레지스터를 가지나 숫자를 표현한 듯?

 

VFPv1
Obsolete
VFPv2
An optional extension to the ARM instruction set in the ARMv5TE, ARMv5TEJ and ARMv6 architectures. VFPv2 has 16 64bit FPU registers.
VFPv3 or VFPv3-D32
Implemented on most Cortex-A8 and A9 ARMv7 processors. It is backwards compatible with VFPv2, except that it cannot trap floating-point exceptions. VFPv3 has 32 64bit FPU registers as standard, adds VCVT instructions to convert between scalar, float and double, adds immediate mode to VMOV such that constants can be loaded into FPU registers.
VFPv3-D16
As above, but with only 16 64-bit FPU registers. Implemented on Cortex-R4 and R5 processors and the Tegra 2 (Cortex-A9).
VFPv3-F16
Uncommon; it supports IEEE754-2008 half-precision (16-bit) floating point as a storage format.
VFPv4 or VFPv4-D32
Implemented on Cortex-A12 and A15 ARMv7 processors, Cortex-A7 optionally has VFPv4-D32 in the case of an FPU with Neon.[110] VFPv4 has 32 64-bit FPU registers as standard, adds both half-precision support as a storage format and fused multiply-accumulate instructions to the features of VFPv3.
VFPv4-D16
As above, but it has only 16 64-bit FPU registers. Implemented on Cortex-A5 and A7 processors in the case of an FPU without Neon.[110]
VFPv5-D16-M
Implemented on Cortex-M7 when single and double-precision floating-point core option exists.

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

[링크 : https://wiki.debian.org/ArmHardFloatPort/VfpComparison]

 

+

 

[링크 : https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/arm-cortex-a-processors-and-gcc-command-lines]

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

cortex-a9 하드웨어 Divider가 없어?!  (0) 2021.03.18
gcc 버전 차이?  (0) 2021.01.13
NEON 강제활성화?  (0) 2021.01.12
softfp와 hardfp  (0) 2020.12.10
ampere altra  (0) 2020.11.23
Posted by 구차니
embeded/ARM2021. 1. 12. 17:09

 

[리읔: https://developer.arm.com/documentation/dui0472/i/compiler-coding-practices/enabling-neon-and-fpu-for-bare-metal]

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

gcc 버전 차이?  (0) 2021.01.13
vfp  (0) 2021.01.13
softfp와 hardfp  (0) 2020.12.10
ampere altra  (0) 2020.11.23
arm cl  (0) 2020.10.29
Posted by 구차니
embeded2021. 1. 11. 16:07

uboot 용으로 받아둔거긴 하지만 pthread를 미지원 한다는건

리눅스 커널 상에서만 pthread를 지원하기 때문인가?

그래서 uboot 에서는 커널에서 도는게 아니기에 pthread를 지원할 수 없는 건가?

 

[링크 : https://nancom.tistory.com/177]

'embeded' 카테고리의 다른 글

i.mx6quad용 gcc 옵션  (0) 2021.01.08
orange pi r1+  (0) 2021.01.08
i.mx6 solo 비디오 성능 문제?  (0) 2020.10.19
간만에 부품 지름  (2) 2020.03.04
solidrun CuBox-i2w  (0) 2019.03.10
Posted by 구차니
embeded/raspberry pi2021. 1. 11. 15:27

예전에 쓴건진 모르겠지만.. 다시 씀 ㅋ

 

저용량 버전으로 설치하면

gdm이 없는데 lightdm 을 설치하고 리부팅 하면 GUI로 로그인하게 된다.

 

[링크 : https://blog.naver.com/hujinone22/220292580078]

 

+

2021.01.11

먼가 설정문제인지 모르겠는데 로그인이 안된다 ㅠㅠ

'embeded > raspberry pi' 카테고리의 다른 글

rpi pico  (0) 2021.01.31
bazel on rpi  (0) 2021.01.18
rpi youtube  (0) 2020.12.24
mpicc on rpi  (0) 2020.12.15
node-red UI bashboard  (0) 2020.12.08
Posted by 구차니
embeded2021. 1. 8. 17:59

아래의 옵션을 추천해서 적용해 보았는데

-mthumb -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mvectorize-with-neon-quad -mfloat-abi=softfp

[링크 : https://stackoverflow.com/questions/14962447/gcc-options-for-a-freescale-imx6q-arm-processor]

[링크 : https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html]

 

에러가 나서 mfloat-abi=softfp 에서 hard로 변경

In file included from /usr/include/features.h:448,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:25,
                 from include/darknet.h:12,
                 from ./src/activations.h:3,
                 from ./src/gemm.h:3,
                 from ./src/gemm.c:1:
/usr/include/arm-linux-gnueabihf/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
           ^~~~~~~~~~~~~~~~~~
compilation terminated.

[링크 : https://stackoverflow.com/questions/49139125/fatal-error-gnu-stubs-soft-h-no-such-file-or-directory]

 

아무튼 빌드는 되지만 아래와 같은 경고가 뜬다. march와 mcpu가 충돌난다라.. 어느걸 살려야 할까?

cc1: warning: switch -mcpu=cortex-a9 conflicts with -march=armv7-a switch

 

 

+

2021.01.12

[링크 : https://developer.arm.com/documentation/dui0472/i/using-the-neon-vectorizing-compiler/generating-neon-instructions-from-c-or-c---code]

 

'embeded' 카테고리의 다른 글

arm-none-eabi는 -pthread 미지원  (0) 2021.01.11
orange pi r1+  (0) 2021.01.08
i.mx6 solo 비디오 성능 문제?  (0) 2020.10.19
간만에 부품 지름  (2) 2020.03.04
solidrun CuBox-i2w  (0) 2019.03.10
Posted by 구차니
embeded2021. 1. 8. 11:23

시리얼이 안된다고 해서 비싼 장난감으로 찍어보니

655ns .. 헐?

역으로 계산해보면 대충 1.6Mbps 나오는 것 같아서 찾아보는데

RK3328은 기본값이 1.5Mbps(1500000n8)로 셋팅된다고 하는데 동일 보드도 아니고

해당 보드 홈페이지 쥐잡듯이 뒤져도 기본값 이야기가 안나온다 -_-

 

아무튼 3.3V TTL은 맞고 115kbps가 아니라 1.5Mbps 라는게 문제인데

이거 되는 TTL-USB가 얼마나 있으려나?

 

 

[링크 : http://www.orangepi.org/Orange%20Pi%20R1%20Plus/]

[링크 : http://wiki.t-firefly.com/ROC-RK3328-CC/debug.html]

[링크 : https://forum.radxa.com/t/serial-debug-and-1500000-bps-issue/1390/7]

[링크 : https://forum.pine64.org/showthread.php?tid=7379]

'embeded' 카테고리의 다른 글

arm-none-eabi는 -pthread 미지원  (0) 2021.01.11
i.mx6quad용 gcc 옵션  (0) 2021.01.08
i.mx6 solo 비디오 성능 문제?  (0) 2020.10.19
간만에 부품 지름  (2) 2020.03.04
solidrun CuBox-i2w  (0) 2019.03.10
Posted by 구차니