FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2007 Threads] STR91x IAR SK BoardPosted by johanan on August 27, 2007 Got an IAR STR912 board, and tried to use the STR91 port which is for the ST board, but no luck. I changed GPIO for leds task (it works without the RTOS), commented out all but the led flash task, and still nothing happnds. The kernel is looping in Abort_Handler(). What am I missing?
RE: STR91x IAR SK BoardPosted by Dave on August 27, 2007 Are you using the startup files that came with the FreeRTOS demo, or the files that came with the IAR tools? Can you check that the startup files call main() from Supervisor mode.
RE: STR91x IAR SK BoardPosted by johanan on August 27, 2007 Thanks a lot. This was it. I am using IAR KS ver 5.0, so I had some copatbily problems with the original file. Her ius the needed change: ------------------------------------------------------------------------------ ; --- Now change to USR/SYS mode and set up User mode stack, ; Original IAR: ; MSR CPSR_c, #Mode_SYS ; IRQs & FIQs are now enabled
MSR CPSR_c, #Mode_SVC|I_Bit|F_Bit ; FreeRTOS - start with SVC mode LDR SP, = SFE(CSTACK)
; --- Now enter the C code B ?main ; Note : use B not BL, because an application will ; never return this way --------------------------------------------------------------------------------
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|