This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

application rtx based with remap in ram

Hi all,
I'm working with the following:
IDE: Keil uVision 3
Target: LPC2388 (custom board)
RTOS: RTX from RL_ARM v3.7

I'm a application that is booted by a secondary bootloader all work fine; so for develop my application stand alone (only emulator, no bootloader).

I have the following setup:
memory map RO 0x0 0x80000, RW 0x40000100 0x80000
remap on ram setted
CPU feq = 48Mhz.

All going fine, the application work, and for try bootloader only need to change the memory map of RO, that in this case must start from 0x10000 of flash (bootloader is flashed first).

The problem arise when I tryed to change the cpu frequency from 48MHZ to 72 MHZ: the behavior is that after a bit time the interrupt timer that is used by RTX for schedule stop to be called...registry of VIC and timer 0 seems to be as espected.

I have just change the RTX_Config.c, for align the change of freq. with the timer 0 peripheral freq, but this not correct the problem.

I don't know why, but the timer 0 irq stop to be called exactly when I Connect a device to my USB host (yes I have a USB Host driver on my application)

Someone has some ideas with working: what I should see or do for analize and solve this mistake?

Thanks for feedback

Maurizio

Parents Reply Children
  • this is true, john, but based on what the OP posted, I think he correctly adjusted his clock dividers.

  • I'm start with cpu clock = 48MHz, USB clock = 48MHz; after that, for optimize the application I increase only the cpu clock to 72 MHz.

    I have successfully tested the code also with a middle cpu freq: 57 MHz ( I have 3 step for the CPU clock div value, for meet the maximum freq of CPU.

    I think that the mistake is not strictrly related with the frequency, maybe a hidden problem that aryse...but I need some help that say me what observe and how design a test for find what's wrong.

    Thanks for the interesting

    Maurizio