[iMX8QM] What's this error code of imx mean?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[iMX8QM] What's this error code of imx mean?

ソリューションへジャンプ
3,055件の閲覧回数
sushi_happy
Contributor IV

Hi, all.

There is a description about the error in imx-scu.c (/ kernel_imx / drivers / firmware / imx).


enum imx_sc_error_codes {
    IMX_SC_ERR_NONE = 0,                  / * Success * /
    IMX_SC_ERR_VERSION = 1,            / * Incompatible API version * /
    IMX_SC_ERR_CONFIG = 2,              / * Configuration error * /
    IMX_SC_ERR_PARM = 3,                  / * Bad parameter * /
    IMX_SC_ERR_NOACCESS = 4,        / * Permission error (no access) * /
    IMX_SC_ERR_LOCKED = 5,             / * Permission error (locked) * /
    IMX_SC_ERR_UNAVAILABLE = 6,    / * Unavailable (out of resources) * /
    IMX_SC_ERR_NOTFOUND = 7,        / * Not found * /
    IMX_SC_ERR_NOPOWER = 8,         / * No power * /
    IMX_SC_ERR_IPC = 9,                      / * Generic IPC error * /
    IMX_SC_ERR_BUSY = 10,                / * Resource is currently busy / active * /
    IMX_SC_ERR_FAIL = 11,                   / * General I / O failure * /
    IMX_SC_ERR_LAST
};

 

There is a brief explanation on each line, but I would like to know more specifically.

It seems that "IMX_SC_ERR_NOACCESS" error is occurring on my board,
so I would especially like to know about "IMX_SC_ERR_NOACCESS".


What is the cause of this error?
Difference from "IMX_SC_ERR_LOCKED".
I would also like to know if there is a solution.

0 件の賞賛
返信
1 解決策
6 返答(返信)
3,033件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You need set correct access permission about the resource you want to access.

0 件の賞賛
返信
3,030件の閲覧回数
sushi_happy
Contributor IV

thank you for your reply.

Is it a software issue such as dts files?
Or is it a hardware issue?

0 件の賞賛
返信
2,974件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @sushi_happy 

If you change hardware definition in mek dts, for example, reusing a new uart.Then you need change the SCU code, add serial port permissions for this new uart.

It's not hardware issue.

2,950件の閲覧回数
sushi_happy
Contributor IV

Thanks @Zhiming_Liu .

I have changed some dts files.
But I don't know what your "the SCU code" means.

In which file can I add serial port permissions?

0 件の賞賛
返信
2,908件の閲覧回数
sushi_happy
Contributor IV

Hi, @Zhiming_Liu 

It was helpful to change scfw.
I was able to modify scfw-tcm.bin according to that method.

By changing the pin assignment in scfw and excluding the target pin from the assignment, the error disappeared.

Thank you!

0 件の賞賛
返信