ggoss / personal-site-comments

Reader comments left at garrettgoss.com
0 stars 0 forks source link

blog/2019/07/getting-started-with-the-sipeed-maixduino-kit #2

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

Getting Started with the Sipeed Maixduino Kit | Blog | Garrett Goss

None

https://garrettgoss.com/blog/2019/07/getting-started-with-the-sipeed-maixduino-kit.html

fuzzballb commented 5 years ago

Thanks, worked instantly using this tutorial.

Did indeed need to use the

sudo usermod -a -G dialout $(whoami)

Command, to be able to flash the kfpkg to the board

rubuntu-34 commented 4 years ago

Hi Garret, congratulations for this post is really detailed and every step worked perfectly

I'm having problems just in the last step "Testing on the device" my Maixduino kit came with a different camera module "Maixduino_GC0328" instead "Sipeed_OV2640".

(venv) mint@mint:~/maixpy_test$ ampy --port /dev/ttyUSB0 -d 0.5 run test.py
Traceback (most recent call last):
  File "/home/mint/maixpy_test/venv/bin/ampy", line 8, in <module>
    sys.exit(cli())
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/cli.py", line 337, in run
    output = board_files.run(local_file, not no_output)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/files.py", line 303, in run
    out = self._pyboard.execfile(filename)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/pyboard.py", line 273, in execfile
    return self.exec_(pyfile)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/pyboard.py", line 267, in exec_
    raise PyboardError('exception', ret, ret_err)
ampy.pyboard.PyboardError: ('exception', b'error gc0328 detect, ret id is 0xff\r\r\n[MAIXPY]: sensor reset function is null\r\n', b'Traceback (most recent call last):\r\n  File "<stdin>", line 8, in <module>\r\nOSError: Reset Failed\r\n')

Any idea how to update the code with the corresponding camera module?

Thanks in advance, cheers!

rubuntu-34 commented 4 years ago

Hi Garret, congratulations for this post is really detailed and every step worked perfectly

I'm having problems just in the last step "Testing on the device" my Maixduino kit came with a different camera module "Maixduino_GC0328" instead "Sipeed_OV2640".

(venv) mint@mint:~/maixpy_test$ ampy --port /dev/ttyUSB0 -d 0.5 run test.py
Traceback (most recent call last):
  File "/home/mint/maixpy_test/venv/bin/ampy", line 8, in <module>
    sys.exit(cli())
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/cli.py", line 337, in run
    output = board_files.run(local_file, not no_output)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/files.py", line 303, in run
    out = self._pyboard.execfile(filename)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/pyboard.py", line 273, in execfile
    return self.exec_(pyfile)
  File "/home/mint/maixpy_test/venv/lib/python3.8/site-packages/ampy/pyboard.py", line 267, in exec_
    raise PyboardError('exception', ret, ret_err)
ampy.pyboard.PyboardError: ('exception', b'error gc0328 detect, ret id is 0xff\r\r\n[MAIXPY]: sensor reset function is null\r\n', b'Traceback (most recent call last):\r\n  File "<stdin>", line 8, in <module>\r\nOSError: Reset Failed\r\n')

Any idea how to update the code with the corresponding camera module?

Thanks in advance, cheers!

Ok, solved! Just need to upgrade the firmware to v0.5.0 from:

https://dl.sipeed.com/MAIX/MaixPy/release/master/maixpy_v0.5.0_119_ge7ab30a

There I choose "maixpy_v0.5.0_119_ge7ab30a_with_lvgl.bin" randomly and worked with MaixPy in Linux and Windows :)

Cheers!