Personal tools
You are here: Home Forums M16C Communication protocol error!

Communication protocol error!

Up to M16C

Communication protocol error!

Posted by Ashley at August 09. 2008

hi

when I was trying to download the modules I got a dialog box "Download Aborted" and the error message "Communication protocol error.(Argument error) (16230)".

I was running the QSKtest program on m16c/26a, build goes with no errors and warnings.

I just added the following code to the orginal(main) c code:

if (!RED_LED)    // Red LED on?
    DisplayString(LCD_LINE1, " LED RED "); // if so, Red LED on
   if (!YLW_LED)    // Yellow LED on?
    DisplayString(LCD_LINE1, " LED YLW"); // if so, Yellow LED on
   if (!GRN_LED)    // Green LED on?
    DisplayString(LCD_LINE1, " LED GRN"); // if so, Green LED on

thanks in advance!

Re: Communication protocol error!

Posted by Ashley at August 09. 2008

and when I used the FoUSB application to program the QSKdemo.mot file I got "Error programming" not erased. So I removed the USB connection and connected, programmed using FoUSB it works fine then.

Re: Communication protocol error!

Posted by Ashley at August 22. 2008

these are the warnings I recieved while Build. I ignored the warnings and tried to download the program then the download aborted error occured.

processing "C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\ncrt0_qsk26a_test.r30"
C:\MyRenesas\Projects\rsktrial\rsktrial\sect30_qsk26a_test.inc(118) : Warning (ln30): C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\ncrt0_qsk26a_test.r30 : 'DATA' section 'data_SE' is overlapped on the 'program' from 400H to 400H
C:\MyRenesas\Projects\rsktrial\rsktrial\sect30_qsk26a_test.inc(148) : Warning (ln30): C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\ncrt0_qsk26a_test.r30 : 'DATA' section 'stack' is overlapped on the 'program' from 401H to A00H
C:\MyRenesas\Projects\rsktrial\rsktrial\sect30_qsk26a_test.inc(160) : Warning (ln30): C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\ncrt0_qsk26a_test.r30 : 'DATA' section 'heap' is overlapped on the 'program' from A01H to CA0H
processing "C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\qsk_lcd.r30"
Warning (ln30): C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\qsk_lcd.r30 : 'DATA' section 'data_NO' is overlapped on the 'program' from 400H to 400H
processing "C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\sfr26a_labels.r30"
C:\MyRenesas\Projects\rsktrial\rsktrial\sfr26a_labels.a30(53) : Warning (ln30): C:\MyRenesas\Projects\rsktrial\rsktrial\Debug\sfr26a_labels.r30 : 'DATA' section 'SFR_NO' is overlapped on the 'program' from 0H to 3FFH

Can anyone help me in correcting this warnings?

Re: Communication protocol error!

Posted by FrankL at August 22. 2008

You do not link ncrt0 as first file. This is necessary because NC30 makes only one linker run, and only in sect30.inc (included in ncrt0_qsk26a_test.r30) are the startaddresses for all sections defined.

In HEW go to Build > Linkage Order and move ncrt0 to the top of the link list.

Powered by Ploneboard