Hi Benj
I can't get Windspeed to work with dsPIC BL0032
For example, user Port F/C F0 Pin 0
Do you have another suggestion?
Interuupt:
- Interrupt Freq 50Hz.JPG (13.38 KiB) Viewed 4406 times
Interuupt:
- Interrupt Aneometer.JPG (13.6 KiB) Viewed 4406 times
See file below
!
Attachment:
Hope very much you will help with a solution
Compiler_Messages:
Code: Select all
Target folder: C:\Users\sun\Desktop
Source name: C:\Users\sun\Desktop\BL0032_KeyPress-012.fcfx
Title:
Description:
Device: PIC16.33E.BL0032
Generated by: Flowcode v8.2.1.14
Date: Monday, October 21, 2019 11:05:34
Users: 1
Registered to: monie jacobsen
License key: X6U4U7
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "BL0032_KeyPress-012" "C:\Users\sun\Desktop\" "33EP256MU806"
C:\Users\sun\Desktop>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "BL0032_KeyPress-012".c -o "BL0032_KeyPress-012".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
BL0032_KeyPress-012.c: In function '_T1Interrupt':
coff-cc1.exe: warning: _T1Interrupt PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency
BL0032_KeyPress-012.c: In function '_T2Interrupt':
coff-cc1.exe: warning: _T2Interrupt PSV model not specified for '_T2Interrupt';
assuming 'auto_psv' this may affect latency
BL0032_KeyPress-012.c: In function '_INT3Interrupt':
coff-cc1.exe: warning: _INT3Interrupt PSV model not specified for '_INT3Interrupt';
assuming 'auto_psv' this may affect latency
BL0032_KeyPress-012.c: In function '_INT4Interrupt':
coff-cc1.exe: warning: _INT4Interrupt PSV model not specified for '_INT4Interrupt';
assuming 'auto_psv' this may affect latency
BL0032_KeyPress-012.c: At top level:
BL0032_KeyPress-012.c:9160:2: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FOSCSEL' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FPOR' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FAS' definition has been deprecated: consider migrating to #pragma config
BL0032_KeyPress-012.c:9160:2: warning: '_FUID0' definition has been deprecated: consider migrating to #pragma config
.
Compilation successful!
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_link.bat "C:\Users\sun\Desktop\BL0032_KeyPress-012" 33EP256MU806 33E
xc16-ld 1.26 (A)
Program Memory [Origin = 0x200, Length = 0x2aa00]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0x4ce 0x735 (1845)
.const 0x6ce 0xc4 0x126 (294)
.text 0x792 0x2698 0x39e4 (14820)
.dinit 0x2e2a 0xe 0x15 (21)
Total program memory used (bytes): 0x4254 (16980) 6%
Ivt Memory [Origin = 0x4, Length = 0x1fc]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.ivt._T1Interrupt 0x1a 0x2 0x3 (3)
.ivt._T2Interrupt 0x22 0x2 0x3 (3)
.ivt._INT3Interrupt 0x7e 0x2 0x3 (3)
.ivt._INT4Interrupt 0x80 0x2 0x3 (3)
Auxflash Memory [Origin = 0x7fc000, Length = 0x3ffa]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
Total auxflash memory used (bytes): 0 (0) <1%
Data Memory [Origin = 0x1000, Length = 0x7000]
section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x1000 0 0x44 (68)
.bss 0x1044 0 0x14 (20)
Total data memory used (bytes): 0x58 (88) <1%
Dynamic Memory Usage
region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x1058 0x6fa8 (28584)
Maximum dynamic memory (bytes): 0x6fa8 (28584)
Generating HEX file
C:\Users\sun\Desktop>xc16-bin2hex -omf=coff "C:\Users\sun\Desktop\BL0032_KeyPress-012".cof
. .
Generating Assembler file
C:\Users\sun\Desktop>xc16-objdump -omf=coff -S "C:\Users\sun\Desktop\BL0032_KeyPress-012".cof 1>"C:\Users\sun\Desktop\BL0032_KeyPress-012".asm
HEX file creation successful!
Launching the programmer...
C:\Program Files (x86)\Flowcode v8\tools\mLoader\mLoader.exe -eb091 "BL0032_KeyPress-012.hex" -config
Loading file...
File loaded from...
=> BL0032_KeyPress-012.hex
File sending...
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
File sent!
FINISHED