View previous topic :: View next topic |
Author |
Message |
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Sat Jan 07, 2017 2:00 pm Post subject: Compile errors with new Bascom version 2.0.8.0 |
|
|
Hello,
Try to compile my old programm with new version 2.0.8.0 and now appears this errors messages
Error:222 Line: 1277 Illegal character [expected(,got"[_INPBIN_EXTENDED]], in file:C:\Users\xxx\xxx.bas
Error:-13021 Illegal character [expected(,got"[_INPBIN_EXTENDED]], in file:C:\PROGRAM FILES(X86)\MCS ELECTRONICS\BASCOM-AVR_2.0.8.0\LIB\XMEGA.LIB
What to change to fix that?
Regards
P_Santos
(BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Sat Jan 07, 2017 2:25 pm Post subject: |
|
|
Must inform that i use the Uart5 in the programm witht Ischarwaiting(#5)
Config Com5 = 38400 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8
Open "COM5:" For Binary As #5
Config Print4 = Portb.7 , Mode = Set
Config Portb.7 = Output
Config Serialin4 = Buffered , Size = 100
Regards
P_Santos |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Jan 07, 2017 9:13 pm Post subject: |
|
|
just add a constant : CONST _INPBIN_EXTENDED=0
when you use CONFIG INPUTBIN, it will be set to 1. But there is no default 0 value. I will have it changed. _________________ Mark |
|
Back to top |
|
|
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Mon Jan 09, 2017 12:03 pm Post subject: |
|
|
Hello Mark,
Thank you
If add CONST _INPBIN_EXTENDED=0
do it support the bufspace?
History 2.0.8.0 - bufspace() did not support uart 5-8
I have two pcb with xmega128, on one i use uart 1 and this works better than the other pcb that function with uart5
Do you think that this solve the serial communication problem on the second pcb?
I can only test it on the field in two months
regards
P_Santos |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Jan 09, 2017 2:06 pm Post subject: |
|
|
if you use the new config inputbin=1 then you get support for 64KB size of data. In previous versions it was max 255 bytes.
The bufspace simply returns the data space.
uart1 and 5 should behave equal. _________________ Mark |
|
Back to top |
|
|
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Mon Jan 09, 2017 4:30 pm Post subject: |
|
|
Thank you for the explanation
regards
P_Santos |
|
Back to top |
|
|
|