Questions and discussions about the SDK tools used to program the TD RF modules.
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Sat Aug 08, 2015 6:37 pm

maybe there is a problem here:
I can't compile Common Libs for the TD1205 specifically, only for the processor's name. I changed the MODULE_REVISION value which was randomly REVISION_TD1208 or REVISION_TD1204 into REVISION_TD1205. It works exactly the same (same logs). the libtdgeoloc options are now:
-x assembler-with-cpp -DDEBUG -DMODULE_REVISION=REVISION_TD1205 -DDEBUG_EFM -DEFM32G210F128 -I"C:\Users\hugo\git\TD_RF_Module_SDK\lib\libtdgeoloc\inc" -I"C:\Users\hugo\git\TD_RF_Module_SDK\lib\libtdsensor\inc" -I"C:\Users\hugo\git
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Mon Aug 10, 2015 10:43 am

If there is a mistake, it's on you git then.
the configuration available for Common Libraries are only:
-GCC Debug EFM32G210F128
-GCC Release EFM32G210F128

On
CMSIS, Device and emlib, there is no #MODULE_REVISION defined.
On all the other lib, it is defined randomly.

Here is someone telling the same way of compiling, about TD1205.
viewtopic.php?f=13&t=68#p364 :
"1. build the common libraries with GCC Release (EFM32G210F128)
2. build accelero_event with TD1205 Release"

Something still looks not working for him.
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Mon Aug 10, 2015 11:07 am

I rebuilt the accelero_data with TD1205 everywhere, in release, and the Stack trace is a bit different than before, if it can help.
-- TRAP Trace@0x20000000 --
Var 0:0
Var 1:0
Var 2:0
Var 3:71
Var 4:0
Var 5:0
Var 6:0
Var 7:130
Var 8:0
-Stack trace-
0|0x00007609
1|0x000001A3
2|0x000001A5
3|0x000073FD
4|0x00000901
5|0x00000369
6|0x00000267
7|0x00008AC7
8|0x00008A79
9|0x00008BB9
10|0x00000301
11|0x0000A8D9
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Mon Aug 10, 2015 11:28 am

you can find my build at [url]h2000.fr/TD[/url]

Hugo
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Tue Aug 25, 2015 8:33 am

On a 3rd machine, I tryed with SDK5, it makes exactly the same mistake. Could you try it from your office from a new machine(or VM), and confirm compiling accelero_data works, and the TD1205 works with it?
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Mon Aug 31, 2015 2:45 pm

I think when there is more than a page for a problem, there is no support anymore, but m problem still exist. For information, on the same setup (with the right build config), I can compile a good program for a TD1204. So I guess:
-renaming REVISION_TD1204 into REVISION_TD1205
- #define GPIO_IN_TX_STATE 32
- #define GPIO_IN_RX_STATE 33
are not enough. really.

or your accelero_data.o is wrong as it's the only file where this makes a difference.
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: flash/debug TD1205

by lcheminade Mon Aug 31, 2015 5:28 pm

Hi,

Just tried again from scratch for this specific project and it does work fine.

Did you really change the preprocessor define from TD1204 from TD1205 like in the tutorial? If you remove the

- #define GPIO_IN_TX_STATE 32
- #define GPIO_IN_RX_STATE 33

then the compiler should complain about not finding those. If it does not complain then the preprocessor defines are definitely not there and you're compiling for TD1204 which would lead to the trap error you're experiencing.

Loïc
hugo
 
Posts: 23
Joined: Tue Aug 04, 2015 8:28 am

Re: flash/debug TD1205

by hugo Wed Sep 02, 2015 9:23 am

Ok, you are right, I think I always changed it in "C++ General"/ "Path and sympols". I didn't know it could be defined in two differents location, I should have been more careful!
Checking the compilation without both #define was a good idea!
thank you a lot for your help!
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: flash/debug TD1205

by lcheminade Wed Sep 02, 2015 9:31 am

Ok, good to know it works!
Return to Tools

Who is online

Users browsing this forum: No registered users and 13 guests