background image

EVAL-ADUCM420QSP1Z

 User Guide 

UG-1926 

 

Rev. 0 | Page 19 of 20 

SAFE CODE DEBUGGING/DEVELOPMENT RECOMMENDATIONS  

Th

ADuCM420

 code development and programming tools are 

similar or identical to those used on other Analog Devices, Inc., 
microcontroller devices and to microcontrollers from other 
companies. Care must be taken to ensure the device can be 
reprogrammed to avoid lockup situations. In a lockup, the 
connection to the ADuCM420 via programming and debug 
tools is no longer possible. 
This section lists scenarios that can cause lockup situations. If a 
lockup situation occurs, recommendations are provided to 
recover a device. 

SCENARIOS THAT CAUSE DEVICE LOCKUPS 

Page 0 Checksum Error 

Address 0x1FFC contains a 32-bit checksum for Flash Page 0. 
The on-chip kernel performs a checksum on Page 0 excluding 
0x1FFC to 0x1FFF. If the kernel result does not match the value 
at 0x1FFC or if 0x1FFC value is not 0xFFFFFFFF, the kernel 
detects corruption of Page 0 and does not exit to user code, 
resulting in a device lockup. See the 

ADuCM420 hardware 

reference manual (UG-1807)

 for information about an integrity 

check of the internal Flash Page 0 by the on-chip kernel. 
To recover from this situation, mass erase the device via the 
downloader tool (I

2

C or MDIO), and ensure the user source 

code sets Flash Address 0x01FFC = 0xFFFFFFFF. 
The example code for the ADuCM420 configures Flash Address 
0x01FFC = 0xFFFFFFFF. 
See 

page0_checksum

 in the 

system_ADuCM420.c

 file.  

User Flash Pages—Corruption of Reserved Locations 

The top six 32-bit locations of each flash block are reserved, and 
care must be taken not to overwrite these locations. The flash 
signature for each block and the write protection settings are 
stored in these six locations. See the 

ADuCM420 hardware 

reference manual

 for information about flash user space 

organization.  
Ensure the top 32-bit location in each flash page is reserved. 
See the example programs included in the installer for details.  

Unexpected Resets 

Unexpected watchdog resets, software resets, power-on resets, 
or external resets can cause debug and programming sessions to 
end abruptly because these resets break the serial wire debug 
(SWD) interface between the J-Link and the Cortex core. If the 
user source code results in regular resets, mass erase the user 
flash via the downloader and restart the debug session. 

Power Saving Modes 

If the user code puts the Cortex core into a power-down state, 
the power-down causes issues after a power cycle for the debug 
tools that use the SWD interface. Tools like J-Link require the 
Cortex core to be fully active. 

Keil CMSIS Pack 

For Keil µVision users only, ensure Keil CMSIS pack 
Version 0.8.0 or later is being used.  

RECOVERING LOCKED UP DEVICES 

Mass erase the device via either the MDIO or I

2

C downloader 

tool. 

 

Summary of Contents for EVAL-ADuCM420QSP1Z

Page 1: ...CSP The ADuCM420 development system EVAL ADUCM420QSP1Z is fully packaged to evaluate all features of the ADuCM420 a high precision analog microcontroller The ADuCM420 includes 12 external AINx channel...

Page 2: ...are Installation Procedures 7 Keil Vision5 7 CMSIS Pack in Keil Vision5 8 Library and Project Options for ADuCM420 in Keil Vision5 9 IAR IDE Project Settings 9 mIDAS Link Connector Connecting the Hard...

Page 3: ...CM420QSP1Z User Guide UG 1926 Rev 0 Page 3 of 20 EVAL ADUCM420QSP1Z PHOTOGRAPH UART USB mIDAS Link Digital I Os UART CONNECTOR J LINK CONNECTOR POWER TERMINAL BLOCK 9V WALL WART AINx VDACx 25844 001 F...

