WIN7下解决AVR编译Invalid argument异常的问题

问题现象:

avr-objcopy -O ihex -R .eeprom  xxxx.elf xxxx.hex

avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O ihex xxxx.elf xxxx.eep || exit 0

/usr/bin/sh: /c/WinAVR/bin/avr-objcopy: Invalid argument

avr-objdump -h -Sxxxx.elf > pex11d1.lss

/usr/bin/sh: /c/WinAVR/bin/avr-objdump: Invalid argument

make: *** [xxxx.lss] Error 126

Build succeeded with 0 Warnings...

 

处理方法:

C:\WinAVR\utils\bin下的msys-1.0.dll使用比较新的文件即可,我现在无法传附件,所以大家到网上下载吧。

展开阅读全文

invalid argument是什么问题

04-22

invalid argument是什么问题rnrnprocedure TPayApplyHeadForm.btnAddItemClick(Sender: TObject);rnbeginrn inherited;rnrn dgDetail.RowProps[dgDetail.Row].Checked := true;rnend;rnvarrn Item : TPay_Apply_Head ;rn iRow,i :Integer;rn Amount :Double;rnbeginrn Item := TPay_Apply_Head.Create;rn Item.Search_Flag := 6; //查询参数对应的物料rn msgbox('1111111111');rn tryrn if CommonSearchObj(TBizObject(Item), '') thenrnrn beginrn msgbox('qqqqqqq');rn iRow := dgDetail.GetFirstEmptyRow;rn if iRow = -1 thenrn beginrn msgbox('uuuuuuu');rn dgDetail.RowCount := dgDetail.RowCount + 1;rn iRow := dgDetail.RowCount - 1;rn end;rn if(Item.pay_type='质保金')thenrn beginrn msgbox('yyyyyy');rn for i := 1 to dgDetail.RowCount - 1 dorn beginrn msgbox('eeeeeeeee');rn if not dgDetail.RowProps[i].Checked thenrn beginrn msgbox('pppppp');rn Continue;rn end;rn if(dgDetail.CellByField2['pay_type',i]='月结款')or(dgDetail.CellByField2['pay_type',i]='预付款')rn or(dgDetail.CellByField2['pay_type',i]='退货款') thenrn Amount:=Amount+StrToFloatDef(dgDetail.CellByField2['Pay_Amount', i], 0);rn end;rn Amount:=-1*Amount*strtofloatdef(BedtASSURE_PERCENTAGE.text,0)/100;rn dgDetail.CellByField2['Pay_Amount',iRow] := Format('%0.2f',[Amount]);rn dgDetail.CellLocked[dgDetail.GetFieldIndex('Pay_Amount'),irow]:=true;rn end;rn if ( (Item.pay_type='订单补差价') or (Item.pay_type='无外箱') ) thenrn beginrn msgbox('nnnnnnnnn');rn dgDetail.CellLocked[dgDetail.GetFieldIndex('item_code'),iRow]:=False;rn dgDetail.Columns[dgDetail.GetFieldIndex('item_code')].ReadOnly:=False;rn end;rn rn dgDetail.CellByField2['source_id',iRow] := IntToStr(Item.Pay_Apply_Head_Id);rn dgDetail.CellByField2['bill_no',iRow] := Item.Bill_No;rn dgDetail.CellByField2['date_invbill',iRow] := Item.Date_Invbill;rn dgDetail.CellByField2['pay_type',iRow] := Item.pay_type;rn dgDetail.CellByField2['source_line_id',iRow] :=IntToStr(Item.pay_apply_line_id);rn //dgDetail.CellLocked[dgDetail.GetFieldIndex('Qty_Match'),iRow] :=True;rn //dgDetail.CellLocked[dgDetail.GetFieldIndex('Price_NoTax_Fact'),iRow] :=True;rn dgDetail.CellLocked[dgDetail.GetFieldIndex('pay_qty'),iRow]:=true;rn dgDetail.CellLocked[dgDetail.GetFieldIndex('Pay_Percent'),iRow]:=true;rn dgDetail.RowProps[iRow].Checked := True;rn dgDetail.CellByField2['Pay_Type_Id',iRow] := IntToStr(Item.Pay_Type_Id);rn end;rn finallyrn msgbox('mmmmmmmmmmm');rn Item.Free;rn end;rnrnend; 论坛

没有更多推荐了,返回首页