AT91SAM7S64 in keil5 (I):
Atmel microcontroller :
Atmel microcontroller is fantasy and nostalgia for fascinating of electronics. All we have worked with AVR microcontrollers, So we discuss about AT91SAM7 for starting these microcontroller.
Configure in Keil:
In Keil MDK v5 it uses packs for support microcontrollers. You can download any pack for microcontrollers. For ST microcontroller They ( Packs ) are so comprehensive but for Atmel it is poor now(In the time writing this post blog Monday, March 20, 2017 ). I can’t find good packs for AT91SAM7S64 series in keil pack directory.So we should use Keil MDK4 legacy support , after installing Legacy support for ARM7,ARM9 & Cortex-R . Now you can find AT91SAM7 in Creating New Project. MDK v4 Legacy Support You can find example and header file here.
Atmel AT91SAM7S64 You now has good project example with necessary header file. We should work with registers for running project on ADC configuring.
I worked very much with ST microcontroller, I admit that ST has more and excellent support vs others.
So we today examine new project example with AT91SAM7S64. In programming with jlink has some errors. With jflash v6.0.0 It has not any errors.in before I had problem with jflash v6.12.
Load "C:\Users\root\Desktop\hh\ADC.axf" ProjectFile = C:UsersrootDesktophhJLinkArm_AT91SAM7Sxxx.ini Device = AT91SAM7S64 Info: Device "AT91SAM7S64" selected. VTarget = 2.394V Info: TotalIRLen = 4, IRPrint = 0x01 Info: Adaptive clocking not supported for selected CPU core. Only supported for -S cores. Info: Auto JTAG speed: 5334 kHz Info: Adaptive clocking not supported for selected CPU core. Only supported for -S cores. Info: Auto JTAG speed: 5334 kHz ***JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware. Info: Core does not stop after Reset, setting WP to stop it. ***JLink Warning: PC of target system has unexpected value of 0x00200004 after reset. DLL version V6.12g, compiled Jan 27 2017 18:18:51 Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46 Hardware: V8.00 Hardware-Breakpoints: 2 Software-Breakpoints: 8192 Watchpoints: 0 Found 1 JTAG device, Total IRLen = 4: Id of device #0: 0x3F0F0F0F ARM7 identified. JTAG speed: 5334 kHz ***JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware. Info: Core does not stop after Reset, setting WP to stop it. ***JLink Warning: PC of target system has unexpected value of 0x00200000 after reset. JTAG speed: 1000 kHz No Algorithm found for: 00100000H - 00100A7BH Erase skipped! Error: Flash Download failed - ARM7TDMI Flash Load finished at 18:59:54
You can see successfully programing in jlink6.0.0. but in Keil i have yet some errors…These errors is same error programming with jlinlv6.12.So I am going to go to trip, so in other post blog I want to find solution fixing these errors.
The micontroller ATSAM7S64 some features is writed in below:
- 64KB Flash Memory
- One Master/Slave Serial Peripheral Interface (SPI)
- Two Universal Synchronous/Asynchronous Receiver Transmitters (USART)
- One Three-channel 16-bit Timer/Counter (TC)
- One Four-channel 16-bit PWM Controller (PWMC)
- One Two-wire Interface (TWI)
One 8-channel 10-bit Analog-to-Digital Converter,
Four Channels Multiplexed with Digital I/Os
Available in a 64-lead LQFP Package
Fully Static Operation: Up to 55 MHz at 1.65V and 85°C Worst Case Conditions
Power Supplies– Embedded 1.8V Regulator, Drawing up to 100 mA for the Core and External Components– 3.3V VDDIO I/O Lines Power Supply, Independent 3.3V VDDFLASH Flash Power Supply– 1.8V VDDCORE Core Power Supply with Brownout Detector
You can see block Digaram of chip in below image: