shumatech / BOSSA

BOSSA is a flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers. The motivation behind BOSSA is to create a simple, easy-to-use, open source utility to replace Atmel's SAM-BA software. BOSSA is an acronym for Basic Open Source SAM-BA Application to reflect that goal.
http://www.shumatech.com/web/products/bossa
BSD 3-Clause "New" or "Revised" License
372 stars 250 forks source link

Flashing SAME53N20 #122

Open rbickle opened 4 years ago

rbickle commented 4 years ago

Using BOSSAC to flash SAME53N20 device vis USB and Atmel SAM-BA monitor. The utility communicates with the device, but verify fails. When the flash is read back, it is still erased. I have created files showing the commands issued and the debug responses of each step. I do not know how to interpret the debug data. Thanks.

e53n20.zip

xeno27 commented 4 years ago

maybe same thing as by the SAMC21 (need at least 6ms to erase single page).

you can try my wait ready work around Pull Request

rbickle commented 4 years ago

Thanks for the info. I’m not sure how to implement this…

If I send you a dev. Board for this chip, would you test it for compatibility?

Thanks,

Rick

From: X3N0 [mailto:notifications@github.com] Sent: Thursday, February 20, 2020 3:11 AM To: shumatech/BOSSA BOSSA@noreply.github.com Cc: rbickle rbickle@intconsys.com; Author author@noreply.github.com Subject: Re: [shumatech/BOSSA] Flashing SAME53N20 (#122)

maybe same thing as by the SAMC21 (need at least 6ms to erase single page).

you can try my wait ready work around Pull Request https://github.com/shumatech/BOSSA/pull/123

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shumatech/BOSSA/issues/122?email_source=notifications&email_token=AOTAYVU27ZHYGMFK5XEMSCTRDZCKZA5CNFSM4KXPYFDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMMJ3QY#issuecomment-588815811 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOTAYVVGBKUZZPSM4LUQJMDRDZCKZANCNFSM4KXPYFDA . https://github.com/notifications/beacon/AOTAYVUH5DLWIIE724CXTFTRDZCKZA5CNFSM4KXPYFDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMMJ3QY.gif

rbickle commented 4 years ago

I have also found that if I erase the flash completely and flash only the bootloader code using the JTAG device, BOSSAC will program the application correctly at the offset. It will not verify or read the code back however.