mbed for CoIDE (nucleo platforms stm32f401re and stm32l152re)

28 May 2014

Hi guys

/media/uploads/fredlak/stm_nucleo.jpg

Another integration stuff for nucleo boards with example code you can downolad from:

mbed CoIDE project for stm32F401RE : http://www.eboards.eu/files/mbed-src-coide-stm32f401re.zip

mbed CoIDE project for stm32L152RE: http://www.eboards.eu/files/mbed-src-coide-stm32l152re.zip

There is a full integration of mbed library with CoIDE environment http://www.coocox.org/index.html (free and full support for debugger). I've also added there an additional libs like: SoftwareSerial and BufferedSoftwareSerial. This integration works with GCC Toolchain for ARM: https://launchpad.net/gcc-arm-embedded (free)

28 May 2014

Hello Adam C.,

nice! I would like to see CoIDE exporters added to nucleo targets. I will add them once I find time. Anyone welcome to be faster then me.

Regards,
0xc0170

28 May 2014

It would be nice Martin. I have this platforms and one discovery based also on stm32 MCU. It were tested and everything works fine even USB Serial for debugging.

Regards

30 May 2014

Hello Adam C.,

thanks for the library. Everything is fine, but the USB Serial (Debugging) doesn´t work for me. Do you have a hint for me?

Regards

30 May 2014

Hello Christian

Did you install STSW-LINK USB driver (http://www.st.com/web/en/catalog/tools/PF260218) ? Also check your configuration. It should be like on this picture:

/media/uploads/fredlak/debug.png

Regards

28 Jul 2014

hello all, every thing just worked at the first go ! thank you Adam for your nice work :-)

I have a question regarding the I2CSlave feature , I see that it's not yet supported on the l152 board and hence, disabled in device.h ,

I absolutely need it and I'm wondering how to enable it? what do I need to do ? does this mean that I need to add some code somewhere in the HAL to be able to use it? can you point me on it please cheers rico

30 Jul 2014

Great work, very usefull.

Did you use the Keil export to do this job ?

Thanks

Regards

30 Jul 2014

Hey Guys :-)

Thank you. No, I didn't. I've downloaded full mBed library from repo and import it to CoIde :-) I guess you want to do something similar, based on another MCU. doesn't you ? ;-P

Rico I will try to help you but i have no time at this moment.

Regards Adam

30 Jul 2014

heei thank adam for your job :D

adam, whats version coide do you use ?

i am use latest version .. and so far often crash and force close

you experienced too ?

regards

31 Jul 2014

Hello Septian

I've used previous version 1.7.6. I've never checked 1.7.7 so I'll have to check it. I'll let you know what is wrong.

Adam

31 Jul 2014

Hi Adam,

Adam C. wrote:

Rico I will try to help you but i have no time at this moment.

ok, thank you for your support,

I'm looking in each direction I suppose to be in relation to this issue and I'm very confused because after updating the mbed lib on the online compiler, we can see the feature is activated in device.h. so probably one workaround may be to update the mbed lib use in CoIDE, yet i'm not sure how to do it without breaking everything. (need probably to update the cmsis as well?)

regards Rico

31 Jul 2014

Septian: I've checked 1.7.7 version of CoIde and everything seems to be ok. Try to reinstall all packages even ARM Toolchain.

Rico: Thanks for information, I'll try to prepare another integration with new stuff (mbed, CoIDE and specyfic source code for hardware ). It should help you... I think :-)

Regards

31 Jul 2014

Adam C. wrote:

Rico: Thanks for information, I'll try to prepare another integration with new stuff (mbed, CoIDE and specyfic source code for hardware ). It should help you... I think :-)

hope so ! :-) I'm much willing to help yet I'm not really comfortable with "cmsis / embed / hardware" interactions

I've 2 differents boards to play with : one Nucleo-L152RE and one F401RE cheers

31 Jul 2014

Hi again :-)

I've prepared new integration with new "nice to have" features :-P:

  • mBed rel. 87
  • separated libraries folder from templates with sample code (one mBed library for all projects)
  • new hot stuff: Nokia5510LCD library, port UTFT for ILI9327 8 bit LCD controller, in lib subdirectory.. :-)

current platform supported:

  • Nucleo F401RE,
  • Nucleo L152RE,
  • Discovery F100RB,
  • Discovery F051R8

you can download it from: http://www.eboards.eu/files/STM32_COIDE_PROJECTS_REL87.zip

Rico, try to enable I2CSlave feature in device.h. I can compile it, but not sure it works :-P

Adam

31 Jul 2014

Adam C. wrote:

Rico, try to enable I2CSlave feature in device.h. I can compile it, but not sure it works :-P

Whaou !, thanks Adam !!

I'm testing it right away :-)

31 Jul 2014

Hi Adam,

it seems that my Slave board is still not answering correctly to incoming reads or writes from the master one

sometime I've got write success (status=0) to "int status = myBus.write(I2CSlaveADR, data_write, 1, 0);" and sometime not,

so i'm not sure that the simple responder code is ok (or enough) to set the slave board in good "listening"conditions i need to check a bit more Rico

22 Jan 2015

Hy Adam

Thank you for you code....

I try to read an Analogin and the soft block on exit of this while

File "analogin_api.c" while(ADC_GetFlagStatus(adc, ADC_FLAG_EOC) == RESET); Wait end of conversion

In the main file : AnalogIn myana(A0); myana.read_u16();

did you have try the analog input ?

Coide 1.7.7

I've find this : http://developer.mbed.org/questions/4420/Problem-with-Nucleo-L152RE-AnalogIn/

between REV82 to REV88 the analog in stop working .

I think your package use the REV87 ?

Can you make another package with a new mbed revision ?.

Thank

22 Jun 2015

Hi,

I know this is an old post but perhaps...

I have a NUCLEO BOARD L152RE and I've tried to import both of the two projects in CoIDE :

http://www.eboards.eu/files/STM32_COIDE_PROJECTS_REL87.zip

http://www.eboards.eu/files/mbed-src-coide-stm32l152re.zip

And I have a weird issue... CoIDE tells me this :

Quote:

Chips 'STM32L152RD' did not download. Whether to download chip and continue.

And then an other error message appears telling me that the component doesn't exist. Of course! It's a STM32L152RET6!

Is anybody get the same error?

Then I tried to create a new project importing the libs and the main.c/cpp (depends on the project) but when I build the project I have this error :

Quote:

BUILD FAILED Output filename conflict: sys.o would be produced from C:\Users\looooong_path\sys.cpp and sys.cpp (or .c with the other project) Total time: 1 second

If someone has any idea about how I can fix this...

Thanks !!

11 Dec 2015

Hi Adam,

Unfortunately the link to download the "mbed CoIDE project for stm32F401RE" does not work. I always get a message "Not Found". Any idea why it's not possible to download the file or is there any chance to get the zip-File on another way?

Best regards, WalterSo