블로그 이미지
안녕1999

카테고리

전체 (3067)
자바스크립트 (20)
안드로이드 (14)
WebGL (4)
변비 (17)
정치,경제 (35)
C언어,ARM (162)
컴퓨터(PC, Note Book, 윈.. (41)
전자회로, PCB (27)
유머,안웃긴,GIF,동영상 (118)
국부론60 (71)
모듈(PCB) (3)
건강 (2)
FreeCAD (25)
PADS (43)
퇴직,퇴사,구직,취업 활동 (3)
C# (86)
엑셀 (8)
워드 (0)
LabView (6)
레고 (30)
FPGA (0)
Total
Today
Yesterday

달력

« » 2024.12
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

공지사항

최근에 올라온 글

STMicroelectronics flash loader를 배치파일(도스명령)로 실행할 수 있다.

마우스로 이리저리 클릭하는것보다는 간편하나, HEX파일명, 포트번호가 고정되어 있어야한다.


STMicroelectronics UART Flash Loader command line v2.5.0 


 Usage : 


 STMFlashLoader.exe [options] [Agrument][[options] [Agrument]...] 


  -?                   (Show this help) 

  -c                   (Establish connection to the COM port) 

     --pn  port_nb     : e.g: 1, 2 ..., default 1 

     --br  baud_rate   : e.g: 115200, 57600 ..., default 57600 

     --db  data_bits   : value in {5,6,7,8} ..., default 8 

     --pr  parity      : value in {NONE,ODD,EVEN} ..., default EVEN 

     --sb  stop_bits   : value in {1,1.5,2} ..., default 1 

     --ec  echo        : value OFF or ECHO or LISTEN ..., default is OFF 

     --co  control     : Enable or Disable RTS and DTR outputs control  

                       : value OFF or ON ..., default is OFF 

     --to  time_out    : (ms) e.g 1000, 2000, 3000 ..., default 5000 

  -Rts                 (set Rts line to Hi, Lo)

     --State           : State in {Hi, Lo} 

  -Dtr                 (Set Rts line to Hi, Lo)

     --State           : State in {Hi, Lo}

  -i  device_name      (e.g STM32_Low-density_16K, [See the Map directory]) 

  -e                   (erase flash pages

     --all all pages   : erase all pages

     --sec number_of_pages_group pages_group_codes : erase specified group pages 

  -u                   (Upload flash contents to a .bin, .hex or .s19 file )

     --fn  file_name   : full path name of the file 

  -d                   (Download the content of a file into MCU flash) 

     --a   address(hex): start @ in hex ; ignored if it is not a binary file 

     --fn  file_name   : full path name (.bin, .hex or .s19 file) 

     --v               : verify after download 

     --o               : optimize; removes FFs data 

  -r                   (Run the flash code at the specified address 

     --a address(hex)  : address in hexadecimal) 

  -p        (Enable or Disable protections) 

     --ewp  : enable write protection for sector codes (e.g 1,2,etc.) 

     --dwp  : disable write protection 

     --drp  : disable read protection 

     --erp  : enable read protection, all arguments following this one will fail 

  -o              (Get or Set STM32F1x option bytes: use -d command for others!) 

     --get --fn file_name : get option bytes from the device 

                            and write it in the specified file 

     --set --fn file_name : load option bytes from the specified file 

                            and write it to the device 

     --set --vals --OPB hex_val : set the specified option byte; OPB in: User, 

                                  RDP, Data0, Data1, WRP0, WRP1, WRP2, WRP3 

 



파일명, 포트번호는 적당히 변경해야함.

echo COM1 = --pn 1   COM3 = --pn 3


"C:\Program Files\STMicroelectronics\Software\Flash Loader Demonstrator\STMFlashLoader.exe" ^

 -c --pn 3 --br 115200 --db 8 --pr EVEN --sb 1 --ec OFF --to 10000 --co ON -Dtr --Hi -Rts --Lo ^

 -i STM32F2_1024K -d --fn "D:\xxxxxxxxxxxxxxx\main.hex" --v -Dtr --Lo -Rts --Hi --Lo







Posted by 안녕1999
, |

=================

Compiler version

=================

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (releas

e) [ARM/embedded-4_9-branch revision 221220]

Copyright (C) 2014 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.


macro.h:182:16: error: two or more data types in declaration specifiers

 #define int8_t signed char

                ^ 



Posted by 안녕1999
, |

gcc컴파일러에서, 스타트업 파일을 찾아야하는데,


Libraries\CMSIS\Device\ST\STM32F2xx\Source\Templates 폴더에

arm, gcc_ride7, iar, TASKING, TrueSTUDIO 등이 있다.


arm=MDK-ARM toolchain

gcc_ride7 = RIDE7 toolchain



arm\startup_stm32f2xx.s 으로 선택 (MDK-ARM toolchain)하니, 에러발생.

gcc_ride7\startup_stm32f2xx.s 으로하니, OK.



Ride7 - Raisonance Microcontroller

www.raisonance.com/ride7.html
이 페이지 번역하기
Ride7 is a free software tool that is available with Raisonance RKit C toolsets, RLink ... Includes RLink debugger programmer, license dongle, GCC compiler,.

ARM GCC Compiler - Raisonance Microcontroller

www.raisonance.com/arm-compiler.html
이 페이지 번역하기
The GCC compiler is seamlessly integrated into the Ride7 integrated development environment to facilitate starting projects and multiple builds/rebuilds of your ...

[PDF]Ride7 for ARM - Elmicro.com

https://elmicro.com/files/raisonance/gettingstartedarm_ride7.pdf
이 페이지 번역하기
Ride7 for ARM comes with the following tools from RAISONANCE: • Ride7: the ... everything under the “arm-gcc” and “GNU” subdirectories of Ride7 installation ...

STMicroelectronics ARM Cortex-M3 STM32F103

hayanmail.com/jsy/index.html?board=cizblog_zboard3&ln_mode...id...
Ride7GCC가 내장된 IDE * Codesourcery Lite는 Cortex-M4의 하드웨어 FPU를 지원하지 않는다고 함 https://launchpad.net/gcc-arm-embedded: 하드웨어 FPU ...

Ride7 and GCC compiler - stm32circle.com

www.stm32circle.com/resources/tools.php
이 페이지 번역하기
Your STM32 Primer comes with a complete Ride7 software toolset that allows you to: modify and compile applications; program the STM32Fxxx on the Primer ...


Posted by 안녕1999
, |

armv6-m, ARMv7E-M

카테고리 없음 / 2016. 8. 30. 23:30

ARMv6-M : m0, m0+m m1

ARMv7-M : m3

ARMv7E-M : m4, m7


armv7-ar : armv7-a(aplication), armv7-r(real time)

Posted by 안녕1999
, |

최근에 달린 댓글

글 보관함