First trial ............................................................................................................................................................... 2
Working with ZSSC1856 & KEIL ......................................................................................................................... 3
Creating a new project......................................................................................................................................... 5
All rights reserved. The material contained herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.
ZSSC1856
Intelligent Battery Sensor IC
•
•
12 Volt Power Supply and 2 cables with banana plugs for the boards/demonstrations which are not
powered by the USB.
Adjust the ULINK2 to internal 3.3V JTAG source according to the picture:
Fig. 2 Proper jumper settings of ULINK2
2
Preparation Steps
free
version
of
KEIL
from
the
following
link
Download
and
install
the
https://www.keil.com/demo/eval/arm.htm
If KEIL is already available, please check its version. It needs to be at least 4.13.
The only important thing during the installation is the choice of the home directory of the KEIL installation.
Please, remember it!
Every further explanation will be based on the assumptions of:
Keil is installed (home directory) in:
D:\Keil
Working directory (projects path) is:
D:\Keil\Arm\work
If your choice is different, then special care must be taken to correct the path at each step.
Copy the directories
Software\IBSMonitior, Software\ZMDCM0
and
Software\AddOns
from the kit’s CD or
the location http://www.zmdi.com/ to the working place at your HDD.
Copy the
Software\ZMDI_CM0_ZSSC1856.FLM
file from the kit’s CD into your local Flash programming
algorithms directory (i.e. D:\Keil\ARM\Flash).
3
First trial
The ZSSC1856 samples (delivered with the kit) are pre-programmed with the
IBSMonitor
project. This
enables you to start immediately with the evaluation of its functionality. Just place one of them in the socket and
All rights reserved. The material contained herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.
ZSSC1856
Intelligent Battery Sensor IC
The
IBSMonitor
project is implementing: the blinking LED via GPIO/timerISR: sends a SPI commands to
the SBC; Activates the ADC conversion at the SBC and reads back the data; Implements IRQ routines; Replies to
the LIN commands from the Master; Places the device into LowPower/OFF modes. The project can be modified
for download/debug into RAM or into Flash.
A detailed documentation for the IBSMontior project can be read at
General Documents\html\indeh.html
of
the kit’s CD.
The device programming is done using ZMDI_CM0_ZSSC1856.FLM algorithm (compiled within the
FLoader
project).
One can read the data from the IBS via the kit’s GUI, or any other LIN master tool (CANoe for example).
Notes: Be prepared to have a regular MCU reset if a SBC watchdog is activated (or not cleared regularly).
Activation of the SBC reset signal causes the KEIL debugger to close. If the programming is not successful due to
this reset/WD, Please try again!
4
Working with ZSSC1856 & KEIL
The IBSMonitor project is coming with all necessary settings for immediate startup with the evaluation of
ZSSC1856. However, if a change or verification of the settings is necessary, one can follow the steps:
1. Make sure you have a successfully installed ULINK2 JTAG adapter. You have to see its serial number
(V031BJE for example) as shown at fig.3. If the JTAG wires are properly connected, you should observe its ID
code 0x0BA01477 at fig. 3.
Fig. 3. Successfully established JTAG chain allows programming and debug.
Make sure the SWJ option is unchecked. Using the ULINK2 and the ZMDI development board a JTAG
clock of 1MHz was achieved. However a slow speed is recommended for a robust debugging and programming,
All rights reserved. The material contained herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.
ZSSC1856
Intelligent Battery Sensor IC
2. The memory locations for ZSSC1856 device are shown at fig. 5 and fig. 6. They are correctly set within
the project file, but might be changed in order to run from RAM.
3. The Flash Programming Algorithm (JTAG bootloader) needs to be placed into the Keil\ARM\Flash
directory. This is accomplished by manual copy of the file ZMDI_CM0_ZSSC1856.FLM into your “Flash” directory
or by importing it to the local device database.
Fig. 4. Address locations for working from Flash
Fig. 5 Address locations for working from Flash
4. Make sure the ZMDI_CM0_ZSSC1856.FLM programming algorithm is chosen as shown at fig. 5.
5. The blinking example can be used for testing the flash programming functions too. Just uncomment the
necessary section within the source file MAIN.C. Inside this file are some other examples too.
All rights reserved. The material contained herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.
ZSSC1856
Intelligent Battery Sensor IC
1
2
4
3
Fig. 6. FPA Assigned to the current project.
6. Chose the correct debugging mode with the ULINK device, as shown at fig. 7. For proper debugging,
the Flash.ini file has to be chosen too.
Fig. 7. Ulink2 device set for debugging the real target
5
Creating a new project.
If the starting examples do not satisfy your needs you may create a new project:
1. Create a new directory with appropriate name and copy the files from the examples:
All rights reserved. The material contained herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.