Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong XMC1300 Boot Kit identifier in xmc_data.py #274

Merged

Conversation

misaz
Copy link
Contributor

@misaz misaz commented Apr 24, 2024

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description

XMC for Arduino do not work with XMC1300 Boot Kit (which uses XMC1302 Microcontroller). Uploading sketch ends up with following error with curious description:

Traceback (most recent call last):
  File "C:\Users\michal\AppData\Local\Arduino15\packages\Infineon\hardware\xmc\3.0.0/tools/xmc-flasher.py", line 263, in <module>
    parser()
  File "C:\Users\michal\AppData\Local\Arduino15\packages\Infineon\hardware\xmc\3.0.0/tools/xmc-flasher.py", line 258, in parser
    args.func(args) 
  File "C:\Users\michal\AppData\Local\Arduino15\packages\Infineon\hardware\xmc\3.0.0/tools/xmc-flasher.py", line 217, in parser_upload_func
    check_device(args.device, args.port)
  File "C:\Users\michal\AppData\Local\Arduino15\packages\Infineon\hardware\xmc\3.0.0/tools/xmc-flasher.py", line 148, in check_device
    device_value = get_mem_contents(master_data[device]['IDCHIP']['addr'], master_data[device]['IDCHIP']['size'], device, port)
KeyError: 'XMC1302-0200'
Failed uploading: uploading error: exit status 1

Root cause is that xmc_data.py which contains definition of some address for each supported board has wrong identifier of XMC1300 Boot Kit.

This push request fix it.

Copy link
Collaborator

@LinjingZhang LinjingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Misaz,

Thanks for fixing, This boot kit does indeed use the XMC1302. I could reproduce the bug and fix it with your change.

@LinjingZhang LinjingZhang merged commit ff51cfb into Infineon:develop May 8, 2024
jaenrig-ifx pushed a commit to jaenrig-ifx/XMC-for-Arduino that referenced this pull request Jan 17, 2025
…ifier

Fix wrong XMC1300 Boot Kit identifier in xmc_data.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants