Post Go back to editing

Unable to run AD5940 Examples successfully using Keil and IAR

Category: Software
Product Number: ADuCM3029

Hello,

I have an AD5940 eval kit (EVAL-AD5940ELCZ), and I'm trying to run some of the examples (https://github.com/analogdevicesinc/ad5940-examples) on Keil to evaluate the kit. I've already used SensorPal, but would now like to evaluate some of the examples using Keil.

I am using the Keil MDK-Lite version (32kB size limit), but the examples I'm running are within that limit. 

Following the instructions in the github repo attached, I downloaded ARM Compiler v5.06 update 7. When I compile the impedance example code, I get 7 "license could not be checked out" errors. This prevents me from trying out the AD5940 examples on Keil.

I tried using the ARM Compiler version 6. When compiling with version 6, as expected, there are some errors. I was able to resolve them all by changing the following line in `startup_ADuCM3029.c`: `#pragma import(__use_no_semihosting_swi)` to `__asm(".global __use_no_semihosting");` as described in this forum post: https://community.arm.com/support-forums/f/compilers-and-libraries-forum/47991/how-to-migrate-retarget-c-from-arm-compiler-5-to-arm-compiler-6

With ARM Compiler v6, I can get the code to compile and flash successfully on the board, but I don't see any output on Putty. I have the correct COM port and Baud rate (i triple checked). I even tried power cycling the board after flashing, still no output in Putty.

I also wrote a very simple main() which just prints "testing", and even that didn't work (nothing shows up in Putty). I even went so far as to generating a hex file and dropping that into the D:/DAPLINK drive (which i know is the same as flashing), but that didn't help either.
 
How can I run the AD5940 examples in Keil community edition? I have a hunch it's something to do with the ARM Compiler version, as the Keil MDK-Lite doesn't fully support v5. Is there anyone who's ran into this problem before, and how can I solve it?

I am using the following Keil version: Keil MDK-Lite Evaluation Version 5.43.0.0

Happy to provide more details about the software setup

Parents Reply Children

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.