Hi - this problem may be answered elsewhere, but I'm totally stumped.
Before I enabled the low power modes....I had the ittyb channel open and functional - so I can read and write data at 19200 baud to the external device.
Now, I need to set the sleep or low power modes so that the battery doesn't die on me.
Oh yes - I read the issues with the ittyd and ittyf - but they are enabled and used - ittyf for the debugging and ittyd for my GPS (read only)
I'm using the K60_1M0_120 144pin device.
Software is Keil 188.8.131.52 and as I had issues with the conflict on the low power/serial before, it is a clean install.
From the user_config.h, as well as the ittyb, d, f being enabled,are the following and I wonder if there is a conflict:
#define BSPCFG_ENABLE_NANDFLASH 1
#define MQX_INCLUDE_FLOATING_POINT_IO 1
#define BSPCFG_ENABLE_IO_SUBSYSTEM 1
#define BSP_DEFAULT_IO_CHANNEL "ttyf:"
From my code:
|fh_ptr = uart_init(19200,"ittyb:");|
fd = (pointer)fopen(device, BSP_DEFAULT_IO_OPEN_MODE);
and totally locks in the SER_INT.C routine at line 294:
|(*int_io_dev_ptr->DEV_IOCTL)(int_io_dev_ptr->DEV_INFO_PTR, IO_IOCTL_SERIAL_SET_FLAGS, &ioctl_val);|
It runs into either the mqx idle routine or I've caught it in some assembler code looking at the interrupt structure, which appears empty???
The low power mode just before the lock-up is "LPM_OPERATIONAL_MODE_RUN".
I'm locking an interrupt somewhere, but I cannot figure out which one or how to discover the held link for myself.
Any thought would be appreciated!
P.S. - I just saw the default device as "ttyf:". I'll fix it....