КАКтус - чужеродная и ограниченная недо-среда... но если вам нравится его грызть...
Сам пользуюсь Кейлом... мысли перехода на что-то другое не посещают...
Дык а где Вы узрели переход на личности ?ozzy писал(а): я на личности не переходил , но если профи нравится платить деньги за ... и потом ручками работать то дело ваше, мозоли не натрите
нормальноВидит ее нормально?
можно посмотреть как в примерах настроено: http://www.st.com/web/en/catalog/tools/PF259429как в кейле настроить ST-Link
Код: Выделить всё
uint32_t FloatToUint(float n)
{
uint32_t *ptr;
ptr=&n;
return *ptr;
}Код: Выделить всё
debug.c(113): error: #513: a value of type "uint32_t *" cannot be assigned to an entity of type "float *"Код: Выделить всё
uint32_t FloatToUint(float n)
{
uint32_t *ptr;
ptr=(uint32_t*)&n;
return *ptr;
}
Код: Выделить всё
uint32_t FloatToUint(float n)
{
return (uint32_t)(*(uint32_t*)&n);
}
готовый шаблон есть в архиве библиотеки, можно также посмотреть как настроен проект в примерах библиотеки, инструкция там же:вот до сих пор толком не могу разобраться как в этих средах либы настраивать
How to proceed?
Copy the files main.c, main.h (if exists), stm32f0xx_it.c, system_stm32f0xx.c, stm32f0xx_it.h, stm32f0xx_conf.h and any other source files from the specified example to your toolchain folder under Projects\STM32F0xx_StdPeriph_Templates. This project folder contains already all toolchain files needed for creating projects for STM32F0xx microcontrollers.
Open your preferred toolchain
If needed, add in the project list the additional files required to run the example (refer to your example readme file)
Rebuild all files and load your image into target memory
Run the example