Flashpage test on saml21j17b

Hi,

I’m trying to use the periph_flashpage test with a saml21j17b chip. For this to run, I added

ROM_LEN ?= 0x20000

RAM_LEN ?= 0x4000

to

RIOT/cpu/sam0_common/Makefile.include

However, even with this, flashpage_write_and_verify never returns FLASHPAGE_OK and is unable to write data to any pages. Has anyone encountered this?

Thanks.

Hi!

I’m not sure why it doesn’t work for your config, but I’d advice you rather to do:

ifneq (,$(filter saml21j17b,$(CPU_MODEL)))
  ROM_LEN ?= 0x20000
  RAM_LEN ?= 0x4000
endif

In Makefile.include at cpu/sam0_common/Makefile.include.

It’s what you have done?

Cheers,

Francisco Javier Acosta Padilla
Research Engineer at INFINE team Inria Saclay Ile-de-France