Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS on MC9S12DP512 (Freescale HCS12X)

Posted by Nobody/Anonymous on April 23, 2007
Hello,
I'm trying to run FreeRTOS on a EvalBoard with a HCS12X processor using the banked memory model. After the first initialization and the startup code there is a CALL instruction so that the function Init() is started and it would never really enter it (just breaks). I think it has something to do with the fact that I want to use banked memory and the functions are defined as __far. If anyone has encountered that problem or has any ideas how to fix it, I'd be very grateful.

Best regards,
AD

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X)

Posted by embeddedc on April 23, 2007
There is a banked mode example. Did you use this as your starting point.

Are you saying that Init() is called from the startup code, before main(), but the execution never reaches this? Can you run a simple hello world application without FreeRTOS successfully?

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X

Posted by Nobody/Anonymous on April 23, 2007
Hello,
Yes, I was able to run a simple program before I tried flashing freeRTOS. Now I am trying the HCS12_CodeWarrior_banked demo. Init() should normally be called before main(), but somehow it cannot make a call. I tried the Small memory model demo as well and it could call Init() without a problem, however stopped at a later spot.
So could there be anything that requires extra configuration or something like that?

Best regards,
AD

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X

Posted by embeddedc on April 23, 2007
I'm not too clued up on this port, but take a look at the following thread with respect to the use of the processor expert. Basically, don't.

https://sourceforge.net/forum/forum.php?thread_id=1716804&forum_id=382005

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X

Posted by Nobody/Anonymous on April 23, 2007
Thanks. I don't really use processor expert, if I open a new project it doesn't ask me whether I'd like to use it or not. I'll check tomorrow what I can do, since I'm not at the workplace anymore. Thanks once again!

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X

Posted by Nobody/Anonymous on April 23, 2007
P.S. I've also built the demo with a makefile but the result was the same. Could the problem be in the linker parameter file, because this one in the demo is actually for the dp256 version of the processor.

RE: FreeRTOS on MC9S12DP512 (Freescale HCS12X

Posted by Nobody/Anonymous on April 25, 2007
Hi,
I just wanted to say that I could actually solve the problem by changing the addresses of the memory sections in the .prm file using a .prm file for MC9S12XDP512 as a template.
What I would like to ask is, however, whether someone could point out what else one would probably need to change on source code and stuff to adapt the DP256 port to a XDP512 chip.

Thanks


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists