cancel
Showing results for 
Search instead for 
Did you mean: 

SensorTile Programming Error with Expansion Cradle and Nucleo STM32F401RE Board

laxmimerit
Associate II
Posted on October 14, 2016 at 08:58

Hello,

I am doing Bluetooth programming on ST SensorTile Expansion Board. I need a help to reflash demo version in sensor tile. I have downloaded expansion board library files but it only has Data Logger and Audio LoopBack programs. I tried to run BLE expansion board programs on SensorTile, it programmed successfully but did not work. Could you please help me, where can I get SensorTile demo program? Please let me know if you need more input.

https://mail.google.com/mail/u/0?ui=2&ik=50c14b6828&attid=0.1&th=157bf1b8b1927fd3&view=fimg&rm=157bf1b8b1927fd3&sz=w1600-h1000&attbid=ANGjdJ_T_Klbw1Qqj6yxwRqQL40woYFqj_vrwol69j6WOF5zfG7pmo9_pVSXin0IYZGG9oCZMz9MkDCjc3FXlbu45D-BY2mRd9gutZzlCx9KTsEg0oALJCxcoKcMBR8&disp=emb&realattid=157bf1aedb78d278c0e...

Apart from running factory demo version program again, I have few more problems.

Yesterday, I run successfully Audio Loop Example of SensorTile after that I tried to burn Bluetooth expansion board example on SensorTile which flashed successfully but did not work. I think burning that example creates another problem on SensorTile. Now I am unable to run AudioLoop example of SensorTile even though it is flashing successfully.

Something Strange is happening here. I have erased full chip but it is still sending TimeStamp to the TeraTerm Terminal. Please help me to find out what is wrong here.

https://mail.google.com/mail/u/0?ui=2&ik=50c14b6828&attid=0.1&th=157c1f444fe15680&view=fimg&rm=157c1f444fe15680&sz=w1600-h1000&attbid=ANGjdJ_DVfwftMl83PgtTxnRlHpZaIp1nsYlv-76rDXAKyGJC2wGT4wOn-FUhpOXjvlw6yw1x9P20stsBdBNwbWKqyKKVQ7_Dne5MaQGFzhBI1TtAzpsRCimZILlDC4&disp=emb&realattid=1548146534973269292...

https://mail.google.com/mail/u/0?ui=2&ik=50c14b6828&attid=0.2&th=157c1f444fe15680&view=fimg&rm=157c1f444fe15680&sz=w1600-h1000&attbid=ANGjdJ-m2QA-HapR7MiXqvDyBgyBfZTQfgENTWE0jVt3JAslKEZXZqa_7-5Fwfk7fmG-om7oQskqdQhPWED7SxzwXdOvo_B2P2i1bQ2WHEmlJeBZYBkrle_IVyoKt9M&disp=emb&realattid=157c49de0373ac72e00...

accelerometer stm32f401re sensor data-logging data sensor

8 REPLIES 8
brian239955
Associate II
Posted on January 01, 2017 at 12:17

Thanks Nesrine.

The 'Data Log' demo is working fine for me, although I am using a Linux host to receive the data. I just plug the cradle board in via USB cable and it appears as device /dev/ttyACM0. When I 'cat' this device file I receive all the sensor data.

I have made a sort-of hybrid program from the 2 demos now which records audio on the microphone and sends feature data over the serial link for speech recognition experiments, which is what I was after, so thanks for the new board and the development software guys.

laxmimerit
Associate II
Posted on October 14, 2016 at 09:23

Update: 

 

It does not matter whatever I burn, It is just showing flashed sucessfully but still sending TimeStamp continuously to the terminal. I think something is wrong in flashing but why it says Programming Done if there is something wrong in Flashing. Getting Confused. 

laxmimerit
Associate II
Posted on October 14, 2016 at 14:22

Update 2:

 

Got Audio Loop Working.

1. What was the Problem?

Now got things clear. Let me explain why it was not working. As said earlier I tried to run BLE Expansion Board Example on SensorTile and it did not work even though it flashed successfully. See circled area in attached image IROM1 start address is 0x80000000

