rtel wrote on Wednesday, September 22, 2010:
emo on the Keil uVision3 simulator
Thank you for stating that up front. The simulator is not the environment on which the port was developed or intended to run. Normally when people report problems in a simulated environment the problem does not exist in the real environment.
nsert a printf() call anywhere in main()
the application crashes at startup before even reaching main()
If the print is in main(), and it is crashing in the startup code, then your problem is not (yet at least) related to FreeRTOS anyway. The kernel does not start and the stack pointer is not manipulated until the kernel vTaskStartScheduler() is called. Up to that point, you just have a standard single threaded C program.
I don’t know where printf() is supposed to print to in the Keil tools. Have you configured it to actually do something (print to COM port, debug terminal, or the like?). Is it attempting to use memory that has not been allocated? Etc. Etc.
I think you are asking the question in the wrong place. Keil tech support should be able to answer questions about using printf() and about using their simulator.