2021年10月2日 星期六

2021年4月25日 星期日

[FLASH] Winbond & Macronix & XMC Flash command

1. 最近試用了幾顆Flash, 發現基本上Read/Write command都是互相支援的, 因此打算記錄一下, 免得之後忘記了.
  • 測試Flash清單如下:
    1. Winbond: W25Q64JV.

    2. Macronix: MX25L6473F, MX25L6433F

    3. XMC: XM25QH64CHIQT08S

2. 底下是測試的command, 使用的是Standard SPI, 並不是使用QSPI.

2021年4月18日 星期日

[MEMO] How to install unofficially supported protocols on Saleae

最近因為Flash缺料的問題, 所以經常會被代工廠要求希望能新增Second Source的支援, 因此照三餐在研究Flash Driver和Datasheet便成了家常便飯一樣.

由於Flash command相當的多, 因此每次都要開著Datasheet來對照logic analyzer上面的波形目前是在執行什麼command(如下圖)的話, 還挺麻煩的.

2021年4月14日 星期三

2021年3月20日 星期六

[MEMO] fix build error for GetCurrentInterruptNumber function from gcc to armcc

 最近要移植一些gcc的程式到Keil-MDK上, 其中有一個GetCurrentInterruptNumber的程式無法編譯成功, 會有以下的錯誤產生.

error:  #18: expected a ")"




所以我們必須把它改成armcc可以支援的方式, 如下所示:



2021年3月6日 星期六

[MEMO] How to fix build error: too many positional arguments" on Keil-MDK 5.30 and later

 1. 最近在study NXP LPC5528 MCU, 發現從官網上抓下來的example code在編譯的時候, 會出現error: too many positional arguments.

2021年2月26日 星期五

2021年2月25日 星期四

[MEMO] How to enable RTT on Embitz IDE

If you want to enable the RTT function on Embitz, in addition to adding RTT-related .c & .h, we also need to add some commend on Embitz IDE for normal operation.

1. Go to Debug/Interfaces like below:



2. Add the following commands under GDB additionals/After connect:

eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT

3. Done