First of all,
I am trying to run FreeMaster Example code of Jupyter Notebook for NodeJS:
installed on `C:\NXP\FreeMASTER 3.2\FreeMASTER Lite\scripting examples\NodeJS\FML_NodeJS.ipynb`
But the code seems like Javascript , not Python !?
So, Should I install JavaScipr Kernel before running this example ?
Which JavaScript Kernel should I install ?
1. IJavascript , 2. jp-kerne, 3. NeluKernelu, 4. TSLab, or others ?
Is it passible to write it into README.md file ?
--
And, for python code on Jupyter
Fail on Win11 platform and S32K144 uC.
Is there anything I am missing ?.
Thank you.
data = await SendRequest(ws, 'GetDetectedBoardInfo')
## print('Detected board info: ' + data) ## Error: TypeError: can only concatenate str (not "dict") to str
print('Detected board info: ')
print(data)
Detected board info:
{'protVer': 3, 'cfgFlags': 0, 'dataBusWdt': 1, 'globVerMajor': 2, 'globVerMinor': 0, 'cmdBuffSize': 60, 'recBuffSize': 512, 'recTimeBase': 16384, 'descr': [83, 51, 50, 120, 120, 32, 70, 114, 101, 101, 77, 65, 83, 84, 69, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
'protVer'=3
Is this meaning my protocol version=3?
for param=`GetDetectedBoardInfo` work fine.
but...
--
data = await SendRequest(ws, 'GetConfigParamString', "VS", 20)
print('Application version: ' + data)
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
Cell In[11], line 1
----> 1 data = await SendRequest(ws, 'GetConfigParamString', "VS", 20)
2 print('Application version: ' + data)
Cell In[5], line 9, in SendRequest(ws, method, *args)
7 return response.result['data']
8 else:
----> 9 raise Exception(response.result['error'])
10 else:
11 raise Exception(response.message)
Exception: {'code': 2147483923, 'message': 'This feature is only available on devices supporting protocol v4 and later.'}
Query application name.
Note: this API endpoint was added in protocol version 4. For older versions use GetDetectedBoardInfo.
「...was added in `protocol version 4`」
? but my 'protVer'=3?
Basically, all `GetConfigParamString` cause exception.
Should I remark all `GetConfigParamString` code ?
So, how to upgrade to protocol version 4 ? on uC? on Win11?