Page 4: ...through LDO regulators to regulate the power supply The ADuCM420 can also configure the IOVDD1 and DVDD power supplies to be 1 2 V or 1 8 V and 1 8 V or 3 3 V respectively To configure these supply op...

Page 5: ...Table 2 Power Configurations for the EVAL ADUCM420QSP1Z WLCSP EVAL ADUCM420QSP1Z Optional Jumper Information Jumper Configuration P20 Yes Power selection either via USB power or via Arduino power Pin...

Page 6: ...gle row headers 2 54 mm pitch for example the Samtec SSQ 110 03 G S Figure 3 shows the appropriate connector type For proper slave adapter connection ensure the female part is on the solder side with...

Page 7: ...s the example codes for the ADuCM420 see Figure 5 25844 003 Figure 5 ADuCM420 examples Folder with Projects KEIL VISION5 The Keil Vision5 integrated development environment IDE integrates all the tool...

Page 8: ...the first time it may take a few minutes to update the pack installer 25844 105 Figure 6 Pack Installer 2 After the CMSIS pack installer opens click File Import Select and import the ADuCM420 pack th...

Page 9: ...PROJECT SETTINGS It is recommended for first time users to open an example project from the examples folder For instance the M420_Adc eww file is the IAR Embedded Workbench project file for the ADC e...

Page 10: ...hose shown in the Additional include directories box see Figure 13 25844 112 Figure 13 C C Compiler Setting 5 Next click the Linker category check the Override default box in the Config tab and browse...

Page 11: ...le 4 mIDAS Link Pin Labels EVAL ADUCM420QSP1Z Header Pin No mIDAS Link Pin Labels 1 2 DVDD 3 11 19 NC 4 6 8 10 12 14 16 18 DGND 5 P1 0 SIN0 7 SWDIO 9 SWCLK 13 P2 2 SWO option via JP4 15 RESET 17 P1 1...

Page 12: ...ode to download 25844 009 Figure 19 MDIOWSD GUI 7 To download the code select Program and Verify from the Flash Action box click Start and follow the instructions listed on the GUI Table 5 SUB 20 to E...

Page 13: ...s Erase 8 Repeat Step 4 through Step 7 to select another option from the software tool FLOATING POINT UNIT ENABLE PROCEDURE The settings shown in the Project dropdown menu see Figure 24 are available...

Page 14: ...the FPU example program from the Keil IDE included on the ADuCM420 installer 1 After opening the Keil IDE click the Flash dropdown menu and select the Configure Flash Tools option see Figure 26 25844...

Page 15: ...the settings shown in Figure 28 run the FPU example code from the C Analog Devices ADuCM420 examples M420_FPU folder In debug mode the output Disassembly window displays fractional values of the varia...

Page 16: ...see Figure 32 placed in the IAR folder within the SramMode example program 25844 016 Figure 30 IAR SRAM Setup main c 2 Configure the macros shown in Figure 30 Figure 31 and Figure 32 to run the SRAM m...

Page 17: ...844 020 Figure 34 SRAM Mode sct and s Files 2 By default the M420_SramMode macro uses SRAM Mode 0 The SetSramMode0 s assembly file is added to the subdirectory as shown in Figure 35 Specify which SRAM...

Page 18: ...UG 1926 EVAL ADUCM420QSP1Z User Guide Rev 0 Page 18 of 20 25844 023 Figure 37 Keil SRAM Output Mode 0 25844 024 Figure 38 Flash Configuration Setup...

Page 19: ...ets Flash Address 0x01FFC 0xFFFFFFFF The example code for the ADuCM420 configures Flash Address 0x01FFC 0xFFFFFFFF See page0_checksum in the system_ADuCM420 c file User Flash Pages Corruption of Reser...

Page 20: ...e subject to the following additional limitations Customer shall not i rent lease display sell transfer assign sublicense or distribute the Evaluation Board and ii permit any Third Party to access the...

Reviews: