[2022 Digi-Key Innovation Design Competition] ADUCM360 Belated Lighting
[Copy link]
During the event, I chose the ADUCM360 board from ADI. I chose it because of its powerful 24-bit AD and single-chip solution.
Originally, the board was supposed to be shipped from abroad in mid-June after I paid on the official website. However, things didn't go smoothly after I received it. I couldn't even turn on the light, and I couldn't find the onboard DAP debugger.
I selected cmsis-dap in KEIL, but couldn't find the chip. I even couldn't find the chip by connecting the SWD port directly with an external J-LINK. Then I sent an email to Digi-Key to return the product, but it didn't work.
At one point I was ready to give up and lay low, so I posted a message on the ADI official website, but I didn’t get any effective response.
https://ez.analog.com/analog-microcontrollers/precision-microcontrollers/f/qa/560322/fval-adicup360-rev1-1-cannot-be-downloaded/467771
Yesterday, a foreign guy replied in the forum of ADI's official website that he wanted to install the IDE recommended by ADI's official website, which is [Cross Core Embedded Studio]. I installed it with the mentality of giving it a try, but I had to apply for registration. I couldn't find this chip in the new project, and there was no place to download the support package on the official website. I went to a web page on the official website and found a place that prompted me to install the MBED serial driver. After downloading and installing it, I went into KEIL and tried it again, and I was able to find the chip.
I don’t know if it’s because of the installation of Cross Core Embedded Studio or the installation of a driver. Anyway, I can download and debug it for the time being, so I don’t care about the reason.
MBED's debugger comes with a serial port, a cmsis-dap debugging interface, and a USB flash drive named MBED. Now debugging and downloading are no problem, but this MBED USB flash drive keeps restarting frequently (i.e. the drive letter is displayed for a while, then hidden, then new hardware is discovered, the computer automatically opens this USB flash drive, and then closes it again after a few seconds). The problem was solved by disabling the large storage device in the device manager.
After complaining so much, let’s first make a lighting program.
#include "ADuCM360.h"
#include "DioLib.h"
int main(void){
DioDrv(pADI_GP0,BIT4,0,0);
while(1){
for(int i=0;i<0x1fffff;i++)
__nop();
DioSet(pADI_GP0,BIT4);
for(int i=0;i<0x1fffff;i++)
__nop();
DioClr(pADI_GP0,BIT4);
}
}
//end
The code is relatively simple, an initialization IO, GP0.4 is the purple LED on the board, delay set to 1, and then delay clear to 0.
|