Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic run fails with higher debug level (DLL trace) #380

Open
powerlink-team-kalycito opened this issue Sep 28, 2018 · 1 comment
Open

Comments

@powerlink-team-kalycito

Bug Description:
Stack version : v2.7.0
SHA : c212851
Managing Node : Altera-Terasic-De2-115 (mn-dual-hostif-gpio)
Controlled Node: Bus Controllers

Bug Summary:
Observed Behavior - MN demo application crashes when it was built and run with DEF_DEBUG_LEVEL = 0xC0000002 (DLL traces enabled)
Expected Behavior - The MN and CN should come to operational state

Steps to Reproduce:

  1. Change the DEF_DEBUG_LEVEL = 0xC0000002 in oplkcfg.h for the particular design
  2. Build the hardware, driver and application
  3. Run the driver and application
@powerlink-team-kalycito
Copy link
Author

On debugging the issue, we found that out of 12 EDRV_DLL_TRACE prints, there are issues only in the below 5 code section (openPOWERLINK_dir)/stack/src/kernel/dll/dllkframe.c).

Print statement1 in line 3031:

DEBUG_LVL_DLL_TRACE("       --> Send StatusRequest: ER:%d\n",
                            ((pIntNodeInfo->soaFlag1 & PLK_FRAME_FLAG1_ER) != 0));

Print statement2 in line 208:

DEBUG_LVL_DLL_TRACE("%s(): pfnCbAsync=0x%p SrcMAC=0x%llx\n",
                        __func__,
                        dllkInstance_g.pfnCbAsync,
                        ami_getUint48Be(pFrame->aSrcMac));

Print statement3 in line 2954 and 2980

DEBUG_LVL_DLL_TRACE("Node:%d ERRSIG_INIT_WAIT_EC1 Cnt:%d  EC:%d\n",
                            pIntNodeInfo->nodeId,
                            pIntNodeInfo->errSigReqCnt,
                            (fEcIsSet != 0));

Print statement4 in line 3010:

DEBUG_LVL_DLL_TRACE("Node:%d ERRSIG_INIT_READY EC:%d\n",
                            pIntNodeInfo->nodeId,
                            (fEcIsSet != 0));

Altera (embedded) designs takes some delay to execute these DLL prints. And it is because of limitation in the hardware. Hence this bug cannot be fixed and shall be marked as wont fix.

There are no issues in release mode as a product. Hence no issues with the stack release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant