Commit Graph

643 Commits (68b034541a104bcbc94e95dc486b0ec2b0b7e9b9)

Author SHA1 Message Date
Mike Fiore 68b034541a avoid getting stuck in serial IRQ if ORE is set without RXNE - issue #1605 2016-03-11 11:49:03 -06:00
Martin Kojtal 6501de9044 Merge pull request #1548 from dbestm/dev_F446_rtc
[NUCLEO_F446RE] RTC+LSE+init
2016-03-09 17:55:20 +00:00
dbestm 81f3abc770 Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev_F446_rtc 2016-03-09 15:40:37 +01:00
Martin Kojtal 2c6c939564 Merge pull request #1580 from ohagendorf/f3xx_adc
[STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks
2016-03-09 08:33:47 +00:00
adustm 5376c62f3d [STM32F7 family] fix issue with RTC init
the logical test for RTC_ISR_INITS was wronlgy reported from other
STMfamilies.
MBED_16 test works with this modification.
2016-03-01 08:03:23 +01:00
ohagendorf f96f9c2e2e [STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks
When two or more analogue inputs are initialized on more than one ADC HW block the initialisation fails with:
Cannot initialize ADC

The reason is the reusage of just one ADC_HandleTypeDef for all initializations (in mbed\targets\hal\TARGET_STM\TARGET_STM32F3\analogin_api.c). After the first (successful) ADC initialisation AdcHandle.State is set to HAL_ADC_STATE_READY).
But for another ADC block initialisation the AdcHandle.State has to be reset so that the HAL initialize it (in mbed\targets\cmsis\TARGET_STM\TARGET_STM32F3\stm32f3xx_hal_adc_ex.c line 424). When this state is not reset the HAL returns with an initialization error. And this error induces the above mbed error message.

The error message can be reproduced just with AnalogIn in1(xx); AnalogIn in2(yy); where xx and yy belongs to two different ADC blocks.
2016-02-29 23:50:07 +01:00
Martin Kojtal bd0417cb15 Merge pull request #1520 from adustm/b_b96b_can
[STM B96B_F446VE] Add CAN feature
2016-02-26 17:07:15 +00:00
adustm d53f444a6f [STM32F7 family] revert RTC change in this PR that is due to new platform. It will be done through a separate PR. 2016-02-26 11:36:59 +00:00
adustm 3b3f89294e [NUCLEO_F746ZG] fix pins and system files after manual and automatic test phase 2016-02-26 11:36:57 +00:00
adustm 1ecd69bd87 [STMF7 family] add more SPI and I2C for the new NUCLEO_F746ZG platform 2016-02-26 11:36:54 +00:00
adustm 252056c17d [NUCLEO_F746ZG] HAL Files 2016-02-26 11:36:42 +00:00
adustm c6e57e50a0 [NUCLEO_F746ZG] Add new target to hal files 2016-02-26 11:36:37 +00:00
Martin Kojtal 8577dc9680 Merge pull request #1558 from dbestm/dev_l476rg_rtc
l476rg rtc
2016-02-25 09:42:00 +00:00
adustm fc84dd9234 [STM32F7 family] fix issue with RTC init
the logical test for RTC_ISR_INITS was wronlgy reported from other
STMfamilies.
MBED_16 test works with this modification.
2016-02-22 17:20:27 +01:00
adustm 20c34f47ad [B96B_F446VE] remove spaces (typo) 2016-02-22 15:29:05 +01:00
adustm 8e8af8fb62 [B96B_F446VE] Remove unused IRQ_RX1 interrupt (init / irq_set / ...) 2016-02-22 15:28:47 +01:00
adustm 4a4cb7fb07 [B96B_F446VE] Add more details about the timing_pts table 2016-02-22 15:27:51 +01:00
dbestm ab3cda47b9 fix formatting 2016-02-22 14:28:20 +01:00
adustm 028465a9b8 [B96B_F446VE] change serial type
Use only the index, not the UARTName any more.
In case of app with 2 serial (using DMA) + 1 serial (stdio), we have found a bug. The dma handler is overwritten by the last initialized serial object.
Therefore read and write functions did not work anymore.
We have reworked this file to save 1 handler per UART IP, and align it with MBED OS file.
Tests have been passed. Same status as before (OK except MBED_37, manual test for SERIAL_ASYNC also OK).
2016-02-22 13:07:35 +00:00
modtronix-com b78542d10e Changed target name from NZ32SC151 to NZ32_SC151 2016-02-18 09:49:14 +00:00
dbestm 8b04249028 [NUCLEO_L476RG] RTC+LSE
make the RTC works properly with LSE and add the possibility to use the
LSI (internal clock)
2016-02-16 17:30:54 +01:00
dbestm d63cc2109b [NUCLEO_F446RE] RTC+LSE+init 2016-02-15 17:21:32 +01:00
adustm c11325e11b [B96B_F446VE] add IRQ_RX1 interrupt
Can contains 2 fifos. Both generates its own interrupt.
IRQ_RX occurs when a message has arrived in FIFO-0 , FIFO-0 is full or
overrun.
IRQ_RX1 occurs when a message has arrived in FIFO-1 , FIFO-1 is full or
overrun.
2016-02-01 10:13:29 +01:00
adustm 6da4190be9 [STM B96B_F446VE] HW Control Flow for serial 2016-01-29 17:59:45 +01:00
adustm 6ff8955d58 [B96B_F446VE] Add Can test files + bug fix in can_api.c 2016-01-29 14:09:25 +01:00
adustm fa5e1f7e73 [B96B_F446VE] remove unnecessary wait after code review
tested OK
2016-01-28 17:35:42 +01:00
adustm 1325d8c8c2 [B96B_F446VE] Add CAN Feature 2016-01-28 16:31:12 +01:00
adustm 3712f7c6a7 [B96B_F446VE] use of static functions 2016-01-26 14:57:06 +01:00
adustm 5b0bfb1361 [B96B_ASYNC] some fixes to pass serial_asynch.cpp test
Flush errors and current data register at reading start
Allow separate serial obj for TX and RX (= do not initialize [TX/RX]_DMA
when not needed.
Char_match: make it work with long buffers and return the correct
position of the char_match.
2016-01-26 14:57:06 +01:00
adustm 3aaf866154 [B96B_F446VE] bug fix for serial_async unitary test
do not initialise dma tx/rx when it is not activated.
2016-01-26 14:57:06 +01:00
adustm 524f4a6ac7 [B96B_Serial_Async] Add asynchronous feature for the platform B96B 2016-01-26 14:57:06 +01:00
adustm 26e3c61983 [STM all] Fix #1480: change location of check for RTC already initialised
Need to keep PWR_CLK_ENABLE and LSE LSI oscillator configuration.
Just skip the HAL_RTC_Init in case INITS flag is already set.
2016-01-12 09:30:33 +00:00
adustm 300d3a0025 add new platform hal files 2016-01-06 13:44:26 +00:00
Martin Kojtal 4dc26b3d27 Merge pull request #1469 from dudmuck/master
release platform MOTE_L152RC to public
2016-01-04 12:15:04 +00:00
Martin Kojtal a63257b05f Merge pull request #1432 from adustm/DEV_FIX_1419_baudrateissue
[TARGET_STMF0] Fix #1419 baudrateissue
2016-01-04 12:14:34 +00:00
Mike Fiore d992c2e3e9 [MTS_DRAGONFLY_F411RE] correct serial signal pin names & add wakeup pin name 2015-12-29 11:43:03 -06:00
adustm 5784d29fd2 Merge remote-tracking branch 'refs/remotes/origin/master' into DEV_FIX_1419_baudrateissue 2015-12-14 10:42:52 +01:00
U-owner-PC\owner d5d98a76f6 correct LED pins and pass singletest.py 2015-12-11 18:43:40 -08:00
Martin Kojtal a41d1d6c02 Merge pull request #1449 from dbestm/dev_xxxx_xxx
I2C fixes, timeout for startup ~100/200
2015-12-07 07:48:07 +00:00
Martin Kojtal 3a0741a173 Merge pull request #1442 from dudmuck/master
handle UART RX overrun on stm32l1xx
2015-12-02 09:44:48 +01:00
adustm 51c83aa3e4 [NUCLEO_F303K8] add missing pins for arduino nano connector 2015-11-24 10:15:42 +01:00
dbestm 035f3ece65 Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev_xxxx_xxx 2015-11-20 15:51:32 +01:00
dbestm feac60b519 ALL STM32 platform 2015-11-20 15:51:10 +01:00
Wojciech Gorniak c11d54e5b6 Merge https://github.com/mbedmicro/mbed
Conflicts:
	workspace_tools/export/iar.py
	workspace_tools/toolchains/gcc.py
2015-11-20 10:08:05 +01:00
U-owner-PC\owner 31511c97f3 handle UART RX overrun on stm32l1xx 2015-11-19 16:11:58 -08:00
adustm 57650768c8 Fix #1419 : solve baud_rate issue
Issue was : stdio printf is ok, serial.printf is failing, in case it is
inialized as a global variable. It works on mbed version 107.
Fix: revert to version 107 for systemxxx.c, mbed_overrides.c +
cmsis_nvic.c.
Modify cmsis_nvic.c to use direct addressing instead of a pointer (this
pointer is not yet initialized when called in systemxx.c)
Call HAL_Init in mbed_overrides.c for every platforms.
2015-11-17 13:16:07 +01:00
Mika Laurila ce3ccb42bb PB_11 removed 2015-11-13 08:19:51 +02:00
adustm ab5c2fac1d Remove unused file 2015-11-12 11:35:39 +01:00
adustm 11224405a8 Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into DEV_DISCOF429ZI
Conflicts:
	workspace_tools/build_release.py
	workspace_tools/export/gccarm.py
	workspace_tools/export/uvision4.py
	workspace_tools/export_test.py
2015-11-12 10:42:59 +01:00
Wojciech Gorniak 56dd556952 added missing endif 2015-11-12 10:19:56 +01:00