ให้ CubeMX Gen Initial Code และ Comply ด้วย GNUToolChain ได้เปล่าครับ [STM32F1]

Started by TaoTao, February 19, 2017, 01:31:54 AM

Previous topic - Next topic

TaoTao

ความต้องการ ไม่สิ้นสุดจริงๆ  ;D
ใช้ Keil ตัว Eva อยู่ครับ ฟรี 32kB
คือ มันก็พออยู่นะ
เพราะ โค้ดผม ไม่ใหญ่โตอะไร

แต่ ลอง โหลด GNU Tool Chain มาเพื่อ Comply
เพราะเห็นว่า ไม่มี Limit Code Size
โค้ด 3 บรรทัด Error 350 แห่ง  :-[

บางเว็บ บอกมาว่า
ตอนเลือกที่ Cube MX เลือกที่
TrueStudio แต่ก็ยัง Comply ไม่ผ่านครับ

ผมลองทำตาม ที่นี่ครับ :

http://wunderkis.de/stm32cube/index.html

ติด 2 บรรทัดสุดท้าย งง  @_@!
ภาษาปะกิต ไม่แข็งแรง

//--------------------------------------------------------------
Create your project using the STM32CubeMX software
Choose "TrueSTUDIO" as Toolchain
Set "Copy only the necessary library files" option
Generate the Code
Copy the Makefiles from the template over the created directory structure
type "Make" at the top level directory of the project
//--------------------------------------------------------------

ใครทำผ่านบ้างแล้วอ่ะครับ
:-[

dec

ถ้าอยากใช้ GNU Tool Chain แต่ยังเขียน Makefile ไม่เป็น ลองใช้ IDE System Workbench for STM32 ที่ ST สนับสนุนอยู่ดูครับ เป็น Eclipse ที่ติดตั้ง Plugin สำหรับใช้งาน STM32 ไว้เรียบร้อยแล้ว คล้ายๆ กับ GNU ARM Eclipse แต่ GNU ARM Eclipse ต้องติดตั้งเองทีละอย่าง (ลง Eclipse ลง GNU C for ARM ลง Plugin ลง OpenOCD)

System Workbench for STM32 สมัครสมาชิกก่อนถึงจะโหลดได้ครับ
http://www.openstm32.org/System+Workbench+for+STM32

หรือ GNU ARM Eclipse ก็เว็บนี้
http://gnuarmeclipse.github.io/

ลืมบอกไปอย่างนึงครับ ใช้ Open source พวกนี้ การ Debug จะสู้พวก IDE Keil หรือ IAR ไม่ได้นะครับ



empirejrz

https://www.youtube.com/watch?v=aOjLb3T_wAg

ลองดูอันนี้ครับทำ LED Blink ผมก็เพิ่งเริ่มศึกษาการเขียน STM32 ใน Keil ครับ