bigbaicai

芯方式是以半导体人、电子工程师等电子行业相关领域从业人员为核心的知识经验学习、分享、交流社群。 凭借开放、合作、共赢的运营理念,聚集了来自国内外知名院校和顶尖科技公司的半导体人、电子工程师。 我们致力于营造专业、认真、有温度的分享交流环境,将高质量的内容和方案成规模地生产和分享,帮助个人和团队在芯方式找到有价值的Key。 http://www.icfans.com/

How to get FS trace (Before 09B, 10A, After 11A)

0
阅读(844)

[Description]
How to get FS trace (Before 09B, 10A, After 11A)
[Solution]
打开/获取 FS trace 的方法如下:
1. Before 09B (include 09B) and 10A1032SP
(1) enabled FS_TRACE_SUPPORT in Project makefile;
(2) edit kal\efs\src\fs_func.c, find FS_SanityCheck(), find the line
MTSetTrace(MT_TRACE_API | MT_TRACE_ERROR | MT_TRACE_ALL_TASK, RTF_INFINITE);
,And then move it outside any compile option and let this line be executed by default.
(3) make c,r fs, kal, custom
PS: You may meet a build error in option.mak like as :
$(error FS_TRACE_SUPPORT is TRUE, PRODUCTION_RELEASE sould not be TRUE!)
which can be solved by moving COM_DEFS += __FS_TRACE_SUPPORT__ outside any compile option
and let __FS_TRACE_SUPPORT__ be switched by default.
2. For 10A (not include 10A1032SP)
需要申请patch:MAUI_02876304。打完patch后,Project Makefile中打开FS_TRACE_SUPPORT = TRUE,然后 make new, 设置好catcher filter MOD_FS,就可以直接抓fs trace了。
关于Merge Patch方法请参考 Patch MAUI_02876304 的Description(如下所述)。
<Patch Note>来自半导体社区
1. Please make sure both
a). kal\efs\include\fs_trc.h and
b). kal\efs\src\fs_utility.c
are released (visible by customers)
2. Please make sure kal\efs\src\fs_utility.c is listed in compile list (kal.lis or kal.mak)
3. Please add fs_trc.h to EXISTED_CUS_REL_TRACE_DEFS in makefile. For example,
EXISTED_CUS_REL_TRACE_DEFS += kal\efs\include\fs_trc.h
4. The goto makefile,
a) Set FS_TRACE_SUPPORT = TRUE
b) make codegen
c) make c,r fs kal
3. After 11A(include 11A)
Project Makefile中打开FS_TRACE_SUPPORT = TRUE,添加"EXISTED_CUS_REL_TRACE_DEFS +=
interface\fs\fs_trc.h",然后make new, 设置好catcher filter MOD_FS,就可以直接抓fs trace了