View Single Post
Old 03-22-2015, 06:28 PM   #1776 (permalink)
P-hack
Master EcoModder
 
P-hack's Avatar
 
Join Date: Oct 2012
Location: USA
Posts: 1,408

awesomer - '04 Toyota prius
Thanks: 102
Thanked 252 Times in 204 Posts
didn't see any changes in git, and I'm not sure how helpful this is (since I just changed some case names and a filename or two), and there seems to be an impedance mismatch between git and mplabx, so my files might seem like they are in a strange location. But attached are the sources I used on linux. I am not intending to fork anything here, just a snapshot in time.

Also the built files are in post 1771.

here is the clean/build log if it helps too:
PHP Code:

CLEAN SUCCESSFUL 
(total time70ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make
[1]: Entering directory `/var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X'
make  -f nbproject/Makefile-default.mk dist/default/production/mpcontrol.X.production.hex
make[2]: Entering directory '/var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X'
"/var/progs/microchip/xc16/v1.24/bin/xc16-gcc"   ../../ACInductionController/ACInductionController.c  -o build/default/production/_ext/1746335589/ACInductionController.o  -c -mcpu=30F4011  -MMD -MF "build/default/production/_ext/1746335589/ACInductionController.o.d"        -g -omf=elf -O0 -msmart-io=1 -Wall -msfr-warn=off
"/var/progs/microchip/xc16/v1.24/bin/xc16-gcc"   ../../ACInductionController/UART4011.c  -o build/default/production/_ext/1746335589/UART4011.o  -c -mcpu=30F4011  -MMD -MF "build/default/production/_ext/1746335589/UART4011.o.d"        -g -omf=elf -O0 -msmart-io=1 -Wall -msfr-warn=off
"/var/progs/microchip/xc16/v1.24/bin/xc16-gcc"   -o dist/default/production/mpcontrol.X.production.elf  build/default/production/_ext/1746335589/ACInductionController.o build/default/production/_ext/1746335589/UART4011.o      -mcpu=30F4011        -omf=elf -Wl,,--defsym=__MPLAB_BUILD=1,,--script=p30F4011.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/mpcontrol.X.production.map",--report-mem 


Program Memory  [Origin = 0x100, Length = 0x7f00]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x100               0x170           0x228  (552)
.const                       0x270               0xff0          0x17e8  (6120)
.text                       0x1260              0x1a60          0x2790  (10128)
.dinit                      0x2cc0               0x174           0x22e  (558)

                     Total program memory used (bytes):         0x43ce  (17358) 35%


Data Memory  [Origin = 0x800, Length = 0x800]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------
.ndata                       0x800                   0           0x1ac  (428)
.nbss                        0x9ac                   0           0x188  (392)
.ndata                       0xb34                   0            0x58  (88)
.nbss                        0xb8c                   0            0x40  (64)

                        Total data memory used (bytes):          0x3cc  (972) 47%


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                             0                                   0  (0)
stack                        0xbcc                               0x434  (1076)

                        Maximum dynamic memory (bytes):          0x434  (1076)

"/var/progs/microchip/xc16/v1.24/bin"/xc16-bin2hex dist/default/production/mpcontrol.X.production.elf -a  -omf=elf  
make[2]: Leaving directory '/var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X'
make[1]: Leaving directory 
`/var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X'

BUILD SUCCESSFUL (total time: 2s)
Loading code from /var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X/dist/default/production/mpcontrol.X.production.hex...
Loading completed 


and here is the info from the mplabx dashboard for the project
PHP Code:

/var/home/dave/Desktop/proj/mpcontroller/MPLABXProjects/mpcontrol.X
mpcontrol
Project Type
Application Configuration: default
Device
dsPIC30F4011
 Checksum
0xD1AE
Compiler Toolchain
XC16 
(v1.24) [/var/progs/microchip/xc16/v1.24/bin]
Production ImageOptimizationgcc 0
Memory
Usage Symbols disabled
Click to enable Load Symbols.
Data 2048 (0x800bytes
Program 16384 
(0x4000words
Debug Tool
 PICkit2
Debug Resources
Program BP Used
0  Free2
Data BP Used
0  Free2
Data Capture BP
No Support
Unlimited BP 
(S/W): No Support

Other Project Info
Data Reserved Memory
Production Image
Program Reserved Memory
Production Image

Control Points
.

Java NetBeans Properties
MPLAB X IDE v2.30 
mpcontrol : default
                   
os.name Linux
                   os
.arch amd64
                os
.version 3.13.0-32-generic
       sun
.arch.data.model 64
          sun
.java.command org.netbeans.Main --userdir /home/dave/.mplab_ide/dev/v2.30 --branding mplab
              java
.version 1.7.0_67
           java
.vm.version 24.65-b04
      java
.runtime.version 1.7.0_67-b01
java
.specification.version 1.7
             netbeans
.user : /home/dave/.mplab_ide/dev/v2.30
             netbeans
.home : /var/progs/microchip/mplabx/mplab_ide/platform
     netbeans
.projects.dir : /home/dave/MPLABXProjects
            java
.io.tmpdir : /tmp
                 user
.home : /home/dave
              user
.country US
             user
.language en
             user
.timezone America/Chicago
          sun
.jnu.encoding UTF-8
             file
.encoding UTF-8
            file
.separator : /

Java System Memory
         Java Total Memory 
=    247 Mb
         Java Used Memory  
=    112 Mb
         Java Free Memory  
=    135 Mb
CommittedVirtualMemorySize 
=   3770 Mb
    FreePhysicalMemorySize 
=    585 Mb
    MaxFileDescriptorCount 
=      0 Mb
   OpenFileDescriptorCount 
=      0 Mb
            ProcessCpuLoad 
=      0 Mb
             SystemCpuLoad 
=      0 Mb
   TotalPhysicalMemorySize 
=   3754 Mb

System Path
  PATH 
= /home/dave/bin:/var/progs/jdk/bin:/var/progs/adk/sdk/tools:/var/progs/adk/sdk/platform-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/var/progs/microchip/xc8/v1.33/bin:/var/progs/microchip/xc16/v1.24/bin 
so if you unzip this into directory /home/dave/Desktop/proj/mpcontroller the mplab project posted above should work as is, but I don't recommend it long term.
Attached Files
File Type: zip ACInductionController.zip (48.4 KB, 56 views)

Last edited by P-hack; 03-22-2015 at 06:45 PM..
  Reply With Quote
The Following User Says Thank You to P-hack For This Useful Post:
Astro (03-23-2015)