Page 1 of 1

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

Posted: Mon Nov 08, 2021 4:56 am
by dustralia
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