Post Go back to editing

Migrating from ADuCM360/1 to 362/3

I can flash the codes written for 360/1 to 362/3 and the program actually runs, but the ADC reading is wrong. It is about 3 times higher than it should be.

Based on https://www.analog.com/media/en/technical-documentation/frequently-asked-questions/differences-aducm360-aducm362-faqs.pdf, there is difference in ADCxCFG (from 2 bits to 3 bits),

Based on 360/1 definition files, we have

/* ADCCON[BUFBYPN] - Negative buffer bypass */
#define ADCCON_BUFBYPN_MSK (0x1 << 14 )
#define ADCCON_BUFBYPN (0x1 << 14 )
#define ADCCON_BUFBYPN_DIS (0x0 << 14 ) /* DIS */
#define ADCCON_BUFBYPN_EN (0x1 << 14 ) /* EN */

/* ADCCON[ADCREF] - Reference selection */
#define ADCCON_ADCREF_MSK (0x3 << 12 )
#define ADCCON_ADCREF_INTREF (0x0 << 12 ) /* INTREF */
#define ADCCON_ADCREF_EXTREF (0x1 << 12 ) /* EXTREF */
#define ADCCON_ADCREF_EXTREF2 (0x2 << 12 ) /* EXTREF2 */
#define ADCCON_ADCREF_AVDDREF (0x3 << 12 ) /* AVDDREF */

I would like to change it to reflect the difference of 362/3. Unfortunately, I can't find the definition of ADCxCFG of 362/363. When I visit https://www.analog.com/media/en/technical-documentation/user-guides/ADuCM36x-Getting-Started-Tutorial-UG-1063.pdf, there is ONLY 360/361 user guide, but not 362/3 guide to see what I can change to

Can i have some pointers? Thanks!

  • Another problem: When I use cm3wsd.exe to upgrade the firmware, because it calls for the wrong (?) page size for 362/3, it messed up my user data stored in the flash. Do you have the latest cm3wsd.exe that will keep flash data beyond the program area?

  • Please substitute the contents of your ADIChip.ini file in your installation folder with the following:

    [ADuCM360]
    ROMStart=0x00000000
    ROMEnd=0x0001FFFF
    RAMStart=0x20000000
    RAMEnd=0x20001FFF
    KStart=0x00020000
    KEnd=0x000207FF
    FBlk0Sz=0x00020000
    FBlk1Sz=0x00000000
    
    [ADuCM361]
    ROMStart=0x00000000
    ROMEnd=0x0001FFFF
    RAMStart=0x20000000
    RAMEnd=0x20001FFF
    KStart=0x00020000
    KEnd=0x000207FF
    FBlk0Sz=0x00020000
    FBlk1Sz=0x00000000
    PageSz=0x00000200
    CRCMethod=0x00000000
    bNoPageErase=0x00000000
    WordSize=0x00000004
    
    [ADuCM362]
    ROMStart=0x00000000
    ROMEnd=0x0003FFFF
    RAMStart=0x20000000
    RAMEnd=0x20005FFF
    KStart=0x00040000
    KEnd=0x000407FF
    FBlk0Sz=0x00040000
    FBlk1Sz=0x00000000
    PageSz=0x00000800
    CRCMethod=0x00000001
    bNoPageErase=0x00000000
    WordSize=0x00000004
    
    [ADuCM363]
    ROMStart=0x00000000
    RAMStart=0x20000000
    RAMEnd=0x20005FFF
    KStart=0x00040000
    KEnd=0x000407FF
    FBlk0Sz=0x00040000
    FBlk1Sz=0x00000000
    PageSz=0x00000800
    CRCMethod=0x00000001
    bNoPageErase=0x00000000
    WordSize=0x00000004
    
    [ADuCM301]
    ROMStart=0x00000000
    ROMEnd=0x0001FFFF
    RAMStart=0x20000000
    RAMEnd=0x20003FFF
    KStart=0x00020000
    KEnd=0x000207FF
    FBlk0Sz=0x00020000
    FBlk1Sz=0x00000000
    
    [ADuCRF101]
    ROMStart=0x00000000
    ROMEnd=0x0001FFFF
    RAMStart=0x20000000
    RAMEnd=0x20003FFF
    KStart=0x00020000
    KEnd=0x000207FF
    FBlk0Sz=0x00020000
    FBlk1Sz=0x00000000