Creating and uploading a custom JASON file to enable a custom board

@shensley,

Thank you for the above info, it is super helpful.

After doing a little more debugging on my JSON file today I believe that the setup of the jason2daisy isn’t correct and/or I am using it incorrectly.

I copied over the pod.json and called is seq16.json and changed the name to “seq16”.

I then ran the following:
python -m json2daisy resources\SEQ16.json

And I got this:

C:\Users\direc\Documents\GitHub\Daisy\json2daisy\src\json2daisy>python -m json2daisy resources\SEQ16.json
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 344, in get_provider
    module = sys.modules[moduleOrReq]
KeyError: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\direc\Documents\GitHub\Daisy\json2daisy\src\json2daisy\json2daisy.py", line 294, in <module>
    header, info = generate_header_from_file(args.source)
  File "C:\Users\direc\Documents\GitHub\Daisy\json2daisy\src\json2daisy\json2daisy.py", line 259, in generate_header_from_file
    return generate_header(daisy_description)
  File "C:\Users\direc\Documents\GitHub\Daisy\json2daisy\src\json2daisy\json2daisy.py", line 196, in generate_header
    license_string = pkg_resources.resource_string(__package__, 'resources/LICENSE').decode('utf-8')
  File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 1142, in resource_string
    return get_provider(package_or_requirement).get_resource_string(
  File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 346, in get_provider
    __import__(moduleOrReq)
ValueError: Empty module name

I really like the idea of JSON file, I am wondering if there is an option to add the python install as part of the toolchain install. That way all the pieces you need are there and in a known state to work.

I have started looking at the seed.h & seed.cpp along with the pod.h/pod.cpp files as well.

I am looking forward to sending out a post of my hardware blinking an LED and working forward from there! :slight_smile:

Thank you for all of your help thus far.
I greatly appreciate it.

Brett