nobody wrote on Tuesday, July 25, 2006:
Hi
I’m back …
>Most of the ports #define away the inline at the bottom of portmacro.h. This gets around the problem
Great idee! First I didn’t understand exactly what you mean but now I do 
The secound problem is in the common test files (demo/common/…)
We call the xTaskCreate fkt. and the secound parameter is implicitly casted to ( signed portCHAR * )
the problem is that my compiler now says:
“far pointer (implicitly) casted by near pointer”
because he differ const pointer(far 20bit FLASH) and normal pointer (near 16bit RAM)
I think I won’t be wrong we changed the implicit cast ( signed portCHAR * ) to (const signed portCHAR * ) beacause the xTaskCreate fkt. body is
signed portBASE_TYPE
xTaskCreate( pdTASK_CODE pvTaskCode,
!! const signed portCHAR * const pcName, unsigned portSHORT usStackDepth, void *pvParameters, unsigned portBASE_TYPE uxPriority, xTaskHandle *pxCreatedTask )
and here is the build output I used TM
******** Cleaning…
----*
******** Complete…
******** Executing…
AS30 -LM -finfo -O. ncrt0.a30
R8C/Tiny,M16C/60 Series Assembler system Version 5.10 Release1
COPYRIGHT(C) 1995(2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
macro processing now
----*
–assembler processing now
TOTAL ERROR(S) 00000
TOTAL WARNING(S) 00000
TOTAL LINE(S) 00280 LINES
DATA 0000000(00000H) data_SE
DATA 0000000(00000H) bss_SE
DATA 0000000(00000H) data_SO
DATA 0000000(00000H) bss_SO
DATA 0000000(00000H) data_NE
DATA 0000000(00000H) bss_NE
DATA 0000000(00000H) data_NO
DATA 0000000(00000H) bss_NO
DATA 0000512(00200H) stack
DATA 0004096(01000H) heap
ROMDATA 0000000(00000H) rom_NE
ROMDATA 0000000(00000H) rom_NO
DATA 0000000(00000H) data_FE
DATA 0000000(00000H) bss_FE
DATA 0000000(00000H) data_FO
DATA 0000000(00000H) bss_FO
ROMDATA 0000000(00000H) rom_FE
ROMDATA 0000000(00000H) rom_FO
ROMDATA 0000000(00000H) data_SEI
ROMDATA 0000000(00000H) data_SOI
ROMDATA 0000000(00000H) data_NEI
ROMDATA 0000000(00000H) data_NOI
ROMDATA 0000000(00000H) data_FEI
ROMDATA 0000000(00000H) data_FOI
CODE 0000000(00000H) program
CODE 0000000(00000H) program_S
CODE 0000000(00000H) interrupt
CODE 0000192(000C0H) vector
CODE 0000036(00024H) fvector
CODE 0000288(00120H) interrupt
( ncrt0.a30 )
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\…\Source\list.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\…\Source\list.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\…\Source\queue.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\…\Source\queue.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\…\Source\tasks.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
[Warning(ccom):…/…/Source/tasks.c,line 968] far pointer (implicitly) casted by near pointer
===> xReturn = xTaskCreate( prvIdleTask, ( signed portCHAR * ) "IDLE", tskIDLE_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, (;…
…\…\Source\tasks.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A main.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
main.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\…\Source\portable\NC30\M16c62A\port.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\…\Source\portable\NC30\M16c62A\port.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\Common\Minimal\integer.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\Common\Minimal\integer.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\…\Source\portable\MemMang\heap_3.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
[Warning(ccom):…/…/Source/portable/MemMang/heap_3.c,line 58] assign far pointer to near pointer,bank value ignored
===> pvReturn = malloc( xWantedSize );
…\…\Source\portable\MemMang\heap_3.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\Common\Minimal\PollQ.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\Common\Minimal\PollQ.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\Common\Minimal\flash.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
[Warning(ccom):…/Common/Minimal/flash.c,line 117] meaningless statements deleted in optimize phase
===> xFlashRate /= portTICK_RATE_MS;
…\Common\Minimal\flash.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A ParTest\ParTest.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
ParTest\ParTest.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A serial\serial.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
serial\serial.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\Common\Minimal\comtest.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
…\Common\Minimal\comtest.c
NC30 -c -I…/…/Source/include -I…/Common/include -I. -dir . -finfo -DNC30_M16C62A …\Common\Minimal\semtest.c
M16C/60 NC30 COMPILER V.5.30 Release 1
COPYRIGHT(C) 2001(2003,2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
[Warning(ccom):…/Common/Minimal/semtest.c,line 119] far pointer (implicitly) casted by near pointer
===> xTaskCreate( prvSemaphoreTest, ( signed portCHAR * ) "PolSEM1", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters,;…
[Warning(ccom):…/Common/Minimal/semtest.c,line 120] far pointer (implicitly) casted by near pointer
===> xTaskCreate( prvSemaphoreTest, ( signed portCHAR * ) "PolSEM2", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters,;…
[Warning(ccom):…/Common/Minimal/semtest.c,line 137] far pointer (implicitly) casted by near pointer
===> xTaskCreate( prvSemaphoreTest, ( signed portCHAR * ) "BlkSEM1", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters;…
[Warning(ccom):…/Common/Minimal/semtest.c,line 138] far pointer (implicitly) casted by near pointer
===> xTaskCreate( prvSemaphoreTest, ( signed portCHAR * ) "BlkSEM2", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters;…
…\Common\Minimal\semtest.c
LN30 @.\freertos.cmd
Linkage Editor (ln30) for R8C/Tiny,M16C Series Version 5.10.01
COPYRIGHT(C) 1995(2004) RENESAS TECHNOLOGY CORPORATION
AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
now processing pass 1
processing ".\ncrt0.r30"
processing ".\list.r30"
processing ".\queue.r30"
processing ".\tasks.r30"
processing ".\main.r30"
processing ".\port.r30"
processing ".\integer.r30"
processing ".\heap_3.r30"
processing ".\PollQ.r30"
processing ".\flash.r30"
processing ".\ParTest.r30"
processing ".\serial.r30"
processing ".\comtest.r30"
processing ".\semtest.r30"
processing "Libraries"
now processing pass 2
processing ".\ncrt0.r30"
processing ".\list.r30"
processing ".\queue.r30"
processing ".\tasks.r30"
processing ".\main.r30"
processing ".\port.r30"
processing ".\integer.r30"
processing ".\heap_3.r30"
processing ".\PollQ.r30"
processing ".\flash.r30"
processing ".\ParTest.r30"
processing ".\serial.r30"
processing ".\comtest.r30"
processing ".\semtest.r30"
processing "C:\MTOOL\LIB30\nc30lib.lib ( _I4DIV.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( _I4MODU.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( _I4MULU.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( BCOPY.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( BZERO.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( MALLOC.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( MEMCPY.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( MEMSET.r30 )"
processing "C:\MTOOL\LIB30\nc30lib.lib ( STRNCPY.r30 )"
DATA 0004781(012ADH) Byte(s)
ROMDATA 0000147(00093H) Byte(s)
CODE 0008743(02227H) Byte(s)
******** Finish…