參考Poject 摘要 Main.c 中 為Project 主程式,其中能為透過user鍵盤輸入字串,透過FreeRTOS 輸出至 console 端,紀錄完整運作過程。 架構圖 前置作業 初始化Uart
9/12/2021Overview ARM Architecture 從第七代開始,分為三種配置(Profile) Application:AXI,VMSA(MMU) Real-time:AXI,PMSA(MPU),TCM(Cache),多核 Micocontroller:AHB(-Lite),APB,NIVC,Thumb Only,單核 補充:新架構有支援Variant PMSA(M4,M7,M23),Variant TCM(M7,M55) ARM Cortex-M 架構介紹 Cortex-M 只支援 Thumb-1 和 Thumb-2 指令,而 32-bit ARM 指令則不支援
9/11/2021同步問題陳述: critical section (以下簡稱 CS): 提供對共享變數之存取的互斥控制,從而確保資料正確。 所謂Critical sections意指一小塊『用來處理一份被共享之資源』的程式碼,廣義地指一塊記憶體、一個資料結構、一個檔案,或是任何其他具有『使用之排他性』的東西。也就是說,『資源』每一次(同一時間)只能夠被一個執行緒處理。 CS 解法: Mutual exclusion (互斥):任一時間點,只允許一個 process/thread 進入規範的 CS 內活動。 Progress (有進展): 需要同時滿足下面要件:
8/8/2021. ./start_qemu.sh image.bin -debug gdb-multiarch -ex="target remote localhost:1234" ./image.elf \Wedge https://github.com/jkovacic/FreeRTOS-GCC-ARM926ejs/blob/master/drivers/uart.c https://hkt999.medium.com/%E4%BD%BF%E7%94%A8-qemu-freertos-visual-studio-code-%E4%BE%86%E9%96%8B%E7%99%BC%E5%B5%8C%E5%85%A5%E5%BC%8F%E7%B3%BB%E7%B5%B1-204c5483f62 1.mag char 是甚麼 (資料結構) print.h
8/8/2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up