problem with icc and bootloader

Discussion and support of the compiler from ImageCraft for the M8C.

Moderator: richard@imagecraft.com

problem with icc and bootloader

Postby appavito » Mon Jul 09, 2012 5:28 am

hi everybody, for our project we need bootloader ( UART bootloader) , we have complete board, and we can use service uart ( uart no. 4 ) for firmware upgrade.

but i have some question:

i have pd 5.2 with icc compiler free

i thin this: upload with psoc programmer the bootloader: bootloader work good and i can upload my hex

make some modify at our project: i add in custom lpk this line -bBootLoader:0x7C00.0x7FFF and in the top of main.c i add

#pragma text:BootLoader // switch the code below from
// AREA text to BootLoader
// ... Add your Code ...
#pragma text:text // switch back to the text

in this mode the icc compiler reserve the flash 0x7C00 to 0x7FFF ... true????

BUT I GET ONE WARNING AND FIRMWARE UPLOADED NOT WORK:

!W warning: __xidata_start label not found in startup file.
Please make sure xidata area is created with __xidata_start definition.
pointer to extended idata should point to __xidata_start

THE SITUATION IS THIS:


IF I UPLOAD THE BOOTLOADER ALONE , CAN UPLOAD OUR FIRMWARE, BUT OUR FIRMWARE NOT WORK! THIS FIRMWARE BLINK A LED IN CY3210 MINI VAL BOARD... IS A STUPID FIRMWARE FOR TEST BOOTLOADER!..
Attachments
BootLoader01.rar
(115.85 KiB) Downloaded 155 times
appavito
Cheese Cube
Cheese Cube
 
Posts: 47
Joined: Thu May 27, 2010 2:28 am

Return to “%s” ImageCraft ICCv7 for M8C Compiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron