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

Add support to SAM4L SoC Family #143

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nandojve
Copy link

Add FlashOverrideSambaError exception. This is necessary to signal to user that he is trying to erase a region where bootloader is instaled. SAM4L doesn't have ROM bootloader and sam-ba is in flash area
Add SAM4L flashcalw controller
Introduce SAM4L support
Tested with SAM4LC4B

I made an workaround to allow readChipId. I hope discuss a better approach related to that to allow proper SAM4L detection.
https://github.com/shumatech/BOSSA/compare/master...nandojve:bossa/sam4l?expand=1#diff-4bc76381991166f0b7d7a4a0a9116fdeR83-R84

When a device have bootloader on flash, user can set a offset that may
try erase and/or override the bootloader.  Add an exception to abort on
any of that conditions.

Signed-off-by: Gerson Fernando Budke <[email protected]>
The SAM4L SoC have a special flash controller on the whole family.  Add
CalwFlash controller to allow bossac work with SAM4L SoC family.

Signed-off-by: Gerson Fernando Budke <[email protected]>
This enables SAM4L SoC family support on BOSSA.

Note: SAM4L SoC family doesn't have SAM-BA boot rom. User needs
compile and set all configuration to allow use any SAM-BA host
like BOSSA.

Signed-off-by: Gerson Fernando Budke <[email protected]>
The SAM4L doesn't have an user interface to access the reset
controller.  Add Cortex-M4 NVIC reset instructions to allow
use of parameter -R.

Signed-off-by: Gerson Fernando Budke <[email protected]>
galak added a commit to galak/sdk-ng that referenced this pull request Oct 8, 2020
galak added a commit to zephyrproject-rtos/sdk-ng that referenced this pull request Oct 9, 2020
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.

1 participant