Forum Replies Created
-
AuthorPosts
-
janoParticipant
hi Carmine!
just uploaded now in https://github.com/jano2358/env_0_1
janoParticipantwow! that board has everything! a bit scare, from my point o view 😛
at first I though: ‘I should buy the ‘most simpler’ one’, then I go and brought the NucleoF091RC, but since this board is quite ‘new’ there is no much resources for a novice to grab some code here and there an play with it, bad decision. So I decided to spend another €14 and brought the Nucleo401RE which is far more common, many examples on Carmine’s book are designed for this board and seems like many people have it, hence, there is more code on the net to test and play with it! Also the DiscoveryF4, but I don’t own one of these.I think you should be able to go trough the book with any of them, but the level of frustration will depend on your previous programming abilities, since my previous abilities was ‘Arduino level’ I prefer start with the most basic I can find 🙂
janoParticipantyes! the only enabled group was:
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_0);
I added the other 4 and it works now!another issue is the generation with CubeMX, I don’t know how but the first time I made it works (with the script cubeimporter.py). After that moment (maybe due some update?) every project created with the method to be used in combination with CubeMX refuses to compile and says:
make: *** No rule to make targetsystem/src/cmsis/vectors_stm32f4xx.o', needed by
pr13.elf’. Stop.ok, I go then and copy back the file vectors_stm32f4xx.c to system/src/cmsis/ and it works! so the cubeimporter is deleting one extra file. The most curious thing is: I can go after the first compilation and delete that file, clean, rebuild c index, compile and it works again!
The clean command is not ‘cleaning enough’ ?janoParticipanthi Carmine!
I’m using the nucleo410re, eclipse neon on linux mint 17.3. I tried the example CH7-EX3 and like I said before, the interrupt on PB2 never stops the one fired by the blue button, I played a bit with the options but nothing changes, to be a bit more sure I added breakpoints on the callback and they’ve called when inputs are on that state, also copied the code from the book to the template created on the ch-5, always the same result 🙁
Attached is the main-ex3.c modified.
I also tried to create from CubeMX, but I’m plenty of errors on the file stm32f4xx_hal_dma.c like:
Description Resource Path Location Type
‘DMA_HandleTypeDef {aka struct __DMA_HandleTypeDef}’ has no member named ‘XferAbortCallback’ stm32f4xx_hal_dma.c /sie/system/src/stm32f4xx line 879 C/C++ Problem
(a lot like this), and:
Description Resource Path Location Type
‘HAL_DMA_ERROR_NO_XFER’ undeclared (first use in this function) stm32f4xx_hal_dma.c /sie/system/src/stm32f4xx line 591 C/C++ Problemand more, should I do something with the DMA in CubeMX?
Best!
Attachments:
You must be logged in to view attached files.janoParticipanthi!
I cannot see any update on the book, the only version I can get from leanpub is 0.13, and this version has instructions for eclipse mars. I’m loosing something?
Anyway, I tried all over again, installed everything from the beginning and discovered the mistake: I was not saving the file BlinkLed.h (the pin and port has to be changed from the 3,12 to 0,5) before build, and this is it! it works now in Neon with arm-gcc 5.4 (without packs), I have no idea why it works when I added packs before.
-
AuthorPosts