https://mail.google.com/mail/u/0?ui=2&ik=50c14b6828&attid=0.3&th=157c31f5bfae0cc5&view=fimg&rm=157c31f5bfae0cc5&sz=w1600-h1000&attbid=ANGjdJ8iG-6he3R8wPLfLOxE5tyDMpkWLHrvUtCA-Rs96qmzSOJDxWcwBipgCppnV3RFXQC98nYIx1oT1FMxmoacY8tC7PloCHNmvgBX2DnNrOwOseAAvdtq_qRj0Ic&disp=emb&realattid=157c5aa038777cdfe14...

When I burned this program in SensorTile it flashed MCU start address went wrong. See circled area in below image of Flash Structure of SensorTile MCU to understand why it went wrong

https://mail.google.com/mail/u/0?ui=2&ik=50c14b6828&attid=0.4&th=157c31f5bfae0cc5&view=fimg&rm=157c31f5bfae0cc5&sz=w1600-h1000&attbid=ANGjdJ9oDCZj89czhijhKCxQe3S1A6vOHt4yj5hqijSMXpvUj_NPBtrO3eT4wdWgQiDBNgSHP6FP1b4Gn_a5zy4M-EusFcEgNsq9M3LT0zZvhzu-m9Hnxk0Pbe_i_jc&disp=emb&realattid=157c5abf8f2ee2ad29e...

It shows 0x8000 0000 to 0x8000 3FFF is assigned for bootloader i.e. when I flashed BLE expansion board Sensor Demo example it erased Bootloader.

2. How I Got it Working

  1. set the starting address of program 0x8000 0000 and reflashed the bootloader

  2. set the starting address 0x8000 4000 for other programs and simply flash it.

3. But few more problem is still there

  1. Only Audio Loop example got working Data Logger example of Sensor tile is not working

  2. I did not find exact Baudrate of USART in data logger example so I tried every standard baudrate to receive data but it did not work.

  3. I tried to runBluemicrosystem2STM32L476RG-SensorTile</strong>example but it did not work too. I think it did not work because of licensing problem. I requested for open.MEMS license yesterday but did not receive license yet.</span></li></ol>

    4. Some Strange Things

     

       

    1. When I burned bootloader first time, luckily I got factory demo example working like brand new, I tested it with ST BlueMS App it worked perfectly

    2.  

    3. Then I flashedAudioLoopexample, got it working too. happy and very happy.

    4.  

    5. I was excited to see howData Loggerexample will work. It did not work however it flashed successfully. Tried every standard baudrate.

    6.  

    7. Again I flashed Audio Loop example and it works

    8.  

    9. I thought let's burn bootloader again and test factory demo examples, this time, I did not get demo example working

    10.  

    11. So I thought let's try to run

      Bluemicrosystem2STM32L476RG-SensorTile</span>

      example but it did not work too.

    12.  

    13. After this again I tried to runAudio Loopand got it working

    14.  

      5. What I am trying to do

       

         

      1. trying to get 9 axis data in mobile from SensorTile but I am unable to runData Logger and Bluetooth Demoexample.

      2.  

      3. Would you like to help me to make it run

      4.  

       

       

       

brian239955
Associate II
Posted on December 30, 2016 at 14:57

Thanks for this information, I found that I also had to change the programming address from

0x8000 0000

to

0x8000 4000 to get the demo applications working (also had to re-program the boot loader at 0x8000 0000 first). I am using an

http://www.st.com/en/evaluation-tools/32l476gdiscovery.html

board instead of Nucleo, but it seems to work fine for programming.
Nesrine M_O
Lead II
Posted on December 30, 2016 at 16:01

Hi,

The issue has been reported internally for check.Sorry for the inconvenience it may bring.

-Nesrine-

Posted on January 10, 2017 at 12:11

Hi Brian,

I'm trying to better understand the problem.

When you say '

I also had to change the programming address' do you mean in the IDE project options? Which one of the three supported IDE are you using (IAR, KEIL, SW4STM32)?

Thanks,

Davide

Posted on January 12, 2017 at 19:53

I'm using SW4STM32 in Eclipse for compilation and generating a bin file. I then use the ST-LINK utility to flash the bin file to the board via the SWD interface on a STM32L4 DISCOVERY board. (I don't do the flashing within the IDE itself)

Posted on March 04, 2018 at 10:00

Hey Brian,

Will you be willing to share your hybrid program? I'm interested in something similar.

Thanks