logo elektroda
logo elektroda
X
logo elektroda
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

AVR Studio 4.12 - problem - 'movw' at address 0x000033

20rafalo 18 Lip 2009 17:03 1626 9
  • #1 6793863
    20rafalo
    Poziom 19  
    Witam. Mam problem z AVR Studio 4.12. Podczas symulacji na zmianę wyświetlają się komunikaty:
    Loaded plugin STK500
    Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\AT90S2313.xml
    AVR Simulator: Please wait while configuring simulator...
    AVR Simulator: Device has no EEPROM interrupt.
    AVR Simulator: AT90S2313 Configured OK
    Coordinator: The object file does not contain source code information.
    Loaded objectfile: C:\AVR programy\jeszcze_raz\led.hex
    AVR Simulator: Unsupported instruction 'movw' at address 0x000033
    AVR Simulator: Unsupported instruction 'movw' at address 0x000037
    AVR Simulator: Unsupported instruction 'movw' at address 0x000033
    AVR Simulator: Unsupported instruction 'movw' at address 0x000037
    AVR Simulator: Unsupported instruction 'movw' at address 0x000033
    AVR Simulator: Unsupported instruction 'movw' at address 0x000037
    AVR Simulator: Unsupported instruction 'movw' at address 0x000033

    I tak dalej....


    Podczas gdy w AVRStudio 3,56 jest ok. Co może być tego powodem?
  • #2 6793872
    Konto nie istnieje
    Konto nie istnieje  
  • #4 6794085
    Konto nie istnieje
    Konto nie istnieje  
  • #5 6794149
    ZbeeGin
    Poziom 39  
    A od kiedy to AT90S2313 posiada w zestawie instrukcję MOVW?
    Może warto zainteresować się listą rozkazów i czytać nawet to co napisano drobnym drukiem.
    Cytat:
    This instruction is not available in all devices. Refer to the device specific instruction set summary.


    Drugie zadanie to lektura noty katalogowej:
    Cytat:
    Table 2. Reset and Interrupt Vectors
    1 $000 RESET Hardware Pin, Power-on Reset and
    Watchdog Reset
    2 $001 INT0 External Interrupt Request 0
    3 $002 INT1 External Interrupt Request 1
    4 $003 TIMER1 CAPT1 Timer/Counter1 Capture Event
    5 $004 TIMER1 COMP1 Timer/Counter1 Compare Match
    6 $005 TIMER1 OVF1 Timer/Counter1 Overflow
    7 $006 TIMER0 OVF0 Timer/Counter0 Overflow
    8 $007 UART, RX UART, RX Complete
    9 $008 UART, UDRE UART Data Register Empty
    10 $009 UART, TX UART, TX Complete
    11 $00A ANA_COMP Analog Comparator

    AT90S2313 jak widać nie posiada takiego przerwania...
  • #6 6794312
    20rafalo
    Poziom 19  
    Loaded plugin STK500
    Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\AT90S2313.xml
    AVR Simulator: Please wait while configuring simulator...
    AVR Simulator: Device has no EEPROM interrupt.
    AVR Simulator: AT90S2313 Configured OK
    Coordinator: The object file does not contain source code information.
    Loaded objectfile: C:\AVR programy\jeszcze_raz\led.hex
    AVR Simulator: Unsupported instruction 'movw' at address 0x000033

    Jak widać instalacja najnowszej wersji nie pomogła.

    Ja też wywnioskowałem, że ten układ nie wspiera tej instrujcji, tylko, że problem leży gdzie indziej!!.
    Panowie napisałem bardzo prosty program, oto on:

    #include <avr/io.h>
    #include <avr/delay.h>
    
    int main(void)
    
    {
    DDRD=0xff;
    for(;;)
    	{
    	PORTD=0x00;
    	
    	_delay_loop_2(0xffff);
    	PORTD=1;
    	_delay_loop_2(0xffff);
    	
    	}
    	return 0;
    }


    Jak widać ja takiej instrukcji nie użyłem, i niewiadomo mi z jakich przyczyn kompilator WinAVR użył tej instrukcji - JAK NAPISAŁEM MU WYRAŹNIE w pliku makefile, że posiadam układ 2313!!!

    Panowie jak tu się uczyć jeżeli na każdym kroku jest mnóstwo niedociągnięć, a to ze strony producenta programu lub autora książek których używam. Straciłem już dwa tygodnie a nadal męczę się z takimi "absurdalnymi" problemami. Ech..

    Dorze, że Panowie z forum :-)[code]
  • Pomocny post
    #7 6794398
    ZbeeGin
    Poziom 39  
    Widzisz. Ja też napisałem by skorzystano z 90S2313 i takie paranoje się nie pojawiają. Zarówno z kompilacji z AVR Studio, jak i ręcznie przez makefile.

    Cytat:
    Loaded plugin STK500
    Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\AT90S2313.xml
    AVR Simulator: Please wait while configuring simulator...
    AVR Simulator: Device has no EEPROM interrupt.
    AVR Simulator: AT90S2313 Configured OK
    Loaded objectfile: E:\Programy\AVRGCC\test22\test22.elf

    Zatem czym prędzej ściągać nowsze AVR-GCC i następnym razem dodawać źródła już w pierwszym poście.
  • #9 6794905
    Konto nie istnieje
    Konto nie istnieje  
  • #10 6794959
    ZbeeGin
    Poziom 39  
    technics6 napisał:
    1. Niestety Atmel dostarcza strasznie niedopracowane oprogramowanie. W każdej wersji są jakieś niedoróbki.

    Ale co wersja to coś wreszcie działa.
REKLAMA