• Welcome to Andy's Workshop Forums. Please login or sign up.
 
April 28, 2024, 10:07:25 am

News:

SMF - Just Installed!


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - pratipm

1
Just noticed in the GDB output that GDB is trying to run wrong executable. It so happened that I did forget to perform one step, deleting the original .cpp file and copy my own. Corrected that, refreshed the project and did a clean rebuild, but still same error:

No source file named /home/pratip/stm32plus-master/examples/usart_send_sync/usart_send_sync.cpp.

monitor halt
continue
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.

Program received signal SIGINT, Interrupt.
main () at ../ESP8266Test.cpp:145
145      test.run();
2
I had the same problem of missing libstm32 from the linker, but then found out that my build configuration in the copied project was not set right.
But I still do have the same problem as before, gdb still trying to look for wrong .cpp file, from the project that I copied from.

No source file named /home/pratip/stm32plus-master/examples/usart_send_sync/usart_send_sync.cpp.

monitor halt
continue
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.

Program received signal SIGINT, Interrupt.
main () at ../usart_receive_sync.cpp:88
88     test.run();

Strangely, can't find any such reference in my project directory.
~/stm32plus-master/MyProject/ESP8266Test > find . -type f | xargs grep usart_send_sync
returns nothing

Still trying to tinker with eclipse/gdb settings if I can find something.
3
I am struggling to grasp this whole new concept of variadic templates etc. and can't figure out how do I define a USART device as a class variable where the usart parameters are set out side the constructor of the usart. Something like this:

class MyClass {
public:
    Usart1<> usart1;

    void setBaudRate(int rate) { /* Set the baudrate of usart1 */ }

    void run() {
   
        setBaurate(9600);
    .....
    }
};

Any pointers?
Thanks.

-Pratip

4
After reading the SConstruct file, found this line in ./lib/include/config/stm32plus.h

#define STM32PLUS_BUILD 0x040000

So I must be having 4.0 version.
5
I downloaded the library couple of weeks back from GitHub, and do not remember which version was it. Looking at the file README.md I do see reference to STM32F030 device, so I must be having the latest.
Is there a direct way to verify?
Thanks.

Pratip
6
Thanks a ton. That works!
7
What is the best way to duplicate an eclipse/CDT project? I tried to duplicate an existing project in the example directory by right click/edit-copy/edit-paste followed by renaming everything about the original project/files both at the Project Explorer level as well as in the Project properties. Everything up to build works fine, but GDB always complains about missing original source file. I used grep on every file in my project directory and could not find a single instance of that original .cpp file/directory name. Not sure where GDB is getting the reference to the file from the old project.
I understand this is not really stm32plus issue, but any help will be greatly appreciated.
Thanks in advance.

-Pratip
8
Hi Andy,
Thanks for such a quick response. I'll give it a try right now!

-Pratip
9
Is there any simple way I can use the library for STM32F103C8 (Medium density Performance line)? Boards with this cpu are available for about $5 on ebay, and I happen to have 2 of them.
Thanks.

-Pratip