• AVR Freaks

Hot!SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel

Author
applecrusher
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2018/08/05 11:29:28
  • Location: 0
  • Status: offline
2019/06/18 20:02:52 (permalink)
0

SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel

Hello,
 
I am trying to follow the getting started guide for my new evaluation kit. See here http://ww1.microchip.com/downloads/en/DeviceDoc/SAM-R34-MLS-Getting-Started-Guide-User-Guide-DS50002812A.pdf
But for some reason AtmelStudio doesn't recognize the SAM-R34 as a supported device, and I cannot proceed forward.
 
 
On page 12, it says to open up an example project and type lorawan, then you should see an example project. They show the following image below I don't see it at all and Atmel keeps telling me it cannot find anything related to lorawan. This is version 3.46, but I tried it also on 3.37 and it was still the same.
 
 
I tried to open a project from GitHub, which I can't link, thanks microchip!, but it tells me that "ATSAMR34J18B is not supported by Atmel Studio" Any help would be greatly appreciated! Thanks!
post edited by applecrusher - 2019/06/18 20:08:10
#1

6 Replies Related Threads

    MisterHemi
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: 0
    • Status: online
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 03:20:12 (permalink)
    0
    I have a similar problem with the SAMA5D3 Xplained board. I want to do bare metal programming but it's mainly intended for Linux or Nuttx.
     
    I don't know what IDE you're trying to use besides Atmel Studio, it's possible they intended for you to connect to the board via a terminal and do development within a Linux (or Nuttx) type of environment.
     
    I'm not familiar with that board but have you tried connecting to it via USB/serial and a terminal program (e.g.- Cool Term)?
     
    Not to hijack your thread... just for example... for my use i'm trying to get things working on Eclipse (IDE) but having difficulties. I have a PE Micro Multilink and the Eclipse drivers (it seems to work) but don't know how to get the correct bare metal header files nor how to upload to the board. I believe you're having a kinda similar problem, right?
     
    I was hoping Microchip would have had a solution, such as upgrading Atmel Studio or adding the Xplained boards to MPLAB X or something.
     
     

    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
     
    Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #2
    friesen
    Super Member
    • Total Posts : 2058
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: offline
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 09:17:32 (permalink)
    0
    @MisterHemi You sort of have to get to know your way around GCC, but I have something working with the ATSAMA5D2 + jlink and eclipse.  It takes some messing around to get all the sequencing done right, but it is doable.

    Erik Friesen
    #3
    MisterHemi
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: 0
    • Status: online
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 10:18:53 (permalink)
    0
    friesen
    @MisterHemi You sort of have to get to know your way around GCC, but I have something working with the ATSAMA5D2 + jlink and eclipse.  It takes some messing around to get all the sequencing done right, but it is doable.




    Yes, i've noticed... i'm working on it still... just wish there were more information/instructions.
    Fortunately PE Micro has Eclipse drivers available for the Multilink
    http://www.pemicro.com/blog/index.cfm?post_id=124
    .
    Now just trying to get the right header files and understanding how to upload to the board.

    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
     
    Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #4
    friesen
    Super Member
    • Total Posts : 2058
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: offline
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 11:02:32 (permalink)
    0
    Here is my .gdbinit file
     
    # Connect to the J-Link gdb server
    define jlink_connect
      target remote localhost:2331
    end

    define gdb_log
      set logging file C:/microchip/atmel-software-package/examples/freertos_start/armgdb.txt
      set logging on
    end

    define reset_peripherals
      # Disable all interrupts and go to supervisor mode
      mon reg cpsr = 0xd3

      # Reset the chip to get to a known state
      #monitor reset

      # Reset peripherals (using RSTC_CR)
      set *0xF8048000 = 0xA5000004

      # Reset L2 Cache controller
      set *0x00A00100 = 0x0

      # Disable Watchdog (using WDT_MR)
      set *0xF8048044 = 0x00008000

      # Disable D-Cache, I-Cache and MMU
      mon cp15 1 0 0 0 = 0x00C50078
    end

    # Disable DDR clock and MPDDRC controller
    # to avoid corrupted RAM data on soft reset.
    define disable_ddr
      set *0xF0014004 = 0x4
      set *0xF0014014 = (1 << 13)
    end

    define reset_registers
      # Zero registers (cannot reset core because it will disable JTAG)
      mon reg r8_fiq = 0
      mon reg r9_fiq = 0
      mon reg r10_fiq = 0
      mon reg r11_fiq = 0
      mon reg r12_fiq = 0
      mon reg sp_fiq = 0
      mon reg lr_fiq = 0
      mon reg spsr_fiq = 0
      mon reg sp_irq = 0
      mon reg lr_irq = 0
      mon reg spsr_irq = 0
      mon reg sp_abt = 0
      mon reg lr_abt = 0
      mon reg spsr_abt = 0
      mon reg sp_und = 0
      mon reg lr_und = 0
      mon reg spsr_und = 0
      mon reg sp_svc = 0
      mon reg lr_svc = 0
      mon reg spsr_svc = 0
      mon reg r0 = 0
      mon reg r1 = 0
      mon reg r2 = 0
      mon reg r3 = 0
      mon reg r4 = 0
      mon reg r5 = 0
      mon reg r6 = 0
      mon reg r7 = 0
      mon reg r8_usr = 0
      mon reg r9_usr = 0
      mon reg r10_usr = 0
      mon reg r11_usr = 0
      mon reg r12_usr = 0
      mon reg sp_usr = 0
      mon reg lr_usr = 0
    end

    define init_ddr

      reset_registers
      
      load build/sama5d225c-aerlink/ddram/target/bootstrap.elf
      
      # Initialize PC
      mon reg pc = 0x00200000
      mon reg pc = 0x00200000

      continue
    end

    define load_in_ddr

      reset_registers

      load
      
      # Initialize PC
      mon reg pc = 0x20000000
    end

    define load_in_sram
      reset_registers

      load

      # Initialize PC
      mon reg pc = 0x00200000
    end


    define reset

      # gdb_log
      jlink_connect

      file build/sama5d225c-aerlink/ddram/freertos-start.elf
      
      reset_peripherals

      disable_ddr
      init_ddr
      load_in_ddr
      compare-sections

    end

    Attached Image(s)


    Erik Friesen
    #5
    MisterHemi
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: 0
    • Status: online
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 11:42:45 (permalink)
    0
    Thank you!
    That might help.!

    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
     
    Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #6
    MisterHemi
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: 0
    • Status: online
    Re: SAMR34 Xplained Pro Evaluation Kit in not supported in Atmel 2019/06/19 17:54:09 (permalink)
    0
    I learned something.... at the moment the PE Micro Multilink doesn't support the SAMA5 series but I sent a support request.
     
    I bought the Multilink a few years to do some ColdFire stuff which I never got around to but thought I could use it for other things as well.
     
    http://www.pemicro.com/arm/device_support/Atmel_SAMxxx/index.cfm
     
    Hopefully they'll soon add support, per request.

    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
     
    Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5