phcharm中怎么把image_size, base_dir, output_file值定义给spiffsgen.main()

dustralia
Posts: 5
Joined: Fri Nov 05, 2021 12:50 pm

phcharm中怎么把image_size, base_dir, output_file值定义给spiffsgen.main()

Postby dustralia » Mon Nov 08, 2021 4:56 am

spiffsgen.main(['0x170000', 'data', 'data.bin']) 这样执行后,
报错信息是:
spiffsgen.main(['0x170000', 'data', 'data.bin'])
TypeError: main() takes 0 positional arguments but 1 was given

spiffsgen.main() 这样执行后,
报错信息是
error: the following arguments are required: image_size, base_dir, output_file

在CMD中调用spiffsgen可以正常工作生成bin,在pycharm调用不了spiffsgen

Who is online

Users browsing this forum: No registered users and 61 guests