-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the Olimex Olimexino STM32 board #3
base: master
Are you sure you want to change the base?
Conversation
…e) was not corrected.
Is this going to be merged? I'm using an Olimexino-STM32 too and although I havn't tested all features this patch has been working flawlessly so far. |
it wont be merged via here as this is just a mirror of the chibios svn repo |
Just as a small note, I never got the ADC working on the board, which was the primary reason for the purchase. So there is still some work which needs to be done to this before it is ready for a merge with the codebase I guess. |
Tested with simplified version of ChibiOS\testhal\STM32F1xx\ADC (added serial usb logging). ADC working fine with and without maple bootloader |
Just had trouble getting serial port working. Manually setting the TX and RX pin to output respectively input finally solved it. Should that be handled by sdStart? I didn't see any other serial examples setting pin directions. |
If someone still interested, I've tested this code (ADC and LEDs) with maple bootloader and it works like a charm! |
I would indeed like this to be merged. Maybe the serial pin setting should be fixed, but I'm not sure it's the serial HAL responsible for setting up pin direction? If it is, I can send a patch. |
Good day to every one, Is Giovanni from Brisbane Australia. I am using the IDE Chibi Studio : (http://sourceforge.net/projects/chibios/files/ChibiStudio/) a tool based on Eclipse. I have create a new C project and added the files into the folders :
Once compiled seems all working without errors. I am using the Olimex ARM-USB-TINY-H as flash programmer , under win7 i have installed To write the chip I am using the CooCox CoFlash software, seems working well with the ftd drivers Now I have this problems:
Do you have any suggestions ? |
Actually, I remember having similar problems. Then I re-installed the bootloader and modified the ld-script accordingly, and then it all worked. With the exact same code. Are there any initialization not being done correctly? Can you give it a go with the Maple bootloader installed? |
Thanks Speakman for Your quick reply,
Once compiled , I have used my Olimex ARM-USB-TINY-H + 24 to 10 pin module + FTDI drivers (https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/) to transfer the .elf to the STM32F103RBT6 of the Olimex Olimexino STM32 (Rev E) board . To do this I have used the tool CooCox CoFlash software (http://www.coocox.org/CoFlash_Programmer.htm) , set up with the cofiguration in this guide (https://www.olimex.com/Products/ARM/JTAG/_resources/How_to_run_CooCox_with_Olimex_JTAGs_v2.pdf) :
Remember to select the .elf file ( under command -> program -> datafile ) that usually is in : I did not have time to find out why was not working previously , but I hope that can be useful what I wrote to someone beginner like me! Did anyone used the Olimex Olimexino STM32 with Chibios OS and CanBus ? |
This should still have to be sorted out somehow. Regarding CAN, I'm just about to get it going. Tomorrow we will start our first test with CAN communication with a Beagle Bone Black as a central node. I think I did got CAN working while evaluating Chibios, but it's been a while and I can't really remember. Tomorrow, I will find out for sure. :) |
Good day Speakman, I am still working with the Olimex Olimexino STM32 , I have the code for :
The next step will be get the CanBus working with Chibios under ChibiStudio (http://sourceforge.net/projects/chibios/files/ChibiStudio/) If any one needs code for the Olimex Olimexino STM32 just ask me! |
Did you ever get CAN working? How much does it differ from this: I've been working with the CAN for a few hours finally, and used the above test to get it going. As long as I use "loopback" flag it works as it should, but when I remove the loopback (to hopefully find something on the CAN D+ or D-) nothing happens on those pins. |
Good day to every one, good day Speakman, First at all I will suggest to every one to follow this guide to Stm32 programming: When You remove the loopback,I have seen that the writing on the can in working but not the Read,an this because you have to setup an software interrupt to manage the read from the canbus. To do this You have to setup in this way: ..... NVIC_InitTypeDef NVIC_InitStructure; CAN_ITConfig(CAN1, CAN_IT_FMP0, ENABLE); CAN_FilterInitTypeDef CAN_FilterInitStructure; while (1) {} void USB_LP_CAN1_RX0_IRQHandler(void) { |
Good day to every one, using this guide : /*******************************************************************************
/* Define to prevent recursive inclusion -------------------------------------*/ /* Includes ------------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------/ /* Define the STM32F10x hardware depending on the used board */ CanTxMsg TXMessage; short receive_message; /* Exported macro ------------------------------------------------------------/ #endif /*******************************************************************************
/* Includes ------------------------------------------------------------------*/ void can_cnfg_Initialize(void)
} void CAN_Configuration(void)
} void NVIC_Configuration(void)
} void Filter_Configuration(void) void USB_LP_CAN1_RX0_IRQHandler(void) void CAN_SendMessage(void)
} /* If anyone is interested I can send my project files, just to have something working if You are a beginner like me. |
I've got it all up'n'running using pure Chibios, but I did have to make some minor adjustifications in Chibios. I will try to put up with a Pull Request, but my time is pretty limited. Eventually it will be here. :) |
Hi i would appreciate a copy of your full can project files , thanks |
git-svn-id: http://svn.osdn.net/svnroot/chibios/trunk@13780 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
Added a definition for the Olimex Olimexino STM32 board and a simple blinker demo, taking into account the Maple USB bootloader already on the device.