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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,218 Views
sushi_happy
Contributor III

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 Kudos
1 Solution
6 Replies
1,196 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,193 Views
sushi_happy
Contributor III

thank you for your reply.

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

0 Kudos
1,137 Views
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.

1,113 Views
sushi_happy
Contributor III

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 Kudos
1,071 Views
sushi_happy
Contributor III

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 Kudos