Jump to content
Thomas1426459898

SLLogicLogger - A simple logic analyser for the Stellaris Launchpad

Recommended Posts

The logic sniffer app says so. I did not change the code. I used the available window in the provided software. So you suggest that I should change the code. I'll look into it. I thought changing the sampling time will change the period. :)

 

The inner loop has no built-in period adjustment - just a bunch of reads and writes in a tight loop.

Would be easy to insert some delay.

If you increase buffersize a lot will probably run out of RAM (only 32KB RAM).

Share this post


Link to post
Share on other sites

My logic analyzer, based on MSP430F550x, conected to PC by USB, have sampling frequency (using DMA) MCLK/2 (24 MHz / 2 = 12 MHz).

 

http://forum.43oh.com/topic/3909-msp430f550x-based-logic-analyzer/

 

I expect that much higher resolution is possible with Stellaris Launchpad.

 

Resolution is not the biggest worry for me. But the capture time. What is the capture time of your design?

Share this post


Link to post
Share on other sites

The inner loop has no built-in period adjustment - just a bunch of reads and writes in a tight loop.

Would be easy to insert some delay.

If you increase buffersize a lot will probably run out of RAM (only 32KB RAM).

 

Thank you. I'll check that.

Share this post


Link to post
Share on other sites

Resolution is not the biggest worry for me. But the capture time. What is the capture time of your design?

 

MSP430F550x is limited with 6 KB RAM (1 bit for 8 chanels -> 1 byte)

Share this post


Link to post
Share on other sites
I'm trying to compile the code but I get these messages:

- #20 identifier "GPIO_PA0_U0RX" is undefined

- #20 identifier "GPIO_PA1_U0TX" is undefined

 

I installed the StellarisWare, how do I fix this error?

Share this post


Link to post
Share on other sites

Hi,

In CCS, go to compiler's Predefined Symbols pane and add the followings:

PART_TM4C123GH6PGE or the exact name of your part

TARGET_IS_BLIZZARD_RA1

ccs="ccs"

 

L.

Share this post


Link to post
Share on other sites
I tried to fix the error but new errors appeared.

 

In the CCS I followed this sequence: Project > Properties > CCS Build > ARM Compiler > Advanced Options > Predefined Symbols > Pre-Defined NAMES (insert here "PART_LM4F120H5QR").

 

This is right? I'm using the Stellaris Launchpad, not Tiva.

 

The CCS Before the changes:

ccs_before.png

 

The CCS After the changes:

ccs_after.png

 

Thanks.

Share this post


Link to post
Share on other sites

Hi,

You need also to add this line at the beginning of the file:

#include "driverlib/rom_map.h"

This will allow you to call functions from ROM - also lowering the code size.

Try this first and we will se for the remaining errors (stack) - try also to increase its size, but from CCS, not from linker or startup file (unfortunately there are three places to modify the stack...)

L.

Share this post


Link to post
Share on other sites
I tried solve the problem changing Stellarisware by Tivaware without put the "pre-defined name"

 

The two initial errors was resolved, but appeared on new error:

Description Resource Path Location Type

#1965 cannot open source file "inc/lm4f120h5qr.h" main.c /sllogiclogger line 29 C/C++ Problem

 

When I try exclude this "include" appear 90 new errors like: 

Description Resource Path Location Type

#20 identifier "bool" is undefined main.c /sllogiclogger line 147, external location: C:\TivaWare_C_Series\driverlib\gpio.h C/C++ Problem

 

Description Resource Path Location Type

#20 identifier "int32_t" is undefined main.c /sllogiclogger line 151, external location: C:\TivaWare_C_Series\driverlib\gpio.h C/C++ Problem

 

I'm having many problems to execute codes from internet that use the "Stellaris Ware" and "Tiva Ware".

Share this post


Link to post
Share on other sites

Did you try to include stdint.h

I don't use CCS , but would expect it also have a stdint.h

 

The net suggests to include stdbool.h , for the bool definition

 

 

Both ought to be system defs meaning : #include <stdint.h>  , and not #include "stdint.h"

 

/Bingo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×