You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to unload conflicting slot: Write to CapeMgr slots failed: Error: EEXIST, file already exists
I have determined that the file that "exists" in the error above is:
/sys/devices/bone_capemgr.9/slots
The code that I have provided a link to is:
varSERVO='P9_14';varduty_min=0.03;varposition=0;varincrement=0.1;b.pinMode(SERVO,b.OUTPUT);updateDuty();functionupdateDuty(){// compute and adjust duty_cycle based on// desired position in range 0..1varduty_cycle=(position*0.115)+duty_min;console.log(duty_cycle);b.analogWrite(SERVO,duty_cycle,60,scheduleNextUpdate);console.log("Duty Cycle: "+parseFloat(duty_cycle*100).toFixed(1)+" %");}functionscheduleNextUpdate(){// adjust position by increment and// reverse if it exceeds range of 0..1position=position+increment;if(position<0){position=0;increment=-increment;}elseif(position>1){position=1;increment=-increment;}// call updateDuty after 200mssetTimeout(updateDuty,200);}
Note, it took a bit of debugging to get the messages above. The actual error I get is:
/usr/local/lib/node_modules/bonescript/src/my.js:230
callback(resp);
^
TypeError: undefined is not a function
at onUnloadSlot (/usr/local/lib/node_modules/bonescript/src/my.js:230:13)
at unloadSlot (/usr/local/lib/node_modules/bonescript/src/my.js:219:13)
at onWriteSlots (/usr/local/lib/node_modules/bonescript/src/my.js:193:43)
at onReadSlots (/usr/local/lib/node_modules/bonescript/src/my.js:182:13)
at onFindCapeMgr (/usr/local/lib/node_modules/bonescript/src/my.js:157:9)
at Object.exports.load_dt (/usr/local/lib/node_modules/bonescript/src/my.js:140:5)
at onDTBOExists (/usr/local/lib/node_modules/bonescript/src/my.js:317:26)
at onDTBOExistsTest (/usr/local/lib/node_modules/bonescript/src/my.js:264:13)
at Object.exports.create_dt (/usr/local/lib/node_modules/bonescript/src/my.js:259:9)
at Object.exports.setPinMode (/usr/local/lib/node_modules/bonescript/src/hw_capemgr.js:102:12)
This issue does not occur with the latest version , tested on BeagleBone Black with
Linux beaglebone 4.9.88-ti-r111 and BeagleBoard.org Debian Image 2018-03-05
Latest probably uses hw_mainline.js. Keeping these hw_oldkernel.js, hw_capemgr.js and hw_universal.js was meant to try to support old kernels. I'm not sure if it is viable. You'd need to get old kernels to test these functions. Considering will-not-fix, but would need to explicitly state a series of supported kernels that were reasonable.
From @psiphi75 on December 11, 2015 4:37
I am running bonescript 0.2.5 (the latest) on a Beaglebone Black RevC. Running an up-to-date Debian 7 (7.9??) and kernel as follows:
I get the following error when running the code listed here (http://beagleboard.org/support/BoneScript/ServoMotor/):
I have determined that the file that "exists" in the error above is:
The code that I have provided a link to is:
Note, it took a bit of debugging to get the messages above. The actual error I get is:
Copied from original issue: jadonk#111
The text was updated successfully, but these errors were encountered: