Skip to main content

Posts

Showing posts from May, 2013

RTX Real-Time Operating System Issues

RTX Real-Time Operating System Issues Tổng hợp các vấn đề tôi đã bị vướng khi làm việc với Keil - RTX (for STM32) 1. Sizeof base on MCU platform. Keyword: sizeof in Keil ARM, sizeof of struct, checksum, BKP_ReadBackupRegister, BKP_WriteBackupRegister. Description: Return wrong size of struct when you call sizeof(YourStruct); Trong ví dụ dưới, ứng với mỗi kiểu khai báo thứ tự của các member trong struct khác nhau, sẽ trả về size of struct khác nhau. Vì vậy, nếu không chắc chắn về sizeof, hãy debug để xác định chính xác toán tử này trả về bao nhiêu trong từng trường hợp cụ thể. Bạn hoàn toàn có thể dính trấu trong trường hợp sử dụng sizeof để tính checksum, hoặc làm việc với Ram Backup.

Tip, trick, mini software

Mini tools. Some software is really impressed to me. It's so convenience, stable and FREE. NOTEPAD++   Free editor 1. How to insert date and time to notepad plus plus like notepad by press F5. (Thêm thông tin thời gian vào file text) Step 1: Select Plugin Manager then click on ‘Show Plugin Manager’In the ‘Available’ tab select ‘TextFX Characters’ and click the Install button at the bottom Restart Notepad++ Step 2: Click on ‘Shortcut Mapper’ Click on the ‘Plugin Commands’ tab Scroll down to line 162, You should see ‘I:Date & Time – short format’ Select it and click the ‘Modify’ button at the bottom In the popup window you can configure the shortcut you want to insert the data & time Click OK. Example: I set Ctr+F5 to insert short date time like that:  9:36 AM 5/5/2013 2. Select paragraph in rectangular  (Bôi đen 1 đoạn văn bản theo 1 hình chữ nhật, giống chức năng Mark của MS-DOS) Step x: Ctrl + Alt + Drag left mouse. Example: Drag left mouse Ctrl +