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

SAMC UART Bootloader does not work #52

Open
fdasbfg opened this issue Jan 6, 2024 · 0 comments
Open

SAMC UART Bootloader does not work #52

fdasbfg opened this issue Jan 6, 2024 · 0 comments

Comments

@fdasbfg
Copy link

fdasbfg commented Jan 6, 2024

I have a custom board with SAMC21E, and I am trying to get the UART bootloader working. I would like to use SERCOM1, and reconfigured everything to use the correct pins. I can upload the new binary file and the LED blinks like it should, but I can't upload code using arduino.

To try and get to the bottom of the problem I made an Atmel Studio project to see if I could debug the issue. After a lot of trial and error I managed to copy settings from the makefile into atmel studio's built in toolchain manager, as just using an external makefile only shows raw assembly, no source file. I can now debug like normal and watch the code run from the source files.

I can send a "#" over serial and the "serial_sharp_received" function returns true and the "sam_ba_monitor_run" function starts and the code seems to just sit waiting for more data over serial, the "serial_is_rx_ready" function. This makes me think everything is at least configured properly, the proper clock settings, sercom settings, and baudrate at least.

Any ideas on where to go next would be greatly appreciated, because I have no idea where to go from here!

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

No branches or pull requests

1 participant