ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Понедельник
6 мая
630795 Топик полностью
MBedder, терминатор (14.11.2015 12:59 - 13:11, просмотров: 296) ответил Крок на За компанию валил. Ладно, попробую.
Вот те рабочая АСМ-рыба для dsPIC33EV32GM002. Чтобы использовать удобства С-препроцессора, сделай расширение .S (заглавное S), добавь файл в проект и компилируй посредством ХС16. Мусор отсеки в Project > Build Options > XC16 Link (см. картинку) __33EV32GM002 = 1 .include "p33EV32GM002.inc" .global __reset __reset: mov #__SP_init,w15 // Initalize the Stack Pointer mov #__SPLIM_init,w0 // Initialize the Stack Pointer Limit Register mov w0,SPLIM // (__SP_init & __SPLIM_init values are calculated by linker) nop // Add NOP to follow SPLIM initialization mov #0x1234,w0 // Initialize LEBDLY3 (specific to dsPIC33EV32GM002) mov w0,LEBDLY3 // nop .end
----------------------------------------------------------------------
Release build of project `C:\XdsPIC\dsPIC33EV\dsPIC33EV.mcp' started.
Language tool versions: xc16-as.exe v1.25, xc16-gcc.exe v1.25, xc16-ld.exe v1.25, xc16-ar.exe v1.25
Sat Nov 14 13:05:48 2015
----------------------------------------------------------------------
Make: The target "C:\XdsPIC\dsPIC33EV\P33EVtest.o" is out of date.
Executing: "C:\MPLAB\XC16\bin\xc16-gcc.exe" -omf=coff -mcpu=33EP128GM304 -c "P33EVtest.S" -o"P33EVtest.o"
License expires in 1 days
Make: The target "C:\XdsPIC\dsPIC33EV\dsPIC33EV.cof" is out of date.
Executing: "C:\MPLAB\XC16\bin\xc16-gcc.exe" -omf=coff -mcpu=33EP128GM304 "P33EVtest.o" -o"dsPIC33EV.cof" -Wl,-Tp33EP128GM304.gld,--defsym=__MPLAB_BUILD=1,-Map="dsPIC33EV.map",--report-mem,--no-data-init,--no-pack-data,--no-handles,--no-isr
License expires in 1 days


xc16-ld 1.25 (A)

Program Memory  [Origin = 0x200, Length = 0x153ec]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x200                 0xe            0x15  (21)

                     Total program memory used (bytes):           0x15  (21) <1%


Data Memory  [Origin = 0x1000, Length = 0x4000]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------

                        Total data memory used (bytes):              0  (0) 


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                             0                                   0  (0)
stack                       0x1000                              0x4000  (16384)

                        Maximum dynamic memory (bytes):         0x4000  (16384)

Executing: "C:\MPLAB\XC16\bin\xc16-bin2hex.exe" "C:\XdsPIC\dsPIC33EV\dsPIC33EV.cof" -omf=coff
Loaded C:\XdsPIC\dsPIC33EV\dsPIC33EV.cof.
----------------------------------------------------------------------
Release build of project `C:\XdsPIC\dsPIC33EV\dsPIC33EV.mcp' succeeded.
Language tool versions: xc16-as.exe v1.25, xc16-gcc.exe v1.25, xc16-ld.exe v1.25, xc16-ar.exe v1.25
Sat Nov 14 13:05:50 2015
----------------------------------------------------------------------
BUILD SUCCEEDED