Thank you for working on this, support for USB on the PIC16 parts would be great.
I have tried to make the usb_serial work with a PIC16F1455. I have downloaded the latest version of the libraries and added your code to the top of usb_drv_core.jal. When I compile I get many errors. The first is [Error] (lib/usb_drv_core.jal) [Line 164] "postinc1" not defined, refering to the line POSTINC1 = data[index] in _usb_copy_array_to_ram, this seems to make sense as it still refers to the undefined postinc1. I assume more modifications are needed to make this work, but I don't know what to do Emil -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/d/optout.
Compilation started at :06.05.2014 15:30:16
jal jalv24q2 (compiled Jan 23 2014)
[Error] (lib/usb_drv_core.jal) [Line 164] "postinc1" not defined
[Error] (lib/usb_drv_core.jal) [Line 164] 'end' expected (got 'postinc1')
[Error] (lib/usb_drv_core.jal) [Line 164] {FOR starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_core.jal:163}
[Error] (lib/usb_drv_core.jal) [Line 164] "postinc1" not defined
[Error] (lib/usb_drv_core.jal) [Line 164] 'end' expected (got 'postinc1')
[Error] (lib/usb_drv_core.jal) [Line 164] {procedure starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_core.jal:155}
[Error] (lib/usb_drv_core.jal) [Line 164] "postinc1" not defined
[Error] (lib/usb_drv_core.jal) [Line 164] unexpected token: "postinc1"
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] "usb_send_status_ack" not
defined
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] 'end' expected (got
'usb_send_status_ack')
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] {BLOCK starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_cdc_class.jal:99}
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] "usb_send_status_ack" not
defined
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] 'end' expected (got
'usb_send_status_ack')
[Error] (lib/usb_drv_cdc_class.jal) [Line 106] {CASE starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_cdc_class.jal:97}
[Error] (lib/usb_drv_cdc_class.jal) [Line 107] 'procedure' expected (got
'block')
[Error] (lib/usb_drv_cdc_class.jal) [Line 107] {procedure starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_cdc_class.jal:88}
[Error] (lib/usb_drv_cdc_class.jal) [Line 108] '=' expected (got ':')
[Error] (lib/usb_drv_cdc_class.jal) [Line 108] 'end' expected (got ':')
[Error] (lib/usb_drv_cdc_class.jal) [Line 108] {BLOCK starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv_cdc_class.jal:107}
[Error] (lib/usb_drv_cdc_class.jal) [Line 108] unexpected token: ":"
[Error] (lib/usb_drv.jal) [Line 195] "usb_send_data_chunk" not defined
[Error] (lib/usb_drv.jal) [Line 195] 'end' expected (got 'usb_send_data_chunk')
[Error] (lib/usb_drv.jal) [Line 195] {IF starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv.jal:177}
[Error] (lib/usb_drv.jal) [Line 195] "usb_send_data_chunk" not defined
[Error] (lib/usb_drv.jal) [Line 195] 'end' expected (got 'usb_send_data_chunk')
[Error] (lib/usb_drv.jal) [Line 195] {BLOCK starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv.jal:67}
[Error] (lib/usb_drv.jal) [Line 195] "usb_send_data_chunk" not defined
[Error] (lib/usb_drv.jal) [Line 195] 'end' expected (got 'usb_send_data_chunk')
[Error] (lib/usb_drv.jal) [Line 195] {CASE starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv.jal:64}
[Error] (lib/usb_drv.jal) [Line 197] 'end' expected (got 'else')
[Error] (lib/usb_drv.jal) [Line 197] {procedure starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_drv.jal:59}
[Error] (lib/usb_drv.jal) [Line 197] unexpected token: "else"
[Error] (lib/usb_serial.jal) [Line 462] "usb_handle_isr" not defined
[Error] (lib/usb_serial.jal) [Line 462] 'end' expected (got 'usb_handle_isr')
[Error] (lib/usb_serial.jal) [Line 462] {procedure starts at
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib/usb_serial.jal:459}
[Error] (lib/usb_serial.jal) [Line 462] "usb_handle_isr" not defined
[Error] (lib/usb_serial.jal) [Line 462] unexpected token: "usb_handle_isr"
[Error] (16f1455_usb_test.jal) [Line 20] "usb_serial_init" not defined
[Error] (16f1455_usb_test.jal) [Line 20] unexpected token: usb_serial_init
Compiler CommandLine:
C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\compiler\jalv2.exe
"C:\Users\Emil\Dropbox\elektronikk\usb_test_pic16f1455_jal\16f1455_usb_test.jal"
-s "C:\Users\Emil\Dropbox\ELEKTR~1\JALPack\lib"
Errors :39 Warnings :0
usb_drv_core.jal
Description: Binary data
16f1455_usb_test.jal
Description: Binary data
