This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM3358: NAND access issues

Expert 2730 points
Part Number: AM3358

Tool/software: TI-RTOS

So I'm trying to access the NAND-Flash from RTOS. The nandlib needs a timer for DELAYUsec to work. If I configure a timer

/**< \brief Global variable to instantiate the timer for providing a delay. */
timeUtilsObj_t freeRunTimer = {7U, TIME_CLOCK_SEL_24MHZ_EXT_CRY_OSC, TRUE, 0U};

/* Initialize the timer to make use of the delay functionality */
TIMEUtilsInit(&freeRunTimer, 0U);

the BIOS will never start and the code will be stuck, depending on the timer number. If I use anything from 3-7 except 6, the code will be in 0xDA5A64F8. What is this address anyway? It shouldn't even exist, at least not in map file. If I select the timer 6 then, the code stops in am335x_prcm.c enableModule function, because for some reason timer 6 is disabled (IDLEST = 3: Module is disabled and cannot be accessed).

How can I make the nand work with RTOS? Nand bootloader works ok.

JHi