embeded/Cortex-M7 STM2021. 7. 2. 16:47

 

1.1 GDB server start-up options
--ext-memory-loaders
Provides the list of the available external memory loaders.

-el <file_path>, --extload <file_path>
Selects a custom external memory-loader.

--external-init
Runs Init() from external memory loader after reset to make external memory accessible without need for
application software to set up the access to memory-mapped external memory.
[This option requires that option -el <file_path>, --extload <file_path> is used also.]


2.3.1 Loading program to external memory
When a program must be loaded to an external memory, the option --extload <file_path> must be used.
External memory loader files are delivered for most available STM32 Evaluation and Discovery boards containing
external memory. To list the available loader files, use the --ext-memory-loaders option.
The STM32CubeProgrammer software description user manual (UM2237) contains detailed information on how
to use external Flash loader programs and develop customized loaders for external memory. The user manual is
available from the STM32CubeProg webpage on www.st.com.

2.3.2 Memory read/write to external memory
To make external memory accessible for read and write by the debugger, use the --external-init option
together with external memory loader --extload <file_path> option. When --external-init is used the
Init() function in the external memory loader is run by the ST-LINK GDB server after reset. This makes
external memory accessible without any need for application software to set up the device for external memory
access. The external memory must be memory mapped and directly accessed because normal memory read/
write is used by gdb.
Note: When using the --external-init option with the ST-LINK GDB server, the stack required by the Init()
function is limited to 1024 bytes of stack instead of 400 bytes in ST-LINK GDB server v5.4.0.

[링크 : https://www.st.com/resource/en/user_manual/dm00613038-stm32cubeide-stlink-gdb-server-stmicroelectronics.pdf]

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

stm32f4 otg update bin file  (0) 2021.07.02
stm32cubeide generate bin  (0) 2021.07.02
TouchGFX on STM32F746G-DISCO  (4) 2021.07.02
st-link stm32 option bytes  (0) 2021.07.02
st-link util external module?  (0) 2021.07.02
Posted by 구차니
embeded/Cortex-M7 STM2021. 7. 2. 16:31

STM32F746NGHx_FLASH.ld

/* Specify the memory areas */
MEMORY
{
FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw)      : ORIGIN = 0x20000000, LENGTH = 320K
ITCMRAM (xrw)      : ORIGIN = 0x00000000, LENGTH = 16K
QSPI (rx)         : ORIGIN = 0x90000000, LENGTH = 16M
}

  .ARM.attributes 0 : { *(.ARM.attributes) }
  ExtFlashSection : { *(ExtFlashSection) } >QSPI
}

 

#include <touchgfx/hal/Config.hpp>

LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _control_center_button_pressed[] LOCATION_EXTFLASH_ATTRIBUTE = { // 191x191 RGB565 pixels.
// ...
};

 

#elif defined(__ARMCC_VERSION)
#define LOCATION_EXTFLASH_PRAGMA
#define LOCATION_EXTFLASH_ATTRIBUTE __attribute__ ((section ("ExtFlashSection"))) __attribute__ ((aligned(4)))

#elif defined __ICCARM__
#define LOCATION_EXTFLASH_PRAGMA _Pragma("location=\"ExtFlashSection\"")

 

내장 플래시

 

외부 QSPI 플래시

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

stm32cubeide generate bin  (0) 2021.07.02
stm32cubeide gdb external flash  (0) 2021.07.02
st-link stm32 option bytes  (0) 2021.07.02
st-link util external module?  (0) 2021.07.02
cortex-M7 우와.. -_-  (0) 2021.07.02
Posted by 구차니
embeded/Cortex-M7 STM2021. 7. 2. 15:23

 

 

 

RDP가 이곳에!?

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

stm32cubeide gdb external flash  (0) 2021.07.02
TouchGFX on STM32F746G-DISCO  (4) 2021.07.02
st-link util external module?  (0) 2021.07.02
cortex-M7 우와.. -_-  (0) 2021.07.02
new 장난감! STM32F746G-DISCO  (0) 2021.07.02
Posted by 구차니
embeded/Cortex-M7 STM2021. 7. 2. 15:22

 

 

 

 

 

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

stm32cubeide gdb external flash  (0) 2021.07.02
TouchGFX on STM32F746G-DISCO  (4) 2021.07.02
st-link stm32 option bytes  (0) 2021.07.02
cortex-M7 우와.. -_-  (0) 2021.07.02
new 장난감! STM32F746G-DISCO  (0) 2021.07.02
Posted by 구차니
embeded/Cortex-M3 STM2021. 7. 2. 11:07

AVR의 fuse bit 같은 녀석

 

Level 0: no read protection
Level 1: read protection enabled
Level 2: debug/chip read protection disabled

[링크 : https://www.st.com/resource/en/reference_manual/DM00031020-.pdf]

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

stm32 wdg 최대 설정시간  (0) 2021.08.09
stm32 RST pull-up reset fail  (0) 2021.08.02
stm32 uart echo  (0) 2021.02.04
STM32CubeIDE / HAL register callbacks  (0) 2021.02.03
STM32CubeIDE 주의사항(?)  (0) 2021.02.02
Posted by 구차니
embeded/Cortex-M7 STM2021. 7. 2. 11:04

DMIPS 값이 아주 넘사벽이네.. ㄷㄷ

L1 캐시의 유무도 클꺼고..

 

Characteristics
Performance Efficiency: 5.01 CoreMark/MHz* and 2.14/3.23 DMIPS/MHz**

[링크 : https://developer.arm.com/ip-products/processors/cortex-m/cortex-m7]

[링크 : https://yomi-tory.tistory.com/entry/그것을-알아보자-ARM-Cortex-M7]

 

Characteristics
Performance Efficiency: 3.42 CoreMark/MHz* and without FPU: 1.25 /1.52 /1.91 DMIPS/MHz**, with FPU: 1.27 /1.55 /1.95 DMIPS/MHz**

[링크 : https://developer.arm.com/ip-products/processors/cortex-m/cortex-m4]

[링크 : https://yomi-tory.tistory.com/entry/그것을-알아보자-ARM-Cortex-M4]

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

stm32cubeide gdb external flash  (0) 2021.07.02
TouchGFX on STM32F746G-DISCO  (4) 2021.07.02
st-link stm32 option bytes  (0) 2021.07.02
st-link util external module?  (0) 2021.07.02
new 장난감! STM32F746G-DISCO  (0) 2021.07.02
Posted by 구차니
embeded/Cortex-M7 STM2021. 7. 2. 10:50

와.. cortex-m7 이라는건 첨 들어보네

STM32F746NGH6 in TFBGA216 package
ARM®32-bit Cortex®-M7 + FPU + Chrom-ART Accelerator
216 MHz max CPU frequency
VDD from 1.7 V to 3.6 V
1024 KB Flash
320 KB SRAM
GPIOs (168) with external interrupt capability
12-bit ADCs with 24 channels (3)
12-bit DAC channels (2)
USART/UART (8)
I2C (4)
SPI (6)
Advanced-control Timer (2)
Low-power Timer (1)
General Purpose Timers (12)
Watchdog Timers (2)
CAN 2.0B active (2)
SAI (2)
USB 2.0 OTG HS
USB 2.0 OTG FS
Ethernet
SDMMC
Camera interface
Random Generator (TRNG for HW entropy)
LCD-TFT

[링크 : https://os.mbed.com/platforms/ST-Discovery-F746NG/]

[링크 : https://www.st.com/en/evaluation-tools/32f746gdiscovery.html]

[링크 : https://blog.naver.com/chandong83/220783693412] 2016년 글이니 나온지 꽤 된 녀석이구나..

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

stm32cubeide gdb external flash  (0) 2021.07.02
TouchGFX on STM32F746G-DISCO  (4) 2021.07.02
st-link stm32 option bytes  (0) 2021.07.02
st-link util external module?  (0) 2021.07.02
cortex-M7 우와.. -_-  (0) 2021.07.02
Posted by 구차니
embeded/raspberry pi2021. 7. 1. 17:34

GND에 빨간선이 연결되어있고

스위치의 반대편은 GPIO로 연결되어 있는데

GPIO에 pull up이 있어서 인지 스위치를 누르면 ground로 인식이 된다.

(아래 코드에서 4번째 라인 not을 지웠다가 파일 바꾼다고 dog 고생을...)

while True:
    # Check each pin
    for key_pin in key_pin_array:
        if not key_pin.value:  # Is it grounded?
            i = key_pin_array.index(key_pin)
            print("Pin #{} is grounded.".format(i))

            # Turn on the red LED
            led.value = True

            while not key_pin.value:
                pass  # Wait for it to be ungrounded!
            # "Type" the Keycode or string
            key = keys_pressed[i]  # Get the corresponding Keycode or string
            if isinstance(key, str):  # If it's a string...
                keyboard_layout.write(key)  # ...Print the string
            else:  # If it's not a string...
                keyboard.press(control_key, key)  # "Press"...
                keyboard.release_all()  # ..."Release"!

            # Turn off the red LED
            led.value = False

    time.sleep(0.01)

 

아무튼.. 원래 의도는 3V 전원에서 330옴 통해서 전류 제한해서 gpio로 3.3V가 들어가게 하는거였는데

멀 잘못했네.. 멀티메터로는 정상적으로 3.3V 나오던데 ㅠㅠ

 

[링크 : https://tutorial.cytron.io/.../keyboard-emulator-using-raspberry-pi-pico-maker-pi-pico-and-circuitpython/]

[링크 : https://circuitpython.readthedocs.io/projects/hid/en/latest/api.html]

 

 

+

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

rpi 2b pxe  (0) 2021.07.12
rpi pico c  (0) 2021.07.07
aarch, armv8 asimd build (neon)  (0) 2021.06.30
rpi 4b 32bit vs 64bit?  (0) 2021.06.30
rpi 4 32bit / 64bit cpuinfo  (0) 2021.06.30
Posted by 구차니

아부지 카메라 니콘 p900s 배터리랑 충전기 4달라! 외치셔서 대리 지름

아니.. 링크까지 찾을줄 아시면 이제 구매만 누르면 되는데!!!!!!!!

 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

블루투스 사운드 바 LP-S09 분해  (0) 2021.07.20
당근 무료나눔 받아옴  (0) 2021.07.20
지를까 말까 고민 중  (0) 2021.06.07
월 초 = 지름  (2) 2021.06.01
월 말  (2) 2021.05.31
Posted by 구차니

아따 빡세다 -_-

 

컴파일 하는데 libz.so.1이 없다고 하는데

아마도.. 64bit ubuntu라 32bit 용 libz가 없다고 배쨰는 듯

/home/minimonk/work/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1plus: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

$sudo apt-get install lib32z1

[링크 : https://damedame.tistory.com/entry/libzso1-파일을-찾을수-없을때]

 

std::is_trivially_copyable은 c++11 표준이라 gcc 5.x 이상부터 지원하기 때문이라고

In file included from /home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/frontend.h:30:0,
                 from /home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/ruy.h:23,
                 from ./tensorflow/lite/kernels/cpu_backend_gemm_ruy.h:21,
                 from ./tensorflow/lite/kernels/cpu_backend_gemm.h:25,
                 from ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:45,
                 from tensorflow/lite/kernels/audio_spectrogram.cc:24:
/home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/create_trmul_params.h: In function ‘void ruy::detail::FinalizeMulParams(const ruy::MulParams<AccumScalar, DstScalar>&, ruy::ChannelDimension, ruy::Ctx*, ruy::TrMulParams*)’:
/home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/create_trmul_params.h:388:17: error: ‘is_trivially_copyable’ is not a member of ‘std’
   static_assert(std::is_trivially_copyable<MulParamsType>::value, "");
                 ^
/home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/create_trmul_params.h:388:57: error: expected primary-expression before ‘>’ token
   static_assert(std::is_trivially_copyable<MulParamsType>::value, "");
                                                         ^
/home/minimonk/work/tensorflow/tensorflow/lite/tools/make/downloads/ruy/ruy/create_trmul_params.h:388:58: error: ‘::value’ has not been declared
   static_assert(std::is_trivially_copyable<MulParamsType>::value, "");
                                                          ^

[링크 : https://stackoverflow.com/questions/25123458/is-trivially-copyable-is-not-a-member-of-std]

 

예라이... -_-

$ arm-linux-gnueabihf-g++ --version
arm-linux-gnueabihf-g++ (crosstool-NG linaro-1.13.1-4.8-2014.01 - Linaro GCC 2013.11) 4.8.3 20140106 (prerelease)
Copyright (C) 2013 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.

 

$ sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

[링크 : https://blog.thinkbee.kr/linux/crosscompile-arm/]

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

tflite gpu openCL support build fail  (0) 2021.08.31
tf lite cmake  (0) 2021.08.27
tensorflow lite on rpi4 64bit  (0) 2021.06.30
tensorflow delegate  (0) 2021.06.30
tflite typed_tensor(), tensor()  (0) 2021.06.25
Posted by 구차니