Skip to content

TypeError converting project, possibly related to being generated by STM32Cube #1

@ablaylock

Description

@ablaylock

I am trying to use your project to make a cmake file out of a uVision file that was generated from STM32Cube. When I run the main.py script on the project I get the following output:

Using µVision5 Project File 'G:\Users\allenb\Project\tim2_pwm\MDK-ARM\tim2_pwm.uvprojx'
Traceback (most recent call last):
File "main.py", line 879, in <module>
main()
File "main.py", line 852, in main
uvp = UVisionProject.new(project_path)
File "main.py", line 455, in new
) for target in xproj.xpath("Targets/Target")
File "main.py", line 455, in <listcomp>
) for target in xproj.xpath("Targets/Target")
File "main.py", line 376, in <genexpr>
) for to in target.xpath("TargetOption")
File "main.py", line 369, in <genexpr>
) for tco in to.xpath("TargetCommonOption")
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I have attached the project if that is helpful and would be happy to contribute to debugging however I can.

problem.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions