1

I am using SAMC21 controller and xc32 compiler. I want to fill my all unused ROM memory with the software reset instruction. Does anyone know, what is the command line option for performing software reset from XC32 compiler.

IDE - MPLABX
Compiler - XC32
Microcontroller - SAMC21

Mike
  • 4,041
  • 6
  • 20
  • 37

1 Answers1

1

The --FILL driver option allows you to fill the unused program memory with a known value.
You can access this option in the MPLAB® X IDE

XC32 Project Properties > XC32 Linker > Fill Flash Memory

Mike
  • 4,041
  • 6
  • 20
  • 37
  • Fill option i saw, we can fill the known value in unused location, but actually i am searching for software reset instruction, which reset the micro controller ROM memory. – Hitesh Kumar Tiwari May 30 '20 at 21:21
  • You could add the code for the RESET instruction as a fill value. I am not familar with MIPS. Is there a RESET instruction? Maybe add the code for a jump to address `0x000000` – Mike Jun 02 '20 at 07:13
  • I went through compiler and linker manual, but i did not find a reset instruction – Hitesh Kumar Tiwari Jun 06 '20 at 04:44