Skip to content

Error parsing integer number '' #28

@xobs

Description

@xobs

I tried running the generator as described from the README, but it gave me an error saying it couldn't parse an empty string. I'm not sure where the value came from.

$ cargo generate gh:probe-rs/flash-algorithm-template
⚠️   Favorite `gh:probe-rs/flash-algorithm-template` not found in config, using it as a git repository: https://github.com/probe-rs/flash-algorithm-template.git
🤷   Project Name: tms570
🔧   Destination: /Users/seancross/Code/tms570 ...
🔧   project-name: tms570 ...
🔧   Generating template ...
✔ 🤷   What is the target architecture? · thumbv8m.base-none-eabi
🤷   What is the target RAM start address where the flash algorithm should be placed?: 0x08001000
🤷   What is the target RAM size in bytes?: 131072
🤷   What is the target Flash start address of the device the flash algorithm is for?: 0
🤷   What is the target Flash size in bytes?: 524288
🤷   What is the target Flash page size in bytes?: 0x400
🤷   What is the target Flash sector size in bytes?: 0x400
🤷   What is the erased state of a byte in Flash?: 0xFF
Error: ⛔   Failed executing script: calculate-memory.rhai

Caused by:
    Error parsing integer number '': cannot parse integer from empty string (line 11, position 9)
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions