2018年4月22日 星期日

在 IAR 使用 SWO debug

在 IAR 使用 SWO debug



2017年12月10日 星期日

STM32 timer encoder 模式

STM32 timer encoder 模式,會使用特定的timer 腳位,不能任意使用不同腳位。

如下 blog 所圖示:
http://elastic-notes.blogspot.tw/p/cubemx-stm32-encoder-interface.html



2017年10月30日 星期一

2017年10月24日 星期二

使用 IAR 小技巧 (加入 AStyle, Eclipse)

IAR compiler 雖然效能最好, 但 IDE 真的不好用.
使用2個小技巧, 可以讓開發變得友善, 容易一些
一是加入排版工具AStyle. 二是可使用 Eclipse IAR 外掛


1. 加入 AStyle, 作排版
http://blog.csdn.net/lidingtian/article/details/52187548

2. 使用 Eclipse IAR 外掛
http://eclipse-update.iar.com/
https://read01.com/zh-tw/gL3K.html#.We8FklWWbIW
http://blog.csdn.net/u011408697/article/details/50098625





2017年10月10日 星期二

Word 新增註解 字體變小問題 解決方法

在新版Word 編輯之後, 再由Word 2007 開啟編輯 -> 存檔 -> 關閉檔案之後, 再開啟文件. 會產生新增註解字體變小問題. 此為Word 相容性問題.

以下步驟為解決方法:
1. 選擇到 [檢視] 頁面 -> 巨集 -> 檢視巨集, 按下 [檢視巨集]
2. 按下 [組合管理]
3. 選擇到 [樣式] 頁簽, 往下到 [註解方塊文字], 按下 [刪除]
4. 按下 [是]
 5. 關閉對話框, 新增註解字體大小 即可回復正常

2017年7月19日 星期三

ARMv8-A Data types

ARM Cortex-A Series Programmer’s Guide for ARMv8-A

Data types

In many programming environments for C and C-derived languages on 64-bit machines, int variables are still 32 bits wide, but long integers and pointers are 64 bits wide. These are described as having an LP64 data model. This chapter assumes LP64, though other data models are available, see Table 5.1. The ARM ABI defines a number of basic data types for LP64. Some of these can vary between architectures, and are included in the following:



參考: http://infocenter.arm.com/help/index.jsp?topic=%2Fcom.arm.doc.den0024a%2Fch08s02.html