Applet in SAM-BA

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I am unable to compile the file flash_app_main.c which resides in C:\Program Files (x86)\Atmel\sam-ba_2.15\applets\samd21j18a\sam-ba_applets\flash. This file is used by the applet in SRAM and comes with the SAM-BA software. I am getting a make error of sram_interrupt_sam_nvic.o file not found. I have not made any changes!

 

What am I missing?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I never tried building the applets but are you following the instructions in

http://ww1.microchip.com/downloa...

and

http://ww1.microchip.com/downloa...

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes I am exactly following these application notes and there are some more as well, but still no luck! Even without making any changes, the default file shows make error.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So the  sram_interrupt_sam_nvic.c has compiled ok and there is a .o? Can you show the error message?

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, I have attached error message. Please check.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

arm-none-eabi-gcc is not in the path, did you install it? I assume it's part of the "Software Prerequisites" in one of the above mentioned pdf.

/Lars

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, I installed and also provide the path in Environment variables.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So you can run arm-none-eabi-gcc manually in the cmd window?

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey thanks a ton!! I accidently had uninstalled it!! Now there are no errors!!

 

I have one more problem which I am stuck at I am trying to write to flash using NVM driver (on samd21 xplained pro board). I started by the example project. I am also trying to write to flash using nvm but unable to see any bytes getting written. I loaded the bootloader .hex file provided by Microchip and as an application I am using NVM file to be placed at 0x2000. I have made no changes in the code but inside samd21j18a_flash.ld I changed rom (rx)  : ORIGIN = 0x00000000, LENGTH = 0x00040000 to rom      (rx)  : ORIGIN = 0x00002000, LENGTH = 0x00040000

 

Can you point out what exactly am I missing?