-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
I just tried switching from BSTC to OpenSpin for compiling the Spin portions of xbasic and am running into a problem. I get an "undefined symbol 'vm'" error when compiling this code:
CON
' make some vm_interface constants available
_MBOX_SIZE = vm#_MBOX_SIZE
_STATE_SIZE = vm#_STATE_SIZE
FLASH_BASE = vm#FLASH_BASE
RAM_BASE = vm#RAM_BASE
HUB_BASE = vm#HUB_BASE
' character codes
CR = $0d
LF = $0a
OBJ
ser : "FullDuplexSerial"
vm : "vm_interface"
PUB init_serial(baudrate, rxpin, txpin)
ser.start(rxpin, txpin, 0, baudrate)
PUB init(mbox, state, code, data, cache_mbox, cache_line_mask) | params[vm#_INIT_SIZE]
params[vm#INIT_BASE] := data
params[vm#INIT_STATE] := state
params[vm#INIT_MBOX] := mbox
params[vm#INIT_CACHE_MBOX] := cache_mbox
params[vm#INIT_CACHE_MASK] := cache_line_mask
vm.start(code, @params)
Here is the error message:
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.80 Compiled on Sep 29 2016 10:35:12
Compiling...
spin/serial_helper.spin
|-packet_driver.spin
|-vm_runtime.spin
vm_runtime.spin(21:73) : error : Undefined symbol
Line:
PUB init(mbox, state, code, data, cache_mbox, cache_line_mask) | params[vm#_INIT_SIZE]
Offending Item: vm
I built OpenSpin from sources cloned today from github so it should be the latest version.
Reactions are currently unavailable