Page 1 of 1

TD1205 SDK

Posted: Mon Jul 20, 2015 1:33 pm
by lcheminade
You can easily make the 5.x.x SDK compatible with a TD1205:


Modify the td_config_ext.h file in libtdcore and add the last two definitions:

#define GPIO_NOP 0
#define GPIO_TRISTATE 1
#define GPIO_RX_RAW_DATA_OUT 21
#define GPIO_DRIVE0 2
#define GPIO_DRIVE1 3
#define GPIO_IN_TX_STATE 32
#define GPIO_IN_RX_STATE 33



On your project:

right click -> build configuration -> manage and copy the TD1204 Release configuration into TD1205 Release (same for debug)

config1.PNG
config1.PNG (120.46 KiB) Viewed 9225 times



Then right click on the project -> properties -> TD1205 release -> C++ Build -> Settings > ARM Sourcery GCC Compiler and rename REVISION_TD1204 into REVISION_TD1205


config2.PNG
config2.PNG (96 KiB) Viewed 9225 times



Eventually compile again libtdcore and your project. Please make sure it works by testing the geoloc_nmea examples.

Re: TD1205 SDK

Posted: Wed Jul 22, 2015 1:25 pm
by mleeters
I can't get it working with this tutorial, could you be more specific with certain steps.
Also with the ones before and after this?

Re: TD1205 SDK

Posted: Sat May 21, 2016 9:59 am
by disk91
compilation is working well but download is a problem.
any advice with jlink or cflash ?

here is what i get with jlink :
J-Link>connect
Device "EFM32G210F128" selected.


Found SWD-DP with ID 0x2BA01477
Found Cortex-M3 r2p0, Little endian.
FPUnit: 0 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ E00FF000
ROMTbl 0 [1]: FFF0F000, CID: FFF03D03, PID: 2BB00005 ???
ROMTbl 0 [2]: FFF02000, CID: 05E00D2B, PID: 2BB00205 ???
ROMTbl 0 [3]: FFF03000, CID: 05E00D2B, PID: 2BB00305 ???
ROMTbl 0 [4]: 00000000, CID: 05100D00, PID: 0F300105 ???
ROMTbl 0 [5]: FFF41000, CID: 05900D0F, PID: 2BB92305 ???
Cortex-M3 identified.
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.

**************************
WARNING: Could not set S_RESET_ST
**************************


**************************
WARNING: CPU did not halt after reset.
**************************


**************************
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
**************************


**************************
WARNING: S_RESET_ST not cleared
**************************

Found SWD-DP with ID 0x2BA01477
Found Cortex-M3 r2p0, Little endian.
SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
Found SWD-DP with ID 0x2BA01477
Found Cortex-M3 r2p0, Little endian.

**************************
WARNING: Failed to reset CPU. VECTRESET has confused core.
**************************


**************************
WARNING: CPU did not halt after reset.
**************************


**************************
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
**************************


**************************
WARNING: S_RESET_ST not cleared
**************************


Paul

Re: TD1205 SDK

Posted: Sat May 21, 2016 12:05 pm
by disk91
Assuming it was because of the addition of resistor on the SWD lines. I assume TD1205 already have the serial resistor on the lines.

Re: TD1205 SDK

Posted: Fri Jun 17, 2016 1:22 pm
by axelC
I try today with the SDK 6.3.2
It already include

#define GPIO_IN_TX_STATE 32
#define GPIO_IN_RX_STATE 33
Code: Select all
// Gpio config values
#define GPIO_NOP                  0
#define GPIO_TRISTATE               1
#define GPIO_TX_DATA_CLK_OUT         16
#define GPIO_RX_RAW_DATA_OUT         21
#define GPIO_IN_TX_STATE            32
#define GPIO_IN_RX_STATE            33
#define GPIO_DRIVE0                  2
#define GPIO_DRIVE1                  3